backport of commit 4a794abbc1 (#6124)

Co-authored-by: stellarsquall <stellarsquall@protonmail.ch>
pull/6131/head
hc-github-team-secure-boundary 7 months ago committed by GitHub
parent 68185d26ac
commit 407f8ff465
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"]
}
path "auth/token/renew-self" {
capabilities = ["update"]
}
# Write the policy to Vault
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
```

Loading…
Cancel
Save