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: Infinite loop if user has been created without ListBucket permission #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DClabaut
Copy link

As described in this issue, if a user has been created by s3-operator without a policy allowing ListBucket (either because no such policy was attached, or because s3-operator has not yet created the policy and cannot attach it), then the credentialsValid() function fails, and s3-operator assumes the credentials are wrong and exits, only to fail again at the next run (infinite loop).

The merge request moves the credentialsValid() function after the policy attachment, which allows s3-operator to attach a policy to an existing user that does not yet have the ListBucket permission. It also specifies the ListBucket permission in the README.

Damien Clabaut added 2 commits December 20, 2024 12:27
…ut being linked to) the policy, causing CheckUserCredentialsValid to fail and handleS3ExistingUser to enter an infinite loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant