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

feat(cond parser): add policy cond parser & apply in sqs public check #2575

Merged
merged 5 commits into from
Jul 12, 2023

Conversation

n4ch04
Copy link
Contributor

@n4ch04 n4ch04 commented Jul 12, 2023

Context

From #2565

We need to be able to parse condition blocks from IAM policies to apply it in several checks, in this case we need to be able to test if a sqs queue is public or not

Description

Adds a new lib with a condition block parser and apply it in check sqs_queues_not_publicly_accessible

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@n4ch04 n4ch04 requested a review from a team as a code owner July 12, 2023 09:27
@n4ch04 n4ch04 force-pushed the sqs-queue-policy-condition branch from f66ec77 to 0986a95 Compare July 12, 2023 10:47
jfagoagas
jfagoagas previously approved these changes Jul 12, 2023
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@n4ch04 n4ch04 force-pushed the sqs-queue-policy-condition branch 2 times, most recently from 0992904 to 0b39247 Compare July 12, 2023 11:33
@n4ch04 n4ch04 requested a review from jfagoagas July 12, 2023 11:33
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jfagoagas jfagoagas merged commit d1c9109 into master Jul 12, 2023
7 checks passed
@jfagoagas jfagoagas deleted the sqs-queue-policy-condition branch July 12, 2023 13:39
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.

None yet

2 participants