fix(worker): second security pass — content-only rejection codes (resource_limit, explicit list), negative proofs of the seccomp argument filters, PR_GET_DUMPABLE self-check, strict WebP chunk structure, iCCP-bomb fixture, separate test target cache; ci: release-images builder actually used (job-level DOCKER_CONFIG, --builder), literal cleanup path, token scoped to the login step, npm advisories gate, digests from build metadata

This commit is contained in:
bchanot committed 2026-10-13 00:36:30 +02:00
1 parent 11813f5560
commit a8b644a515
12 files changed
+278 -55

No files matched your search

+3 -2
View File
@@ -24,11 +24,12 @@ RUN --mount=type=cache,id=faunosteo_cargo_registry_musl,target=/usr/local/cargo/
# by it): the binary under test differs from the shipped one by the feature-gated hooks only.
FROM base AS test
RUN apk add --no-cache strace
# Own target cache: the hooks build and the shipped build must never share target/release.
RUN --mount=type=cache,id=faunosteo_cargo_registry_musl,target=/usr/local/cargo/registry \
--mount=type=cache,id=faunosteo_target_musl,target=/w/target \
--mount=type=cache,id=faunosteo_target_musl_test,target=/w/target \
cargo test -p faunosteo-worker --release --features test-hooks --locked -- --test-threads=4
RUN --mount=type=cache,id=faunosteo_cargo_registry_musl,target=/usr/local/cargo/registry \
--mount=type=cache,id=faunosteo_target_musl,target=/w/target \
--mount=type=cache,id=faunosteo_target_musl_test,target=/w/target \
sh crates/worker/scripts/derive-seccomp.sh
FROM gcr.io/distroless/static-debian12:nonroot AS runtime