Skip to content

Commit 9850745

Browse files
Pass DEBUG_MODE to container to allow for better error handling (#1332)
* Allow override for debug
1 parent 775bacf commit 9850745

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/gcp-oidc/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# sha from https://hub.docker.com/layers/amd64/eclipse-temurin/21.0.4_7-jre-alpine/images/sha256-8179ddc8a6c5ac9af935020628763b9a5a671e0914976715d2b61b21881cefca
22
FROM eclipse-temurin@sha256:8179ddc8a6c5ac9af935020628763b9a5a671e0914976715d2b61b21881cefca
33

4-
LABEL "tee.launch_policy.allow_env_override"="API_TOKEN_SECRET_NAME,DEPLOYMENT_ENVIRONMENT,CORE_BASE_URL,OPTOUT_BASE_URL"
4+
LABEL "tee.launch_policy.allow_env_override"="API_TOKEN_SECRET_NAME,DEPLOYMENT_ENVIRONMENT,CORE_BASE_URL,OPTOUT_BASE_URL,DEBUG_MODE,SKIP_VALIDATIONS"
55
LABEL "tee.launch_policy.log_redirect"="always"
66

77
# Install Packages

scripts/gcp-oidc/terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ resource "google_compute_instance_template" "uid_operator" {
106106
tee-image-reference = var.uid_operator_image
107107
tee-container-log-redirect = true
108108
tee-restart-policy = "Never"
109+
tee-env-DEBUG_MODE = var.debug_mode
109110
tee-env-DEPLOYMENT_ENVIRONMENT = var.uid_deployment_env
110111
tee-env-API_TOKEN_SECRET_NAME = module.secret-manager.secret_versions[0]
111112
tee-env-CORE_BASE_URL = var.uid_deployment_env == "integ" ? "https://core-integ.uidapi.com" : "https://core-prod.uidapi.com"

0 commit comments

Comments
 (0)