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(google): do not check flow logs on proxy-only subnets #51

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

@nikpivkin nikpivkin marked this pull request as ready for review November 21, 2023 19:35
@@ -75,6 +75,7 @@ func Test_adaptNetworks(t *testing.T) {
Metadata: defsecTypes.NewTestMetadata(),
Name: defsecTypes.String("test-subnetwork", defsecTypes.NewTestMetadata()),
EnableFlowLogs: defsecTypes.Bool(true, defsecTypes.NewTestMetadata()),
Purpose: defsecTypes.StringDefault("PRIVATE_RFC_1918", defsecTypes.NewTestMetadata()),
Copy link
Member

Choose a reason for hiding this comment

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

can we use the const?

Suggested change
Purpose: defsecTypes.StringDefault("PRIVATE_RFC_1918", defsecTypes.NewTestMetadata()),
Purpose: defsecTypes.StringDefault(defaultSubnetPurpose, defsecTypes.NewTestMetadata()),

Copy link
Member

Choose a reason for hiding this comment

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

Actually never mind, I see this is a test so we should have it fail in case we ever decide to change the const. Your implementation is correct.

@simar7 simar7 merged commit 2b1e215 into aquasecurity:main Nov 21, 2023
4 checks passed
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.

fix(misconf): false positive avd-gcp-0029 when subnet has certain fields
2 participants