Skip to content

Commit

Permalink
Enable log redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Apr 11, 2024
1 parent e7df681 commit eadd11d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Empty file added .github/workflows/test.js
Empty file.
1 change: 1 addition & 0 deletions scripts/gcp-oidc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM eclipse-temurin@sha256:564eb67091b2cda82952299b4be52bf1b039289234b52f46057fe1286c173b71

LABEL "tee.launch_policy.allow_env_override"="API_TOKEN_SECRET_NAME,DEPLOYMENT_ENVIRONMENT,CORE_BASE_URL,OPTOUT_BASE_URL"
LABEL "tee.launch_policy.log_redirect"="always"

# Install Packages
RUN apk update && apk add jq
Expand Down
4 changes: 2 additions & 2 deletions scripts/gcp-oidc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ $ gcloud compute instances create {INSTANCE_NAME} \
--image-project confidential-space-images \
--image-family confidential-space \
--service-account {SERVICE_ACCOUNT} \
--metadata ^~^tee-image-reference={OPERATOR_IMAGE}~tee-restart-policy=Never~tee-env-DEPLOYMENT_ENVIRONMENT=integ~tee-env-API_TOKEN_SECRET_NAME={OPERATOR_KEY_SECRET_FULL_NAME}
--metadata ^~^tee-image-reference={OPERATOR_IMAGE}~tee-restart-policy=Never~tee-container-log-redirect=true~tee-env-DEPLOYMENT_ENVIRONMENT=integ~tee-env-API_TOKEN_SECRET_NAME={OPERATOR_KEY_SECRET_FULL_NAME}
```
## Production Deployment
Expand All @@ -212,7 +212,7 @@ $ gcloud compute instances create {INSTANCE_NAME} \
--image-project confidential-space-images \
--image-family confidential-space \
--service-account {SERVICE_ACCOUNT} \
--metadata ^~^tee-image-reference={OPERATOR_IMAGE}~tee-restart-policy=Never~tee-env-DEPLOYMENT_ENVIRONMENT=prod~tee-env-API_TOKEN_SECRET_NAME={OPERATOR_KEY_SECRET_FULL_NAME}
--metadata ^~^tee-image-reference={OPERATOR_IMAGE}~tee-restart-policy=Never~tee-container-log-redirect=true~tee-env-DEPLOYMENT_ENVIRONMENT=prod~tee-env-API_TOKEN_SECRET_NAME={OPERATOR_KEY_SECRET_FULL_NAME}
```
Note that compared to the `gcloud` command used in the prior section, parameter `--machine-type n2d-standard-16` is set to ensure production deployment of UID2 Operator runs on the recommended machine type for production.
Expand Down
2 changes: 1 addition & 1 deletion scripts/gcp-oidc/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ resource "google_compute_instance_template" "uid_operator" {

metadata = {
tee-image-reference = var.uid_operator_image
tee-container-log-redirect = var.debug_mode
tee-container-log-redirect = true
tee-restart-policy = "Never"
tee-env-DEPLOYMENT_ENVIRONMENT = var.uid_deployment_env
tee-env-API_TOKEN_SECRET_NAME = module.secret-manager.secret_versions[0]
Expand Down

0 comments on commit eadd11d

Please sign in to comment.