mirror of
https://github.com/tiennm99/llmapikey.git
synced 2026-08-08 12:23:51 +00:00
Persist the raw key (migration 0002 adds openrouter_key) so users can copy it again from the dashboard instead of a one-time-only reveal; admin console shows the full key. Retain openrouter_key_hash for revocation. Keys remain in the unexposed llmapikey schema (deny-all RLS, server-only direct connection). - activate() stores the raw key; dashboard + generate-key return the full key. - key-display warning updated (no longer shown-once). - admin table renders the full key.
7 lines
419 B
SQL
7 lines
419 B
SQL
-- Store the raw OpenRouter key so users can retrieve it later (no more
|
|
-- shown-once-only). The key still lives only in the unexposed `llmapikey`
|
|
-- schema (deny-all RLS, reached solely by the server-side direct connection).
|
|
-- `openrouter_key_hash` is retained — it is OpenRouter's delete handle for
|
|
-- revocation, not a hash of the key.
|
|
alter table llmapikey.api_keys add column if not exists openrouter_key text;
|