Harbor image updates: investigation of #2281¶
Status, 2026-11-01: the cause is confirmed and the owner has decided the fix. This repository's part,
the Harbor host rule, is in this pull request. The shared preset change in Skatzi/renovate-config
is still open, and so are the proof runs that follow it (Proof after the merge).
eloro/webshop-platform pins harbor.prod.skatzi.com/skatzi/webshop-platform (image.tag) and
harbor.prod.skatzi.com/skatzi/webshop-shop-template-frontend (frontend.image.tag) in
deploy/demo/helmrelease.yaml. Renovate had proposed neither update, 14 releases on.
Cause¶
The operator read these sources (read-only) on 2026-10-31, in triage #2295, recorded on task #2281:
- The shared preset turns the packages off. The last
packageRuleofdefault.jsoninSkatzi/renovate-configis "Out of scope (ADR §14): our own images, whose tags release CI writes". It has amatchPackageNamesregex^harbor\.prod\.skatzi\.com\/skatzi\/(next to the other §14 packages) and"enabled": false.eloro/webshop-platform/renovate.json,shop-template/renovate.jsonandeloro/webshop-shop-template/renovate.jsonall extendlocal>Skatzi/renovate-config, and none of them turns the packages back on. - Extraction is not the cause. The log of job
renovate-29890680(namespacerenovate, Renovate 44.181.5) showshelm-values: fileCount 2, depCount 4foreloro/webshop-platform, with no lookup failure for a Harbor package. Sohelm-valuesfinds the values underspec.values, and the packages are dropped before lookup. Dependency Dashboardeloro/webshop-platform#6(2026-10-31T08:11Z) listsdeploy/demo/helmrelease.yamlwith no dependency and no pending update. - Authentication would fail next. The first cause hides a second one. Renovate had no Harbor
host rule:
renovate-envheld onlyRENOVATE_TOKENandGITHUB_COM_TOKEN. Harbor answers an anonymousGET /v2/skatzi/webshop-platform/tags/listwith 401, even after the anonymous token exchange at/service/token(probed in the first run of this task). With the existing pull robot fromharbor-pull-secret, the same call returns 200 (18 tags, latestv1.64.2). So does the call forskatzi/webshop-shop-template-frontend(latest1.0.2). No secret value was printed.
The other ranked hypotheses, scheduling, release age and PR limits, are refuted: nothing reached lookup, so nothing was deferred.
Owner decisions (2026-11-01)¶
- Scope. Consumer repositories (
eloro/*) may have Renovate updateharbor.prod.skatzi.com/skatzi/**pins (the demo'sdeploy/demo, each shop'sdeploy/prod). The exclusion stays forSkatzi/*, where release CI writes the tags. ADR §14 has the exception. - Credential. Renovate reuses the existing read-only pull robot, from the OpenBao key
harbor-pull-secretuses, through a host rule onharbor.prod.skatzi.comwithhostType: docker. Nothing new goes into OpenBao, and no secret goes into Git.
Fix¶
This repository. components/renovate/external-secret.yaml adds RENOVATE_HOST_RULES to
renovate-env: one docker host rule on harbor.prod.skatzi.com, filled from
hetzner-mgmt/harbor/pull-secret (username, password). That key is the one
cluster/hetzner-mgmt/external-secrets/config/kustomization.yaml patches into harbor-pull-secret.
Secrets describes how Renovate authenticates. Primary sources:
- Renovate parses an object or list option from its
RENOVATE_<OPTION>environment variable as JSON (config overview, environment variables), andhostRulesis CLI/env-enabled (lib/config/options/index.ts,name: 'hostRules',cli: true). - The chart (46.381.5) loads
existingSecretwithenvFrom.secretRef, so every key becomes a variable (helm templateof the chart). - External Secrets' template drops the synced keys unless
mergePolicy: Merge.Replaceis the default (templating guide, MergePolicy), so the template lists all three variables.toJson(sprig) quotes the robot's name, which contains$.
Skatzi/renovate-config (not in this pull request). This run's role reads only this repository,
and Taskbase has no project for Skatzi/renovate-config, so neither the change nor a follow-up task
could be made there. The change to default.json:
- Remove the
harbor.prod.skatzi.com/skatzi/regex from the existing §14 rule. Leavesiderolabsandregistry.k8s.io/kube-*there, since they stay off everywhere. - Add, after it:
{
"description": "Out of scope (ADR §14): our own images in Skatzi/*, whose tags release CI writes",
"matchRepositories": ["Skatzi/*"],
"matchPackageNames": ["harbor.prod.skatzi.com/skatzi/**"],
"enabled": false
},
{
"description": "ADR §14 exception: consumer pins of our own images take release tags only, never -amd64/-arm64",
"matchPackageNames": ["harbor.prod.skatzi.com/skatzi/**"],
"allowedVersions": "/^v?\\d+\\.\\d+\\.\\d+$/"
}
allowedVersions takes a regex between slashes
(configuration options, allowedVersions).
The pattern accepts v1.64.2 and 1.0.2 and rejects v1.64.2-amd64.
eloro repositories. With the preset changed, no renovate.json there needs a change: they
extend the preset and do not disable the packages themselves. If the preset is not changed, each of
eloro/webshop-platform, its shop-template/renovate.json and eloro/webshop-shop-template needs
the second rule above with "enabled": true added.
Proof after the merge¶
Both need this pull request applied by Flux and the preset change merged. This run has no cluster
access (kubectl has no configured cluster) and cannot read the eloro repositories, so neither
check has run yet.
- Demo (§3). In the next hourly run,
kubectl -n renovate logs job/<latest>shows no Harbor lookup failure foreloro/webshop-platform. Dashboardeloro/webshop-platform#6then listsharbor.prod.skatzi.com/skatzi/webshop-platformunderdeploy/demo/helmrelease.yamlwith an update to the latestvX.Y.Z(v1.64.2on 2026-10-31), or Renovate opens that pull request. - Generated shops (§4). A shop created from
shop-templategets the same for theharbor.prod.skatzi.com/skatzi/**pins in itsdeploy/prod/helmrelease.yaml, on its own Dependency Dashboard. The template'srenovate.jsonextends the same preset, so the change above covers it. - Rollback. Revert this pull request and the preset change. Renovate then skips the packages, as before.