Skip to content

Instantly share code, notes, and snippets.

@fvoges
Created April 18, 2023 14:24
Show Gist options
  • Save fvoges/cd955e880d6ac8cb03ceb1612e7200c3 to your computer and use it in GitHub Desktop.
Save fvoges/cd955e880d6ac8cb03ceb1612e7200c3 to your computer and use it in GitHub Desktop.
Example Vault namespace user policy
# Allow tokens to look up their own properties
path "acme/auth/token/lookup-self" {
capabilities = ["read"]
}
# Allow a token to look up its own capabilities on a path
path "acme/sys/capabilities-self" {
capabilities = ["update"]
}
# List namespaces
path "acme/sys/namespaces" {
capabilities = ["list"]
}
path "acme/cubbyhole/*" {
capabilities = ["create", "delete", "list", "read", "update"]
}
path "acme" {
capabilities = ["list", "read"]
}
path "acme/+" {
capabilities = ["list", "read"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment