Commit ed4eacd
jenkins: HARBOR_ADMIN_PASSWORD env, cosign 600 perms, ttl.sh expiry docs
Bundled remediations from the ninth Copilot pass on PR #330:
- HARBOR_ADMIN_PASSWORD: drop the hardcoded "Harbor12345" literal
from cgLogin (Mode C push-auth), the harbor Terraform provider,
and the Helm values template. All three now consume a single env
var that defaults to "Harbor12345" (the chart's own default) when
unset, but can be overridden via .env before running setup.sh.
Wired through setup.sh → .env, deploy.sh → Helm + tfvars, JCasC
globalNodeProperties → controller env → cgLogin. Updated the
user-facing docs (top-level README, harbor/README, setup.sh and
deploy.sh status prints) to mention the variable.
- cosign perms: re-tighten to chmod 600. Round 7's switch to
${readFile:…} forced regress to 644 because JCasC (uid 1000)
couldn't read host-user-owned 600 files across the bind mount.
setup.sh now does a one-shot root container that chowns the key,
pub, and password files to uid 1000:1000 and chmods 600 — JCasC
reads as the same uid, and setup.sh no longer needs host-side
read access (the passphrase isn't round-tripped through env any
more). Teardown.sh's existing sudo-rm fallback covers cleanup.
- ttl.sh expiry notes: the four per-app READMEs (python312, 314,
node22, 25) all said "ttl.sh tags expire" unconditionally, but
Mode C pushes go to Harbor (persistent). Reword to be conditional
on $PUSH_REGISTRY. jobs.groovy descriptions had the same issue;
also reworded.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d24f252 commit ed4eacd
17 files changed
Lines changed: 103 additions & 32 deletions
File tree
- jenkins
- apps
- node22-npm-express
- node25-pnpm-express
- python312-pip-django
- python314-uv-flask
- harbor
- cg/helm
- terraform
- jenkins/casc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
0 commit comments