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: Restrict flow log policy to use log group ARNs #1088

Merged

Conversation

evgenii-bezmaternykh
Copy link
Contributor

@evgenii-bezmaternykh evgenii-bezmaternykh commented Jun 4, 2024

Description

This pull request updates the AWS VPC terraform module to use log group ARNs instead of wildcard ("*") as the resource in the flow log policy. This change restricts the flow log policy to specific log groups, improving security and ensuring that only authorized log groups can receive flow log data.

Motivation and Context

The previous implementation allowed logging to any log group in AWS CloudWatch Logs, which could potentially lead to unauthorized access to log data. The updated implementation ensures that flow log data is only sent to designated log groups specified by their ARNs.

Breaking Changes

This change does not break backwards compatibility with the current major version.

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 to ensure that all relevant pre-commit checks have passed.

Thank you.

Copy link

github-actions bot commented Jul 5, 2024

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Jul 5, 2024
vpc-flow-logs.tf Outdated Show resolved Hide resolved
vpc-flow-logs.tf Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the stale label Jul 6, 2024
@bryantbiggs bryantbiggs changed the title fix: Update AWS VPC module to use log group ARNs for flow log policy feat: Restrict flow log policy to use log group ARNs Aug 3, 2024
@bryantbiggs bryantbiggs merged commit 9256722 into terraform-aws-modules:master Aug 3, 2024
19 checks passed
antonbabenko pushed a commit that referenced this pull request Aug 3, 2024
## [5.12.0](v5.11.0...v5.12.0) (2024-08-03)

### Features

* Restrict flow log policy to use log group ARNs ([#1088](#1088)) ([9256722](9256722))
@antonbabenko
Copy link
Member

This PR is included in version 5.12.0 🎉

Copy link

github-actions bot commented Sep 3, 2024

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 Sep 3, 2024
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.

3 participants