Created
January 20, 2024 23:30
-
-
Save YurgenUA/cf66992258bdeb5b682e5ad7a8ca8bd3 to your computer and use it in GitHub Desktop.
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
/ $ vault policy write webapp - << EOF | |
> path "secret/data/webapp/config" { | |
> capabilities = ["read"] | |
> } | |
> EOF | |
>>Success! Uploaded policy: webapp | |
/ $ vault token create -policy=webapp -ttl=744h | |
>>Key Value | |
>>--- ----- | |
>>token hvs.CAESIHOD5eMOX3BG850WnddTyDkkF...MdzQzOE1wd0ZMTXY4OGhuOXU | |
>>token_policies ["default" "webapp"] | |
>>... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment