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

fix: Make unauthorized pattern match exact #50

Merged

Conversation

dev-slatto
Copy link
Contributor

Description

Remove a parentes group from the UnauthorizedAPICalls check in the CSI framework.

Motivation and Context

So... After spending some time with the folks over at AWS support it turns out that the Security Hub checks for Metric filters in the CSI framework just check if the pattern is exactly what they have defined. No regex what so ever or validation of the pattern on sample data. So removing a parentes group to make it actually work...

Breaking Changes

No breaking changes.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@dev-slatto
Copy link
Contributor Author

Hey again @antonbabenko 👋🏼

Another change to the UnauthorizedAPICalls filter after some chats with the AWS team... More info under Motivation and Context.

@antonbabenko antonbabenko merged commit 03d43d5 into terraform-aws-modules:master Jan 10, 2023
antonbabenko pushed a commit that referenced this pull request Jan 10, 2023
### [4.2.1](v4.2.0...v4.2.1) (2023-01-10)

### Bug Fixes

* Make unauthorized pattern match exact ([#50](#50)) ([03d43d5](03d43d5))
@antonbabenko
Copy link
Member

This PR is included in version 4.2.1 🎉

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants