From 8b09d99fc4b546e4f70233542accb06180643e09 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Wed, 1 Jul 2026 09:52:32 +0800 Subject: [PATCH] docs: add comprehensive troubleshooting section for Vault 400 and 403 errors --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5cec603..32cfa60 100644 --- a/README.md +++ b/README.md @@ -57,23 +57,46 @@ If you are running the GitHub Actions workflow (`deploy-env-migration.yaml`), pl - **Role Binding**: Ensure the JWT `bound_claims` match the new repository name (`repo:ai-workspace-infra/site-migration-toolkit:ref:refs/heads/main` or similar). **Vault Role Provisioning Script**: -To avoid CLI parsing issues, use the following JSON payload format to create or update the role: +To avoid CLI parsing issues, use the following JSON payload format to create or update the role. This also binds the correct policy to the role. + +1. **Create the Vault Policy** (Grants read access to required secrets): +```bash +vault policy write github-actions-site-migration-toolkit - <