Created
April 18, 2023 14:24
-
-
Save fvoges/cd955e880d6ac8cb03ceb1612e7200c3 to your computer and use it in GitHub Desktop.
Example Vault namespace user policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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