You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jenkins: read cosign passphrase from file, fix doc digest example
Three Copilot findings from the seventh pass on PR #330:
- COSIGN_PASSWORD env var: drop it from the controller env entirely
and have JCasC read the passphrase from the bind-mounted file via
`${readFile:/tmp/cgjenkins-home/.secrets/cosign.password}` at boot.
The env-var path was visible to `docker inspect` and one stray
`echo $COSIGN_PASSWORD` away from showing up in build logs.
Tradeoff: cosign.password drops back from 600 to 644 because JCasC
(uid 1000 inside the controller) needs to read it across the
bind mount, and the host user's uid usually isn't 1000. Documented
the resulting threat-model assumption (single-user dev laptop).
- README verify-image example: replace `{{index .RepoDigests 0}}`
with the repo-filtered loop that cgSign/cgVerify already use, so
the doc stops handing readers a digest that may belong to a
different push (the local image cache often carries stale
RepoDigests from earlier runs against different registries).
- python312-pip-django/app.py: drop the redundant inner `import
django` in hello() — django is already imported at module scope
(added in the previous round to fix the AppRegistryNotReady path).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: jenkins/README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,15 @@ A clean build takes 10s–40s once images are cached locally; the Gradle pipelin
114
114
The public key sits at `/tmp/cgjenkins-home/.secrets/cosign.pub`. To check a pushed image from outside Jenkins, run cosign in a host-network container so `localhost` resolves to your ingress:
0 commit comments