-
Notifications
You must be signed in to change notification settings - Fork 567
SREP-3880: Request AWS additional SQS permissions for ROSA Managed Policies (Spot Instance Support) #8134
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
Closed
+26
−4
Closed
SREP-3880: Request AWS additional SQS permissions for ROSA Managed Policies (Spot Instance Support) #8134
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c64f18e
fix(aws): add IAM permissions for infrastructure setup
ratnam915 ce32fa8
fix(aws): update IAM permissions based on review feedback
ratnam915 45db83b
fix(aws): Made changes as per the comments by CodeRabbit
ratnam915 70f7bc1
fix(aws): enforce red-hat tag condition in e2e SQS inline policy
ratnam915 45e9f00
Merge branch 'openshift:main' into feature/SREP-3880
ratnam915 9003dc6
Merge branch 'openshift:main' into feature/SREP-3880
ratnam915 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/hypershift
Length of output: 10216
Fix tag key mismatch in IAM policy condition.
The IAM policy at line 526 uses
aws:ResourceTag/red-hat, but the actual infrastructure tags across the codebase usered-hat-managed=true:support/awsutil/platform.go:14checks fortag.Key == "red-hat-managed"cmd/cluster/aws/create.go:121appendsred-hat-managed=trueto resource tagsred-hat-managedThe IAM condition must be changed to
aws:ResourceTag/red-hat-managedto match the tags actually applied to resources. With the current code, the policy condition will never match, resulting in access denied errors.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apwatchtoolbuilder-dev, understood — thank you for the clarification. The distinction makes sense:red-hat-managed=trueis the existing general-purpose infrastructure tag for EC2/general resources, whilered-hat=trueis a new, purpose-built tag for SQS queues used by the spot termination handler. Since the IAM condition, the test inline policy, and the queue-creation tags are all internally consistent with this new tag, there's no mismatch.I'll record this for future reviews.
✏️ Learnings added