Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# KSV-0125: Restrict container images to trusted registries
# Why ignored: The container image path is dynamically constructed using Helm templates
# (e.g., "{{- if and $c.registry ... }}") and defaults to ghcr.io. Trivy performs static
# analysis on raw templates before values are rendered, and flags the Go template syntax
# itself as an untrusted registry name.
AVD-KSV-0125

# KSV-0020 / KSV-0021: Runs with UID/GID <= 10000
# Why ignored: OpenShift's Security Context Constraints (SCC) dynamically allocate
# extremely high range UIDs and GIDs (e.g., 1000600000+) at runtime. Hardcoding specific
# UIDs/GIDs like 10001 in these Helm templates to satisfy the static scanner will trigger
# admission webhook rejections on standard OpenShift namespaces.
AVD-KSV-0020
AVD-KSV-0021

# KSV-0011: CPU not limited
# Why ignored: Om, our smart coworker, advised removing CPU limits to allow containers
# to burst into unallocated node capacity, preventing unnecessary throttling during peak load.
AVD-KSV-0011
8 changes: 8 additions & 0 deletions charts/pubcode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ api:
requests:
cpu: 50m
memory: 100Mi
limits:
memory: 4Gi
readinessProbe:
httpGet:
path: /api/pub-code/health
Expand Down Expand Up @@ -147,6 +149,8 @@ frontend:
requests:
cpu: 50m
memory: 50Mi
limits:
memory: 4Gi
readinessProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -239,6 +243,8 @@ database:
requests:
cpu: 50m
memory: 150Mi
limits:
memory: 4Gi
volumeMounts:
- name: '{{ .Release.Name }}-database'
mountPath: /data/db
Expand All @@ -261,6 +267,8 @@ database:
requests:
cpu: 50m
memory: 150Mi
limits:
memory: 4Gi
readinessProbe:
tcpSocket:
port: 27017
Expand Down
Loading