From 825bfe6c05ded96c0d3174b5cfa25de18adc9f3c Mon Sep 17 00:00:00 2001 From: Mac Deluca <99926243+MacQSL@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:02:15 -0800 Subject: [PATCH] BugFix: Update ENV Values (#1429) - Added missing env values to CI/CD --- api/.pipeline/templates/api.dc.yaml | 27 ++++++++++++++++++++++++--- api/src/utils/env-config.ts | 1 - 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/api/.pipeline/templates/api.dc.yaml b/api/.pipeline/templates/api.dc.yaml index deda7421d7..82dd6713db 100644 --- a/api/.pipeline/templates/api.dc.yaml +++ b/api/.pipeline/templates/api.dc.yaml @@ -121,6 +121,16 @@ parameters: description: S3 key optional prefix required: false value: 'sims' + # Request limits + - name: MAX_REQ_BODY_SIZE + description: Maximum request body size in bytes + value: '52428800' + - name: MAX_UPLOAD_NUM_FILES + description: Maximum number of files uploaded in a single request + value: '10' + - name: MAX_UPLOAD_FILE_SIZE + description: Maximum upload file size in bytes + value: '52428800' # Logging - name: LOG_LEVEL value: 'silent' @@ -162,12 +172,12 @@ parameters: - name: GCNOTIFY_ONBOARDING_REQUEST_EMAIL_TEMPLATE description: gcnotify email template id value: 7779a104-b863-40ac-902f-1aa607d2071a + - name: GCNOTIFY_REQUEST_RESUBMIT_TEMPLATE + description: gcnotify email resubmit template id + value: c973da33-1f2b-435a-9429-d8ab4fd273c5 - name: GCNOTIFY_ONBOARDING_REQUEST_SMS_TEMPLATE description: gcnotify sms template id value: af2f1e40-bd72-4612-9c5a-567ee5b26ca5 - - name: GCNOTIFY_REQUEST_RESUBMIT_TEMPLATE - description: gcnotify request resubmit email template - value: c973da33-1f2b-435a-9429-d8ab4fd273c5 - name: GCNOTIFY_EMAIL_URL value: https://api.notification.canada.ca/v2/notifications/email - name: GCNOTIFY_SMS_URL @@ -336,6 +346,13 @@ objects: value: ${KEYCLOAK_API_HOST} - name: KEYCLOAK_API_ENVIRONMENT value: ${KEYCLOAK_API_ENVIRONMENT} + # Request limits + - name: MAX_REQ_BODY_SIZE + value: ${MAX_REQ_BODY_SIZE} + - name: MAX_UPLOAD_NUM_FILES + value: ${MAX_UPLOAD_NUM_FILES} + - name: MAX_UPLOAD_FILE_SIZE + value: ${MAX_UPLOAD_FILE_SIZE} # Object Store (S3) - name: OBJECT_STORE_URL valueFrom: @@ -357,6 +374,8 @@ objects: secretKeyRef: key: object_store_bucket_name name: ${OBJECT_STORE_SECRETS} + - name: S3_KEY_PREFIX + value: ${S3_KEY_PREFIX} # Logging - name: LOG_LEVEL value: ${LOG_LEVEL} @@ -387,6 +406,8 @@ objects: value: ${GCNOTIFY_ADMIN_EMAIL} - name: GCNOTIFY_ONBOARDING_REQUEST_EMAIL_TEMPLATE value: ${GCNOTIFY_ONBOARDING_REQUEST_EMAIL_TEMPLATE} + - name: GCNOTIFY_REQUEST_RESUBMIT_TEMPLATE + value: ${GCNOTIFY_REQUEST_RESUBMIT_TEMPLATE} - name: GCNOTIFY_ONBOARDING_REQUEST_SMS_TEMPLATE value: ${GCNOTIFY_ONBOARDING_REQUEST_SMS_TEMPLATE} - name: GCNOTIFY_EMAIL_URL diff --git a/api/src/utils/env-config.ts b/api/src/utils/env-config.ts index 201d89f4dd..913afeedec 100644 --- a/api/src/utils/env-config.ts +++ b/api/src/utils/env-config.ts @@ -59,7 +59,6 @@ export const EnvSchema = z.object({ // Biohub BACKBONE_INTERNAL_API_HOST: ZodEnvString, - BACKBONE_PUBLIC_API_HOST: ZodEnvString, BACKBONE_INTAKE_PATH: ZodEnvString, BACKBONE_ARTIFACT_INTAKE_PATH: ZodEnvString, BIOHUB_TAXON_PATH: ZodEnvString,