- List existing secrets engines
- Enable a KV v1 engine at a custom path
- Verify the engine version
- Write, read, update, and delete secrets
- Format output as JSON and extract specific fields
- List secret keys
1. List Existing Secrets Engines
Inspect which secret engines are currently mounted:No KV engine is enabled yet.
2. Enable KV v1 at a Custom Path
Enable a KV v1 engine attraining/:
3. Verify the Engine Version
Check the detailed mount info to confirm KV v1 (no versioning):Options map (map[]):
In KV v2, the options map includes
"version":"2".4. Write Secrets
Store a single key/value pair:5. Read Secrets
Retrieve the secret:6. Update Secrets
KV v1 always overwrites data. To update, write again:7. JSON Output & Field Extraction
Output secret as JSON and parse withjq:
Using JSON output is useful for automation and scripting.
8. Delete Secrets
Remove the secret at a given path:9. List Secret Keys
Re-create sample secrets:training/:
training/apps/:
- Entries ending with
/are subdirectories. - Others are secret paths.