ci: suppress AVD-DS-0002 for the worker images - #11
Merged
Merged
Conversation
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.
sebastiancorrea81
approved these changes
Sep 14, 2026
gdrojas
approved these changes
Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Trivy IaC gate is red on main since #9:
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 aUSERdirective in these files.Precedent
services-postgresql-rdsships the identical pair of Dockerfiles and carries this exact suppression:#9 copied the Dockerfiles from that repository but not its
.trivyignoreentry, 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.