Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix IAM policy for External Secrets #545

Conversation

rastut
Copy link
Contributor

@rastut rastut commented Jan 9, 2025

Description

This pull request includes updates to the IAM policy document for external secrets in the modules/iam-role-for-service-accounts-eks/policies.tf file. The changes adjust the actions allowed for the secrets manager.

Changes to IAM policy document:

  • Added the secretsmanager:BatchGetSecretValue action to the list of allowed actions in one statement.
  • Removed the secretsmanager:BatchGetSecretValue action from another statement to avoid redundancy.

Motivation and Context

Two weeks ago, the 0.12.1 version was launched for external-secrets. The new version requires a new permission for the action BatchGetSecretValue.

I opened this PR #542 with the suggested changes from the external-secrets repo, and the proposed policy was not working as expected. After reviewing it and reporting it to external-secrets, they finally modified the documentation with a working policy (external-secrets/external-secrets#4275).

The new policy has been tested and works properly with the latest version.

Breaking Changes

No breaking changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
reta Andriy Redko
Signed-off-by: Carlos Lopez <carloslm@nuclia.com>
@bryantbiggs bryantbiggs merged commit 883499c into terraform-aws-modules:master Jan 9, 2025
34 checks passed
antonbabenko pushed a commit that referenced this pull request Jan 9, 2025
## [5.52.2](v5.52.1...v5.52.2) (2025-01-09)

### Bug Fixes

* Fix IAM policy for External Secrets ([#545](#545)) ([883499c](883499c))
@antonbabenko
Copy link
Member

This PR is included in version 5.52.2 🎉

Copy link

github-actions bot commented Feb 9, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants