Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created January 20, 2024 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YurgenUA/cf66992258bdeb5b682e5ad7a8ca8bd3 to your computer and use it in GitHub Desktop.
Save YurgenUA/cf66992258bdeb5b682e5ad7a8ca8bd3 to your computer and use it in GitHub Desktop.
/ $ 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