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

+7
View File
@@ -119,6 +119,13 @@ func newServerCmd() *cobra.Command {
if err != nil {
return err
}
// The longest any key may live, where every way of making one
// reads it: the store.
if st := rt.Store(); st != nil {
if err := st.SetMaxKeyTTL(cmd.Context(), storepkg.ScopeGateway, "", cfg.Auth.MaxKeyTTL); err != nil {
log.Warn("could not record auth.max_key_ttl", "err", err)
}
}
// Guardrails, when server.yaml defines any. Attachments to
// parts of the tenancy tree live in the store; without one, only
// guard.default applies.