Skip to content

Scope Secret RBAC for IAM-backed ObjectStores#893

Open
martinohansen wants to merge 1 commit intocloudnative-pg:mainfrom
martinohansen:fix-secret-rbac
Open

Scope Secret RBAC for IAM-backed ObjectStores#893
martinohansen wants to merge 1 commit intocloudnative-pg:mainfrom
martinohansen:fix-secret-rbac

Conversation

@martinohansen
Copy link
Copy Markdown

Summary

  • skip AWS credential Secret refs when inheritFromIAMRole is enabled
  • omit the generated secrets Role rule when no credential Secret names are collected
  • cover IAM-backed ObjectStores and empty ObjectStore deletion with tests

Fixes #892

Testing

  • go test ./api/... ./cmd/... ./internal/...

@martinohansen martinohansen requested a review from a team as a code owner May 7, 2026 13:48
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request go Pull requests that update go code labels May 7, 2026
Avoid granting namespace-wide Secret access when ObjectStores do not need credential Secrets.

Ref: cloudnative-pg#892
Signed-off-by: Martin Hansen <dontbeevilpls@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IAM-backed ObjectStores generate wildcard Secret RBAC

1 participant