Skip to content

ci: suppress AVD-DS-0002 for the worker images - #11

Merged
agustincelentano merged 1 commit into
mainfrom
ci/suppress-ds-0002
Sep 14, 2026
Merged

agustincelentano merged 1 commit into
mainfrom
ci/suppress-ds-0002

Conversation

@agustincelentano

Copy link
Copy Markdown
Contributor

Why

The Trivy IaC gate is red on main since #9:

Dockerfile.aurora-postgres-db      [HIGH] DS-0002  Image user should not be 'root'
Dockerfile.aurora-postgres-server  [HIGH] DS-0002  Image user should not be 'root'

Both build on public.ecr.aws/nullplatform/scopes/worker-bridge:1.0.0, which runs as root today. The runtime user is governed by the agent's worker pod securityContext and patches, not by a USER directive in these files.

Precedent

services-postgresql-rds ships the identical pair of Dockerfiles and carries this exact suppression:

AVD-DS-0002 — the worker image builds on the shared worker-bridge base, which runs as root by design today (same as scopes-lambda): the runtime user is governed by the agent's worker pod securityContext/patches, not by a USER directive here. Revisit when the bridge ships a non-root variant.

#9 copied the Dockerfiles from that repository but not its .trivyignore entry, which is what left the gate red. This restores parity.

Blocking

The release-please PR (#10, chore(main): release 0.2.0) cannot go green until this lands, so no worker image is published for either Aurora service until then.

The Trivy IaC gate fails on both Dockerfiles added in #9 with DS-0002 ("Image
user should not be 'root'"). They build on the shared worker-bridge base, which
runs as root by design today; the runtime user comes from the agent's worker pod
securityContext and patches, not from a USER directive in these files.

services-postgresql-rds carries the same suppression with the same rationale for
the same two images. Copying the Dockerfiles from that repository without its
.trivyignore entry is what left the gate red.
@agustincelentano
agustincelentano merged commit f0e717d into main Sep 14, 2026
6 checks passed
@agustincelentano
agustincelentano deleted the ci/suppress-ds-0002 branch September 14, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants