fixes controller policy example (#6113)

This commit is contained in:
Robin Beck authored and GitHub committed 2025-10-07 15:31:13 -04:00
1 parent f9646ab466
commit e4361d2cfc
1 file changed
+33 -7
@@ -122,8 +122,7 @@ removed from the credential store.
#### Vault Boundary controller policy
The token Boundary receives must have the capabilities listed below. An explanation
for the use of each capability is given.
The token Boundary receives must have the capabilities in the policy below. An explanation for each capability is documented above the written policy.
```hcl
# Allow Boundary to read and verify the properties of the token. This is
@@ -165,14 +164,41 @@ path "sys/capabilities-self" {
}
```
The above [`boundary-controller` policy](https://boundaryproject.io/data/vault/boundary-controller-policy.hcl) is
available for download. Below is an example of writing this policy to Vault:
Follow the steps below to write this policy to Vault.
Create the policy:
```shell-session
# Download the policy
$ curl https://boundaryproject.io/data/vault/boundary-controller-policy.hcl -O -s -L
$ cat > boundary-controller-policy.hcl <<EOF
path "auth/token/lookup-self" {
capabilities = ["read"]
}
# Write the policy to Vault
path "auth/token/renew-self" {
capabilities = ["update"]
}
path "auth/token/revoke-self" {
capabilities = ["update"]
}
path "sys/leases/renew" {
capabilities = ["update"]
}
path "sys/leases/revoke" {
capabilities = ["update"]
}
path "sys/capabilities-self" {
capabilities = ["update"]
}
EOF
```
Write the policy to Vault:
```shell-session
$ vault policy write boundary-controller boundary-controller-policy.hcl
```