Skip to content

Commit 5b95d7a

Browse files
dpark01claude
andcommitted
Remove gsutil vendored urllib3 dummyserver containing dummy private key
The dummyserver directory includes a test private key that triggers Trivy secret-detection alerts. Removed in the same layer as the google-cloud-sdk install so no layer ever contains it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5401a15 commit 5b95d7a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/Dockerfile.baseimage

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ COPY docker/install-conda-deps.sh /tmp/
6161
# Remove google-cloud-sdk's bundled Python — it contains vendored copies of
6262
# cryptography, pyOpenSSL, etc. that are older than what we install via conda.
6363
# Remove gcloud-crc32c — Go binary compiled with old Go stdlib (CVEs).
64+
# Remove gsutil's vendored urllib3 dummyserver — contains a dummy private key
65+
# that triggers secret-detection scanners (e.g. Trivy).
6466
# gcloud/gsutil use the conda environment Python, not the bundled one.
6567
RUN /tmp/install-conda-deps.sh /tmp/requirements/baseimage.txt && \
6668
rm -rf /opt/conda/share/google-cloud-sdk-*/platform/bundledpythonunix && \
6769
rm -f /opt/conda/share/google-cloud-sdk-*/bin/gcloud-crc32c && \
70+
rm -rf /opt/conda/share/google-cloud-sdk-*/platform/gsutil/third_party/urllib3/dummyserver && \
6871
rm -rf /tmp/requirements /tmp/install-conda-deps.sh
6972

7073
# Install firecloud via pip instead of conda because the conda noarch

0 commit comments

Comments
 (0)