You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Vault immediately sets the initial credential. Roles are added in a re-apply after
153
81
> Postgres is up (Phase 5b).
154
82
83
+
**Note:**
84
+
After completing Phase 5 (Postgres deployment), you must re-apply the vault-config module with `database_roles_enabled=true` to enable Vault to create the database roles. See Phase 5b below for the exact command.
85
+
155
86
---
156
87
157
88
### Phase 4 — Deploy the webserver (optional demo)
This creates the Keycloak static role and the app dynamic role. Vault connects to Postgres immediately — the container must be healthy before running this step.
podman exec armory-vault bao read database/creds/keycloak
147
+
podman exec armory-vault bao read database/creds/app
148
+
**Note:** You must export the Vault root token (or a token with the correct database policy) before running these commands, or you will get 403 errors.
149
+
150
+
```bash
151
+
export VAULT_TOKEN=<ROOT_TOKEN>
152
+
153
+
# List dynamic database roles (should show 'app')
154
+
podman exec -e VAULT_TOKEN=$VAULT_TOKEN armory-vault bao list database/roles
155
+
156
+
# List static database roles (should show 'keycloak')
157
+
podman exec -e VAULT_TOKEN=$VAULT_TOKEN armory-vault bao list database/static-roles
158
+
159
+
# Read credentials for the Keycloak static role (should show rotation info and username)
160
+
podman exec -e VAULT_TOKEN=$VAULT_TOKEN armory-vault bao read database/static-roles/keycloak
161
+
162
+
# Read credentials for the app dynamic role (should return a username and password)
163
+
podman exec -e VAULT_TOKEN=$VAULT_TOKEN armory-vault bao read database/creds/app
164
+
```
165
+
166
+
If these commands return valid output for both roles, Phase 5b was successful and Vault is managing both dynamic and static database roles as intended.
This command ensures both the agent AppRole and the database roles are enabled in Vault. Both variables must be set to `true` when deploying the agentic layer.
228
+
262
229
**Step 2:** Issue credentials and scaffold host directories:
0 commit comments