Docs: admin policy and tests for managing secrets engine mounts
Adds sys/mounts/* and secret/config to the least-privilege policy and runs create, tune and delete under only that policy. Mounting, tuning and deleting need no sudo; KV settings are only covered on secret/, so settings on another KV mount fail after the mount is created, which the README and the UI's partial-create message now explain. Integration tests also confirm that deleting a mount revokes the leases it issued and that a blank TTL resets to the system default. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1b3f6e4de5
commit
58b6230f9b
4 files changed
+163
-3
No files matched your search
@@ -26,6 +26,12 @@ path "auth/token/revoke-accessor" { capabilities = ["update"] }
|
||||
# Discovery: mounted auth methods and secrets engines, and KV v2 metadata for the secret browser
|
||||
path "sys/auth" { capabilities = ["read"] }
|
||||
path "sys/mounts" { capabilities = ["read"] }
|
||||
|
||||
# Secrets engine mounts: create, change (tune) and delete. Deleting a mount destroys everything in it
|
||||
# and revokes its leases, so this is a powerful rule; leave it out if mounts are managed elsewhere.
|
||||
path "sys/mounts/*" { capabilities = ["create", "read", "update", "delete"] }
|
||||
# KV v2 settings (max versions, check-and-set) of the KV mount
|
||||
path "secret/config" { capabilities = ["read", "update"] }
|
||||
path "secret/metadata/*" { capabilities = ["list"] }
|
||||
|
||||
# Dynamic secrets engines: roles, config, credentials and leases. The paths use the default mount
|
||||
|
||||
Reference in new issue
Block a user