Add optional methods attribute to the arrstack role resource #3
Reference in New Issue
Block a user
Delete Branch "benvin/role-methods-attr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Engine plugin v0.2.0 added a
methodsfield to arrstack roles, pinning a minted arrproxy key to a set of HTTP methods so a read-only integration can be handed a key that cannot write. The provider had no way to express it, so those roles could not be managed fromterraform-vault.How
methodsset attribute toarrstack_secret_backend_role, validated at plan time againstGET/HEAD/POST/PUT/PATCH/DELETE/OPTIONS(upper case only, since the engine stores them upper-cased and a lower-case value would drift on every plan).methods: the engine only clears an existing scope when the key is present, so an omitted key would leave a stale scope behind.methodsshows no drift; a scope cleared out of band still surfaces as a diff.Dependency: engine plugin >= 0.2.0.