fixes controller policy example (#6113)

backport/am-add-winrdp-err/barely-bold-jaybird
Robin Beck 7 months ago committed by GitHub
parent f9646ab466
commit e4361d2cfc
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