Key lifecycle: lifetime limits by scope, rotation with overlap, kinds and expiry in the listing

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 16:45:05 +02:00
1 parent 178964cf6a
commit 8866a1ea0f
14 files changed
+463 -5

No files matched your search

@@ -0,0 +1,9 @@
-- How long a key may live, at most: for the whole gateway (scope gateway,
-- written from server.yaml when the server starts) and for an organization,
-- team or project. A key is made within the shortest that applies to it.
CREATE TABLE key_ttl (
scope TEXT NOT NULL,
scope_id TEXT NOT NULL,
max_seconds INTEGER NOT NULL,
PRIMARY KEY (scope, scope_id)
);