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

No protection from deleting role managed by two Iamroles #144

Open
crenshaw-dev opened this issue Oct 11, 2023 · 0 comments
Open

No protection from deleting role managed by two Iamroles #144

crenshaw-dev opened this issue Oct 11, 2023 · 0 comments

Comments

@crenshaw-dev
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:

A bit of both.

What happened:

I applied one Iamrole, which created the role in AWS. Then I applied a 2nd Iamrole w/ the same config but a different name. The 2nd Iamrole failed to apply with RolesMaxLimitReached. When I deleted the 2nd Iamrole, Keiko deleted the role in AWS. The original Iamrole went unhealthy with NoSuchEntity.

What you expected to happen:

I would have expected iam-manager to protect me from deleting the doubly-managed role, especially since the 2nd Iamrole never really "applied" the role - it had failed with a max limit error.

How to reproduce it (as minimally and precisely as possible):

Apply two Iamroles with the same config in the same namespace with different names. Make sure your per-namespace limit is 1.

Anything else we need to know?:

Environment:

  • iam-manager version: v0.15.0
  • Kubernetes version: 1.24
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

No branches or pull requests

1 participant