Closed rb201 closed 2 years ago
When I look at this role (orbit-nightly-us-west-2-admin) I see that the trust policy has 4 entries for OIDC to have Assume RoleWithWebIdentity. I believe there should only be one....for the active cluster.
Looking at the code, the command orbit toolkit creates the IAM admin role. Once created, the orbit deploy env updates the role's trust policy with OIDC of the cluster.
When we delete the env (the cluster) and create a new one, the trust policy is updated with the new cluster OIDC, but the references to the deleted cluster are NOT removed from the policy.
Currently occurring in the nightly deploy env