Create Kubernetes role
Bind a k8s ServiceAccount to a Vault policy
vault write auth/kubernetes/role/my-role bound_service_account_names=<sa> bound_service_account_namespaces=<ns> policies=<policy> ttl=1h
- tool
- vault31 commands
More vault commands
-
vault policy write my-policy policy.hclUpload an HCL policy file to Vault
-
vault policy listList all policies in Vault
-
vault secrets enable -path=myapp kv-v2Mount a new secrets engine at a given path
-
vault write transit/encrypt/my-key plaintext=$(echo -n 'secret' | base64)Encrypt data using Vault's transit encryption engine
-
vault write transit/decrypt/my-key ciphertext=vault:v1:... | base64 -dDecrypt a ciphertext with transit engine