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: enable mtls on external application application load balancer #1979

Merged
merged 3 commits into from
Jan 17, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
venv/*
*/venv/*
**/.python-version
**/.terraform
**/terraform.tfstate*
**/terraform.tfvars
Expand Down
18 changes: 9 additions & 9 deletions modules/net-lb-app-ext/README.md

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions modules/net-lb-app-ext/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ resource "google_compute_target_http_proxy" "default" {
}

resource "google_compute_target_https_proxy" "default" {
count = var.protocol == "HTTPS" ? 1 : 0
project = var.project_id
name = var.name
description = var.description
certificate_map = var.https_proxy_config.certificate_map
quic_override = var.https_proxy_config.quic_override
ssl_certificates = local.proxy_ssl_certificates
ssl_policy = var.https_proxy_config.ssl_policy
url_map = google_compute_url_map.default.id
count = var.protocol == "HTTPS" ? 1 : 0
project = var.project_id
name = var.name
description = var.description
certificate_map = var.https_proxy_config.certificate_map
quic_override = var.https_proxy_config.quic_override
ssl_certificates = local.proxy_ssl_certificates
ssl_policy = var.https_proxy_config.ssl_policy
url_map = google_compute_url_map.default.id
server_tls_policy = var.https_proxy_config.mtls_policy
}
1 change: 1 addition & 0 deletions modules/net-lb-app-ext/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ variable "https_proxy_config" {
certificate_map = optional(string)
quic_override = optional(string)
ssl_policy = optional(string)
mtls_policy = optional(string) # id of the mTLS policy to use for the target proxy.
})
default = {}
nullable = false
Expand Down