From ca5288eef8bafcceccd52d1fade84dee4d7c0ad5 Mon Sep 17 00:00:00 2001 From: Dilip <116056239+dt-dilip@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:56:55 +0530 Subject: [PATCH] Added env for api pod --- charts/cdefense/templates/api/config.yaml | 2 ++ charts/cdefense/templates/api/deployment.yaml | 10 ++++++++++ charts/cdefense/values.yaml | 2 ++ 3 files changed, 14 insertions(+) diff --git a/charts/cdefense/templates/api/config.yaml b/charts/cdefense/templates/api/config.yaml index d8e25b6..17490a3 100644 --- a/charts/cdefense/templates/api/config.yaml +++ b/charts/cdefense/templates/api/config.yaml @@ -24,6 +24,8 @@ data: AWS_S3_ENDPOINT: {{ .Values.api.data.endpoint }} AWS_SCAN_S3_REGION: {{ .Values.api.logs.region }} AWS_SCAN_S3_BUCKET: {{ .Values.api.logs.bucket }} + AWS_DAST_UPLOAD_S3_REGION: {{ .Values.api.dast.region }} + AWS_DAST_UPLOAD_S3_BUCKET: {{ .Values.api.dast.bucket }} VULNERABILITY_SCRAPER_SERVICE_HOST: {{ .Values.api.vuln.host}} MAX_SCAN_PER_USER: "10" ONLINE_SCAN_POOL_SIZE: "20" diff --git a/charts/cdefense/templates/api/deployment.yaml b/charts/cdefense/templates/api/deployment.yaml index 9b524fc..add574e 100644 --- a/charts/cdefense/templates/api/deployment.yaml +++ b/charts/cdefense/templates/api/deployment.yaml @@ -352,6 +352,16 @@ spec: key: AWS_DAST_UPLOAD_S3_SECRET_KEY name: scan-server-secrets optional: true + - name: AWS_DAST_UPLOAD_S3_REGION + valueFrom: + configMapKeyRef: + key: AWS_DAST_UPLOAD_S3_REGION + name: scan-server-config + - name: AWS_DAST_UPLOAD_S3_BUCKET + valueFrom: + configMapKeyRef: + key: AWS_DAST_UPLOAD_S3_BUCKET + name: scan-server-config ports: - containerPort: 8080 livenessProbe: diff --git a/charts/cdefense/values.yaml b/charts/cdefense/values.yaml index b7ce53f..34f593a 100644 --- a/charts/cdefense/values.yaml +++ b/charts/cdefense/values.yaml @@ -103,6 +103,8 @@ api: image: cdefense/api-v2 dast: image: cdefense/dast-v2 + region: us-west-2 + bucket: cdefense-dast-curl fullscan: image: cdefense/fullscan data: