Add support for controlling Users in IAM Groups#167
Add support for controlling Users in IAM Groups#167naclonts wants to merge 3 commits intoaws-controllers-k8s:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: naclonts The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @naclonts. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. DetailsInstructions 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/test-infra repository. |
knottnt
left a comment
There was a problem hiding this comment.
Thinking about usability of this feature it might be better to add a list of groups to the User resource instead. A group can have hundreds to thousands of users in normal use, whereas a user would normally have a much more limited number number of groups.
| # In order to support adding zero or more users to a group, we use | ||
| # custom update code that calls the AddUserToGroup and RemoveUserFromGroup | ||
| # APIs to manage the set of users in this Group. | ||
| Users: |
There was a problem hiding this comment.
Could you add a description for the custom field? The CRD descriptions are used to generate our API reference docs. You should be able to do that in the generator.yaml with the DocumenationConfig.
| - name: controller | ||
| newName: public.ecr.aws/aws-controllers-k8s/iam-controller | ||
| newTag: 1.6.0 | ||
| newTag: 0.0.0-non-release-version |
There was a problem hiding this comment.
Could you pull the latest tags from upstream and rebuild.
|
/hold |
|
Thanks for working on this @naclonts ! This would be very helpful for us as we're trying to use IAM ACK for end-to-end user management. Happy to help with testing this in our environment, reviewing changes, or addressing follow-up comments if that helps move this forward. |
Issue #, if available: aws-controllers-k8s/community#2207
Description of changes: Add support for a
Userslist underGroup. The group's IAM users will be added or removed based on the list defined in the CR.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Testing
Added automated e2e tests.
Manual test
YAML file
group_w_users.yaml:Apply:
Verified AWS account has group
cool-peepsthat includes usernclonts.