Repository navigation
fix(deploy): point every image reference at ghcr.io/rossoctl - #193
Merged
Merged
Conversation
The publishing org was renamed kagenti -> rossoctl. GitHub redirects
*repository* paths after a rename, but GHCR does **not** redirect *package*
paths: the packages became reachable only under ghcr.io/rossoctl, and the
freed `kagenti` name was then claimed by an unrelated org. So the old
namespace is dead in both directions:
- consumers get 403 from GHCR's token endpoint, surfacing as
ImagePullBackOff for the sandbox pods and the relay;
- build.yaml cannot push to a namespace we no longer own, so every
build-and-push job has been failing and :latest is frozen at
118f427 (2026-07-17), 141 commits behind main.
This rules out "re-publish under kagenti" as an option -- there are no
kagenti packages left to make public.
Only the namespace segment moves; package names are untouched. So the
third-party AuthBridge image becomes
ghcr.io/rossoctl/kagenti-extensions/authbridge (the "kagenti-extensions"
there is the package name, not the org). All four resulting paths were
verified anonymously pullable, including the historical :0.2.1 tag, so the
provenance references in EXPERIMENTS.md and the specs stay reproducible
rather than being falsified.
Also fixes the secondary defect in the same area: setup-ocp.sh and
setup-k8s.sh assigned HARNESS_IMAGE/SANDBOX_IMAGE unconditionally, so
`HARNESS_IMAGE=... ./setup-ocp.sh` was silently ignored and only the
--image/--sandbox-image flags worked. They now use the ${VAR:-default}
shape setup-kind.sh already had, with flags still taking precedence, and
the usage text documents the env form.
Adds a guard test that fails on any reference to the dead namespace, and
asserts the publisher targets and the env-override shape.
Fixes rossoctl#177
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
pdettori
force-pushed
the
fix/ghcr-rossoctl-image-paths
branch
from
August 31, 2026 15:40
1d0e8c8 to
f7116e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #177.
Root cause
The publishing org was renamed
kagenti→rossoctl. GitHub redirects repository paths after a rename, but GHCR does not redirect package paths — the packages became reachable only underghcr.io/rossoctl, and the freedkagentiname was subsequently claimed by an unrelated org (created 2026-07-21, 0 public repos). The old namespace is therefore dead in both directions:ghcr.io/kagenti/*→403 DENIEDat GHCR's token endpoint, which is exactly the kubelet'sRequesting bearer token: received unexpected HTTP status: 403 Forbidden→ImagePullBackOffbuild.yamltargeted a namespace we no longer own; all threebuild-and-pushjobs have been failing:latestis stuck at118f4271(2026-07-17), 141 commits behind main — a direct consequence of the failing pushesThis resolves the option (a) vs (b) question the issue left open: (a) is impossible. There are no
kagentipackages left to make public; that namespace belongs to a third party. (b) is the only path.What changed
Only the namespace segment moves — package names are untouched. So the third-party AuthBridge image becomes
ghcr.io/rossoctl/kagenti-extensions/authbridge(thekagenti-extensionsthere is the package name, not the org). This is the trap a naive find/replace of the wordkagentiwould fall into.build.yaml: all three images now push torossoctl.ocp,ocp-async,ocp-authbridge),sandbox-pool-ab2.yaml,ab1-deployment.yaml, and the three setup scripts. Thesedrewrite rules insetup-ocp.shuse the old paths as search patterns, so both sides were moved in lockstep to keep them matching.README-ocp.md,README-k8s.md,README-worker.md,RUNBOOK.md) plus the provenance references inEXPERIMENTS.md/specs/ADR. The historical:0.2.1tag was verified to still resolve underrossoctl, so those references stay reproducible rather than being falsified — the image bits are identical, only the reachable path changed.Secondary defect (also from #177)
setup-ocp.shandsetup-k8s.shassigned the image vars unconditionally, soHARNESS_IMAGE=... ./setup-ocp.shwas silently ignored and only the flags worked. They now use the\${VAR:-default}shapesetup-kind.shalready had, and the usage text documents the env form. Verified via--dry-run:ghcr.io/rossoctl/serverless-harness:latestHARNESS_IMAGE=…--imageVerification
ghcr-image-namespace.test.ts) — fails on any reference to the dead namespace anywhere in tracked files, and asserts the publisher targets plus the env-override shape. Went red (52 offenders, matching an independent grep) → green.kustomizeand probed each resulting image ref anonymously: all 4 return HTTP 200, i.e. the ImagePullBackOff condition is gone.pnpm -r test: 657 passed, 0 failed (skips are the env-gated live smokes).make typecheck: clean.shellcheck: no new findings.Note the two pre-existing tests that assert these paths pass because assertion and manifest moved together — so the independent verification is the guard test plus the live registry probes, not those assertions.
Follow-up, not in this PR
Once merged,
build.yamlneeds a run to publish fresh:latestimages torossoctl— the current ones are 141 commits stale.setup-ocp.shalso still exits 0 while pods are inImagePullBackOff, which is tracked separately.