Give the api container the token files only #28
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/secret-split"
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 #14 (epic #7, ADR 0004 §7).
What changed
prepareinit container writes two runtime dirs. It sorts themailmind-secretskeys by name:*.tokengoes toapi.LITESTREAM_*is skipped, becausebackupalready reads those keys as env.sync: the IMAP password, KEK ring and S3 keys./etc/mailmind, so the config paths are the same in both. All files stay0600.apimounts./local/secrets/apiandsyncmounts./local/secrets/sync. The README quick start and the compose header show the new layout.mailmind check: it printsauth: SKIP read token file absent herewhen no read token file exists, instead of failing. It still runs in thesynccontainer. A token file that exists but is malformed still fails.mailmind apistarts throughcli.mainwith only the two token files, while the config names an IMAP secret and blob keys that do not exist.check --offlinepasses with no token files.Checks
make check: clean; 41 tests pass.kubectl kustomize deploy/k8s/overlays/exampleand ran the rendered init script against a fake Secret with all eight keys.apigotread.tokenandwrite.token.syncgotimap.secret,kek.json,s3.accessands3.secret. NoLITESTREAM_*file landed anywhere, and every file is0600.Upgrade notes
local/secrets/api/, and everything else goes tolocal/secrets/sync/..token, orapiwill not see it. The starbase Secrets useread.token, so nothing changes there.apicontainer indeploy/k8s/base/deployment.yaml, in nearby lines. Whichever merges second may need a rebase.🤖 Generated with Claude Code