Write a policy
Upload an HCL policy file to Vault
vault policy write my-policy policy.hcl
- tool
- vault31 commands
More vault commands
-
vault policy listList all policies in Vault
-
vault secrets enable -path=myapp kv-v2Mount a new secrets engine at the given path
-
vault write transit/encrypt/my-key plaintext=$(echo -n 'secret' | base64)Encrypt data with the Vault Transit engine
-
vault write transit/decrypt/my-key ciphertext=vault:v1:... | base64 -dDecrypt a ciphertext with the Transit engine
-
vault token lookupShow the TTL, policies and other details of the current token