TOK-1: Tokens migrate into the secret table #757
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#757
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a platform engineer, I want every per-agent forge token currently living at
~/.config/claude-hooks/tokens/<agent>to get a row in the SC-6secrettable referenced fromagent_type.token_secret_id, so that token bytes never sit in plaintext on disk and rotation runs through the same encrypted-secret + access-log surface as every other secret.Acceptance criteria
Migration
tokens/<agent>file, writes the bytes tosecret, setsagent_type.token_secret_id(or per-instance override row if present), and renames the file totokens/.<agent>.migrated.bak(operator inspectable, not auto-deleted).Resolver
getAgentToken(typeName)reads through the SC-6 secret resolver with access logging.token_filepath on agents.json is deprecated; the builtin-sync writes the contents into thesecrettable on first boot then ignores the path on subsequent boots.Tests
scope='agent_type'via the dashboard is picked up by the next dispatch's Forgejo client without a restart.Out of scope
References
specs/config-to-db.md§ Story TOK-1.