-
Notifications
You must be signed in to change notification settings - Fork 637
✨ Support setting role path and permissions boundary on managed IAM roles #5286
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
Conversation
|
|
|
Hi @robinkb. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@robinkb PermissionsBoundary are required for CloudFormation template rendering for creating roles and permissions. |
|
Hi @pavansokkenagaraj, thanks for the feedback. I've amended my commit. However, I see more roles generated in the template: Do these need to be changed, too? I didn't use the bootstrap proces, so I'm not really familiar with how it works. |
|
We are in the process of testing this on our own environment now. The most recent update includes some shenanigans around pointers. I'm not sure which way I am expected to handle them, as the codebase is inconsistent. The Spec for AWSManagedControlPlane uses pointers to strings for optional values, while the Spec for AWSFargateProfile does not, for example. |
|
/ok-to-test |
Yes, roles/permissions which are created in template function for eks need to be updated. The other thing I had to do was to set the permissionsBoundary if it is not nil/empty |
|
@pavansokkenagaraj Thanks for the testing, I will get that fixed. Regarding the failing |
|
@robinkb - we don't need to worry about the apidiff if its outside an |
|
/override pull-cluster-api-provider-aws-apidiff-main |
|
/test ? |
|
@richardcase: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test pull-cluster-api-provider-aws-e2e-eks |
|
/retest |
|
@robinkb have you looked into the e2e-eks failure? It seems related to identities so worth checking if it is legit. |
|
@damdo The tests did not run, failing in the |
|
I will try to run the test again to see if anything changed. /retest |
|
/retest |
|
Let's get you reviews on this one also |
|
The e2e tests are passing. @robinkb - do you think it would be worth us following up on this in the future with an e2e that covers this? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardcase The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Thanks @robinkb and maintainers👌🚀 |
|
@richardcase Thank you! 🎉 Because it's only passing through two strings fields, I don't think that adding an e2e test for this is really necessary. Maybe an integration test to verify that the parameters are correctly passed to the AWS API? But even that feels a bit superfluous. The Probably not worth the effort. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Allows setting the role path and permissions boundary on managed IAM roles for EKS control plane, EKS Fargate profile, and managed machine pools. This is typically needed in enterprise environments with more stringent IAM requirements.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #5285
Special notes for your reviewer:
This is my first PR on this repository. I noticed a warning when generating code, and I wasn't sure if this needed to be fixed:
Checklist:
Release note: