Debugging¶
This page covers useful commands for debugging the plugin using HashiCorp Vault.
Start a Dev Vault Server¶
Create an AppRole¶
vault write auth/approle/role/my-role \
token_policies="default,web-app" \
token_ttl=1h \
token_max_ttl=4h \
secret_id_ttl=24h \
secret_id_num_uses=10
Retrieve the Role ID¶
For automation:
Get the Secret ID¶
Login with AppRole¶
vault write auth/approle/login \
role_id="192e9220-f35c-c2e9-2931-464696e0ff24" \
secret_id="4e46a226-fdd5-5ed1-f7bb-7b92a0013cad"
Write and Attach Policy¶
Set and Get KV Secrets¶
Debug the Plugin¶
or