Repository navigation
ci: one image-registry setting and a quay-capable registry library (Quay migration phase 1, no behaviour change) - #998
Merged
Merged
Conversation
…uay migration phase 1, no behaviour change) Proposal 040 moves every image and chart from ghcr.io/bpalermo/aether to the quay.io org `aethermesh`. This is phase 1: nothing moves yet, but the move becomes a one-file flip and the verification library already works against both registries. One setting: bazel/img/registry.bzl (IMAGE_REGISTRY, IMAGE_NAMESPACE, IMAGE_NAME_OVERRIDES, CHART_REPOSITORY_PREFIX + image_repository(), image_reference(), chart_repository(), chart_registry_url(), registry_token_url()). Every go_multi_arch_image call site, the chart pushes and the proxy-supervisor template test, the e2e go_test (x_defs) and //bazel/proxy_pin read it; the //proxy workspace carries a byte-identical copy (proxy/bazel/registry.bzl). Workflows, verifiers and e2e scripts read it through scripts/image-registry.sh (strict parse, no defaults); IMAGE_REGISTRY / PROXY_IMAGE in the workflows are now derived into $GITHUB_ENV. scripts/check-registry-config.sh (ci + proxy shell jobs) asserts the setting parses, the proxy copy matches, the aether-proxy pin agrees, and no literal survives outside a written-down allow-list; //bazel/img:registry_test pins the shell reader against the Starlark helpers. scripts/ghcr-lib.sh -> scripts/registry-lib.sh (ghcr-lib.sh is a shim; every ghcr_* name is an alias): REGISTRY_HOST-parameterised, per-host token endpoint (ghcr /token, quay /v2/auth), and registry_referrers (OCI 1.1; a 404 means "no API", never "no signatures"). registry_signature_layout[_direct] now also reports `referrer` for a cosign sign-bundle referrer (an attestation bundle or a buildx attestation does not count). check-ghcr-lookup.sh -> check-registry-lookup.sh with a fake quay; check-signature-layout.sh gains the referrer cases. Every rendered coordinate is unchanged (image_push/image_load/oci_push/helm push targets queried before and after). Chart patch versions bumped because their BUILD files changed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
ci/registry-abstraction
branch
from
September 27, 2026 16:58
e669567 to
58aca21
Compare
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This was referenced Sep 27, 2026
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.
Phase 1 of proposal 040 (Quay migration). No behaviour change: everything still publishes to and verifies against
ghcr.io/bpalermo/aether. Every rendered coordinate is unchanged; I queried theimage_push,image_load,oci_push/oci_loadand helm push targets before and after the change.One setting
bazel/img/registry.bzlholds the four values below, plus the helpersimage_repository(),image_reference(),chart_repository(),chart_registry_url()andregistry_token_url():go_multi_arch_imagecall sites,go_multi_arch_image.bzldefaultimage_repository("<c>"),IMAGE_REGISTRYlogin_url/registry_url),aether_proxy_supervisor_image_testIMAGE_REGISTRY,chart_registry_url(),image_reference("proxy-supervisor")//proxyoci_push/oci_loadproxy/bazel/registry.bzl, a byte-identical copy (that workspace cannot load from the root module)//bazel/proxy_pinimage_reference("proxy")(was: last segment ==aether-proxy), token viaregistry_token_url()//test/e2e:e2e_testx_defsdefault image refs (AETHER_*_IMAGEstill override)scripts/image-registry.sh >> "$GITHUB_ENV"after checkout →IMAGE_REGISTRY_HOST,IMAGE_NAMESPACE,IMAGE_REGISTRY,PROXY_IMAGE;docker/login-actionregistry:derived; proxy-release'sIMAGE→PROXY_IMAGE; bump-chart's sed address derivedIMAGE_REGISTRY="$(scripts/image-registry.sh prefix)"scripts/registry-lib.shresolves its repo lists throughimage-registry.shGuards.
scripts/check-registry-config.shruns inci'sshelljob, and inproxy'sshelljob because a proxy-only PR skipsci. It asserts four things:values.yamlnamesimage_reference("proxy");<host>/<namespace>, or the bare namespace path. Allow-list: the setting and its copy, the pin,docs/,website/,charts/README.md,proxy/README.md,.devcontainer/, and the check itself.Separately,
//bazel/img:registry_testpinsimage-registry.shagainst the Starlark helpers (26 answers).Registry library
scripts/ghcr-lib.shbecomesscripts/registry-lib.sh. The old file is now a one-line shim, and everyghcr_*/GHCR_*name is still an alias.REGISTRY_HOST, read at call time. It defaults to the host in the setting./token, quay/v2/auth.REGISTRY_USERNAME/REGISTRY_PASSWORDare supported for a Quay robot.GHCR_TOKENis sent only to ghcr.io.registry_referrers <repo> <digest> <token> [artifactType]. It followsLinkpagination and returns 0/200 with a merged index, 1/404 meaning "no referrers API", or 2 for anything else, including a 200 that is not an index.registry_signature_layout[_direct]can now returnreferrer: a referrer whose artifactType isapplication/vnd.dev.sigstore.bundle.v0.3+jsonand whosedev.sigstore.bundle.predicateTypeishttps://sigstore.dev/cosign/sign/v1, or one of cosign 2'sapplication/vnd.dev.cosign.artifact.sig.v1+json. An attestation bundle or a buildx attestation does not count. More than one layout present is reported asboth.verify-image-signatures.shtakes the host from each ref. Its header notes that cosign v3 finds a referrer on quay by itself.Harnesses (all offline)
check-ghcr-lookup.shbecomescheck-registry-lookup.sh, now 30 cases. It adds a fake quay covering:/v2/authtoken shape;referrer;.sigtag →both;registry.bzlflipped toquay.io/aethermesh) with signatures only as referrers → PASS 36/36, 24 of them via referrers.check-signature-layout.shnow has 13 cases, adding the referrer layouts.check-publish-verify-control.sh(14/14),check-proxy-pin.sh(18/18),check-push-head-selection.sh(6/6),check-index-children.sh(7/7),check-shell-lint.sh(37 scripts covered).For each new case I made a scratch mutation, watched it go red, then reverted. Details are in the session report.
Real read-only proofs
bpalermo/aether/agent:dev:/tokenreturns 200; tag lookup returns rc 0, and a missing tag rc 1;registry_referrersreturns rc 1 (404, no API), so the tag layouts decide: the index and both children arebundle.prometheus/prometheus:latest:/v2/authreturns 200;HEADreturns rc 0, and a missing tag rc 1;none.argoproj/argocd:latesthas 1 sign-bundle referrer (referrer).cilium/cilium:stablehas 2 (referrer).jetstack/cert-manager-controller:v1.18.0has only a.sigtag (legacy).keycloak/keycloak:latestchildren have buildx attestation referrers and read asnone, which is correct.Validation
bazel buildof//bazel/... //charts/... //tools/... //test/... //agent/cmd/... //cni/cmd/... //registrar/cmd/... //controller/cmd/... //prober/cmd/... //e2e/...bazel testof the same set: 33 pass, including everyimage_test, the chart template tests andregistry_test.x_defsrefs.proxy/:bazel build --nobuild //:push //:loadbazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //scripts/... //bazel/... //e2e/... //tools/... //charts/... //test/...make gazelleandbazel run //:formatleave no diff.Not run: kind/e2e, any push or signing, actionlint.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr