mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
Log whenever somebody connects to prod SSH using IAP
This commit is contained in:
@@ -190,6 +190,11 @@ resource "google_compute_firewall" "metabase-ssh-ipv4" {
|
||||
ports = [22]
|
||||
}
|
||||
|
||||
|
||||
log_config {
|
||||
metadata = "INCLUDE_ALL_METADATA"
|
||||
}
|
||||
|
||||
# Only allows connections using IAP
|
||||
source_ranges = local.iap_ipv4_ranges
|
||||
target_tags = module.metabase.target_tags
|
||||
|
||||
@@ -109,6 +109,10 @@ resource "google_compute_firewall" "gateways-ssh-ipv4" {
|
||||
ports = [22]
|
||||
}
|
||||
|
||||
log_config {
|
||||
metadata = "INCLUDE_ALL_METADATA"
|
||||
}
|
||||
|
||||
# Only allows connections using IAP
|
||||
source_ranges = local.iap_ipv4_ranges
|
||||
target_tags = module.gateways[0].target_tags
|
||||
|
||||
@@ -196,6 +196,10 @@ resource "google_compute_firewall" "ssh-ipv4" {
|
||||
ports = [22]
|
||||
}
|
||||
|
||||
log_config {
|
||||
metadata = "INCLUDE_ALL_METADATA"
|
||||
}
|
||||
|
||||
# Only allows connections using IAP
|
||||
source_ranges = local.iap_ipv4_ranges
|
||||
target_tags = concat(
|
||||
|
||||
@@ -146,6 +146,10 @@ resource "google_compute_firewall" "relays-ssh-ipv4" {
|
||||
ports = [22]
|
||||
}
|
||||
|
||||
log_config {
|
||||
metadata = "INCLUDE_ALL_METADATA"
|
||||
}
|
||||
|
||||
# Only allows connections using IAP
|
||||
source_ranges = local.iap_ipv4_ranges
|
||||
target_tags = module.relays[0].target_tags
|
||||
|
||||
Reference in New Issue
Block a user