Give write tokens to the api container in the k8s base #157
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp!157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/k8s-base-write-tokens"
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?
Summary
The
prepareinit container now gives every bearer token toapi, not only the read token.apiloads every configured token at start (cli.py,Tokens.load). Under the old base, a config with[[auth.write_tokens]]madeapiexit withsecret=error, because the token file reached onlysync.syncnever checks bearer tokens, so the write tokens stay out of it, and Source credentials stay out ofapi.Evidence
test_kustomize_prepare_gives_bearer_tokens_to_api_onlyruns the realpreparescript against fake secrets. On the old base:assert ['read-token'] == ['read-token', 'write-token', 'write-token-agent']fails.make check: 799 passed, 5 skipped, 0 failed (main: 798).make test-integrationon podman: 4 passed.Merge Danger
Door: two-way
Only a release tag changes a deployment. A consumer picks this up through
?ref=on the next rc.Blast Radius: k8s
A Secret key named
write-token*that a deployment meant forsyncwould now go toapi. No such key exists today.🤖 Generated with Claude Code