Skip to content

Selectively enable logging in FAST and firewall policy module rules (CSPR-related) #2032

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

Merged
merged 4 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ allow-healthchecks:

allow-ssh-from-iap:
description: Enable SSH from IAP
enable_logging: true
priority: 1002
match:
source_ranges:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ allow-healthchecks:
allow-ssh-from-iap:
description: Enable SSH from IAP
priority: 1002
enable_logging: true
match:
source_ranges:
- 35.235.240.0/20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ allow-healthchecks:
allow-ssh-from-iap:
description: Enable SSH from IAP
priority: 1002
enable_logging: true
match:
source_ranges:
- 35.235.240.0/20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ allow-healthchecks:
allow-ssh-from-iap:
description: Enable SSH from IAP
priority: 1002
enable_logging: true
match:
source_ranges:
- 35.235.240.0/20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ allow-healthchecks:
allow-ssh-from-iap:
description: Enable SSH from IAP
priority: 1002
enable_logging: true
match:
source_ranges:
- 35.235.240.0/20
Expand Down
12 changes: 8 additions & 4 deletions modules/net-firewall-policy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ module "firewall-policy" {
}
}
mgmt = {
priority = 1001
priority = 1001
enable_logging = true
match = {
source_ranges = ["10.1.1.0/24"]
}
}
ssh = {
priority = 1002
priority = 1002
enable_logging = true
match = {
source_ranges = ["10.0.0.0/8"]
# source_tags = ["tagValues/123456"]
Expand Down Expand Up @@ -102,13 +104,15 @@ module "firewall-policy" {
}
}
mgmt = {
priority = 1001
priority = 1001
enable_logging = true
match = {
source_ranges = ["10.1.1.0/24"]
}
}
ssh = {
priority = 1002
priority = 1002
enable_logging = true
match = {
source_ranges = ["10.0.0.0/8"]
# source_tags = ["tagValues/123456"]
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/net_firewall_policy/examples/global-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ values:
action: allow
direction: INGRESS
disabled: false
enable_logging: null
enable_logging: True
firewall_policy: test-1
match:
- dest_address_groups: null
Expand All @@ -106,7 +106,7 @@ values:
action: allow
direction: INGRESS
disabled: false
enable_logging: null
enable_logging: True
firewall_policy: test-1
match:
- dest_address_groups: null
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/net_firewall_policy/examples/hierarchical.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ values:
description: null
direction: INGRESS
disabled: false
enable_logging: null
enable_logging: True
match:
- dest_address_groups: null
dest_fqdns: null
Expand All @@ -98,7 +98,7 @@ values:
description: null
direction: INGRESS
disabled: false
enable_logging: null
enable_logging: True
match:
- dest_address_groups: null
dest_fqdns: null
Expand Down