OpenBao provisioning script (recurrence fix) #76

Merged
michal merged 1 commits from feat/openbao-provisioning into main 2026-06-16 22:31:54 +00:00
Owner

Idempotent script to (re)provision the OpenBao KV mount + app-mcpd policy + periodic app-mcpd-role. Prevents the recurring BACKEND_TOKEN_DEAD caused by a re-init dropping the hand-made policy. Verified live (dry-run + idempotent real run). Run with --seed after a re-init to also reseed bao-creds + restart mcpd.

🤖 Generated with Claude Code

Idempotent script to (re)provision the OpenBao KV mount + `app-mcpd` policy + periodic `app-mcpd-role`. Prevents the recurring BACKEND_TOKEN_DEAD caused by a re-init dropping the hand-made policy. Verified live (dry-run + idempotent real run). Run with `--seed` after a re-init to also reseed bao-creds + restart mcpd. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-06-16 22:21:10 +00:00
feat(ops): idempotent OpenBao provisioning script
Some checks failed
CI/CD / typecheck (pull_request) Successful in 1m4s
CI/CD / lint (pull_request) Successful in 2m30s
CI/CD / test (pull_request) Successful in 1m18s
CI/CD / smoke (pull_request) Failing after 1m49s
CI/CD / build (pull_request) Successful in 4m46s
CI/CD / publish (pull_request) Has been skipped
7e8568777e
scripts/provision-openbao.sh recreates the KV mount + app-mcpd ACL policy +
periodic app-mcpd-role that mcpd's secret backend needs. These were hand-made
and uncaptured, so an OpenBao re-init silently dropped the policy (root cause
of the recurring BACKEND_TOKEN_DEAD / 403-on-secret-write). Now reproducible:
run after any OpenBao (re)init; --seed also mints a token, writes bao-creds,
and restarts mcpd. Mirrors src/shared/src/vault/policy.ts. Idempotent + --dry-run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
michal merged commit ab00fc6296 into main 2026-06-16 22:31:54 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#76