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

Cleanup IAM definitions #856

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Cleanup IAM definitions #856

merged 2 commits into from
Apr 5, 2024

Conversation

calavera
Copy link
Contributor

@calavera calavera commented Apr 3, 2024

Description of changes:

We have two different definitions of IAM policies and statement. These changes centralize them both into one.

These changes also add the Condition field that was missing from both implementations.

These changes also make Effect to be an enum with the default Allow, instead of an optional string. This is more ergonomic than checking whether the effect is none or allow.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

We have two different definitions of IAM policies and statement. These changes centralize them both into one.

These changes also add the `Condition` field that was missing from both implementations.

These changes also make `Effect` to be an enum with the default `Allow`, instead of an optional string. This is more ergonomic than checking whether the effect is none or `allow`.

Signed-off-by: David Calavera <david.calavera@gmail.com>
@calavera calavera requested a review from bnusunny April 3, 2024 14:49
Keep all deserialization logic together, it's easier to manage.

Signed-off-by: David Calavera <david.calavera@gmail.com>
@calavera
Copy link
Contributor Author

calavera commented Apr 3, 2024

@aesterline since it looks like you're using these events, you might want to take a pass at reviewing these changes

@aesterline
Copy link
Contributor

@aesterline since it looks like you're using these events, you might want to take a pass at reviewing these changes

I pulled this branch into our code and ran it through our tests. Everything works! Looks good to me. Thanks for the more thorough implementation.

@calavera calavera merged commit a68de58 into main Apr 5, 2024
9 checks passed
@calavera calavera deleted the cleanup_iam_definitions branch April 5, 2024 01:04
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

Successfully merging this pull request may close these issues.

3 participants