feat(agent-config): TOK-1 migrate forge tokens into the secret table (#757) #764
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!764
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/757"
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?
Closes #757
Migrates per-agent forge tokens from
~/.config/claude-hooks/tokens/<agent>into the SC-6secrettable;agent_type.token_secret_idreferences the row.token_file, inserts asecretrow atFORGE_TOKEN_<TYPE>, stamps the FK, and renames the file totokens/.<basename>.migrated.bak. Idempotent.getAgentToken(typeName)resolves through the SC-6 decrypt path with one access-log row per call.getSecretRowById(id)added for FK consumers.Test plan
bun run qacleantoken_files.forgejoslotsecret_access_logrow pergetAgentToken()callMigration idempotent, resolver wired through SC-6 with access logging, rotation test covers no-restart path. CI green.
nit:
console.warnused for the success log at the end ofmigrateOneAgentToken—console.logwould be more accurate semantically, but not blocking.