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

Update policy principal validation logic #3400

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

kddejong
Copy link
Contributor

@kddejong kddejong commented Jun 25, 2024

Issue #, if available:
fix #3398

Description of changes:

  • Update policy.json to better validate AWS principals

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.20%. Comparing base (ed39a19) to head (7251f4e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3400      +/-   ##
==========================================
- Coverage   93.20%   93.20%   -0.01%     
==========================================
  Files         323      323              
  Lines       11016    11018       +2     
  Branches     2301     2302       +1     
==========================================
+ Hits        10268    10269       +1     
  Misses        417      417              
- Partials      331      332       +1     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kddejong
Copy link
Contributor Author

Modified the policy.json to be more open about its validation. We didn't really need an anyOf which cleaned it up.

Also updated I1022 to not provide a warning in a CDK template.

@kddejong kddejong changed the title AnyOf to only fail on errors not on warnings or info Update policy principal validation logic Jun 25, 2024
@kddejong kddejong merged commit f28d4cc into aws-cloudformation:main Jun 25, 2024
22 checks passed
@kddejong kddejong deleted the fix/issue/3398 branch June 25, 2024 17:51
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.

CDK generated cfn template resulting in Cfn-lint errors thrown
1 participant