-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.trivyignore
More file actions
22 lines (21 loc) · 1.35 KB
/
Copy path.trivyignore
File metadata and controls
22 lines (21 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Trivy ignore list — reviewed findings. Keep each entry justified; remove the
# entry when the underlying issue is fixed (or, for platform-dictated
# false-positives, when the platform constraint changes).
# KSV-0118: deploy/gcp/{job,service}.yaml — "default security context allows
# root". PERMANENT, platform-dictated false-positive — not a TODO.
#
# Trivy applies a generic Kubernetes rule that wants `securityContext.runAsNonRoot:
# true` in the manifest. But these are Cloud Run *fully managed* manifests
# (run.googleapis.com/v1, serving.knative.dev/v1), and the Cloud Run v1 YAML
# schema does not expose `securityContext` at all — the RunV1 SecurityContext
# type carries only `runAsUser`, itself documented "Not supported by Cloud Run".
# Adding runAsNonRoot would be rejected/dropped by `gcloud run ... replace`, so
# no manifest change can clear this check.
# Ref: https://docs.cloud.google.com/run/docs/reference/yaml/v1 (no securityContext field)
#
# Non-root IS enforced where Cloud Run honors it — the image: both deploy/Dockerfile
# and openclaw/Dockerfile.primr run `USER primr` (uid 1000), and Cloud Run respects
# the Dockerfile USER directive at runtime. A regression test
# (tests/test_deploy/test_gcp_deployment.py::TestGCPSecurityContext) guards against
# a future contributor "fixing" this by adding a securityContext that breaks deploy.
KSV-0118