Skip to content

Commit

Permalink
Added env for api pod
Browse files Browse the repository at this point in the history
  • Loading branch information
dt-dilip committed Jul 19, 2024
1 parent 85d0130 commit ca5288e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/cdefense/templates/api/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions charts/cdefense/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions charts/cdefense/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca5288e

Please sign in to comment.