Skip to content

fix(deploy): point every image reference at ghcr.io/rossoctl - #193

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:fix/ghcr-rossoctl-image-paths
Aug 31, 2026
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:fix/ghcr-rossoctl-image-paths

Conversation

@pdettori

Copy link
Copy Markdown
Member

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 under ghcr.io/rossoctl, and the freed kagenti name was subsequently claimed by an unrelated org (created 2026-07-21, 0 public repos). The old namespace is therefore dead in both directions:

Evidence
Pulls fail ghcr.io/kagenti/* → 403 DENIED at GHCR's token endpoint, which is exactly the kubelet's Requesting bearer token: received unexpected HTTP status: 403 Forbidden → ImagePullBackOff
Pushes fail build.yaml targeted a namespace we no longer own; all three build-and-push jobs have been failing
Images frozen :latest is stuck at 118f4271 (2026-07-17), 141 commits behind main — a direct consequence of the failing pushes

This resolves the option (a) vs (b) question the issue left open: (a) is impossible. There are no kagenti packages 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 (the kagenti-extensions there is the package name, not the org). This is the trap a naive find/replace of the word kagenti would fall into.

  • Publisher — build.yaml: all three images now push to rossoctl.
  • Consumers — overlays (ocp, ocp-async, ocp-authbridge), sandbox-pool-ab2.yaml, ab1-deployment.yaml, and the three setup scripts. The sed rewrite rules in setup-ocp.sh use the old paths as search patterns, so both sides were moved in lockstep to keep them matching.
  • Docs — the live operational docs (README-ocp.md, README-k8s.md, README-worker.md, RUNBOOK.md) plus the provenance references in EXPERIMENTS.md/specs/ADR. The historical :0.2.1 tag was verified to still resolve under rossoctl, 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.sh and setup-k8s.sh assigned the image vars unconditionally, so HARNESS_IMAGE=... ./setup-ocp.sh was silently ignored and only the flags worked. They now use the \${VAR:-default} shape setup-kind.sh already had, and the usage text documents the env form. Verified via --dry-run:

Case Result
no override ghcr.io/rossoctl/serverless-harness:latest
HARNESS_IMAGE=… honoured (previously ignored)
env + --image flag wins — precedence preserved

Verification

  • New guard test (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.
  • Rendered every overlay with kustomize and 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.

make lint fails on this machine both before and after this change (Type tag 'typescript' is not recognized — pre-commit's identify is too old). Pre-existing and unrelated; prettier is not gated in CI.

Follow-up, not in this PR

Once merged, build.yaml needs a run to publish fresh :latest images to rossoctl — the current ones are 141 commits stale. setup-ocp.sh also still exits 0 while pods are in ImagePullBackOff, which is tracked separately.

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
pdettori force-pushed the fix/ghcr-rossoctl-image-paths branch from 1d0e8c8 to f7116e0 Compare August 31, 2026 15:40
@pdettori
pdettori merged commit 69992c7 into rossoctl:main Aug 31, 2026
10 checks passed
@pdettori
pdettori deleted the fix/ghcr-rossoctl-image-paths branch August 31, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Published images unreachable: ghcr.io/kagenti/* returns 403 after the org rename; setup scripts die in ImagePullBackOff

1 participant