You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Token expiry and rotation metadata for sc serve tokens (P29) #209
sct- bearer tokens have no expiry field. Rotation today is add-new plus remove-old, with nothing to automate it or remind the operator. Deferred in ROADMAP.md (P29).
Acceptance criteria
A token can be created with an expiry (sc serve token add --expires <duration|date>); no expiry stays the default.
Scope/TokenEntry in crates/repo/src/serve_tokens.rs carry the expiry in serve-tokens.toml, and old files without it still load.
sc serve token list shows expiry and flags expired tokens.
A way to rotate in one step (sc serve token rotate <label>: new secret under the same label and scope, old one removed), printing the new token once.
Tests for expiry boundaries, a file without the field, and rotation. Update ADR-0040 and ROADMAP.md.
Open point: whether an expired token should keep a tombstone entry in the file or be dropped on the next write. Pick the simpler one and record it in the ADR.
Activity
fix(repo,cli): bound token expiry to i64, test expired 401, doc updat…
test(cli): expired token shows EXPIRED in list (#209)
test(cli): clean up token-expiry test root (#209)
docs(cli-reference): expiry must be future, rotate keeps absolute exp…
feat(repo,cli): token expiry and rotation for sc serve tokens (#221)