Skip to content

quickstart: ask the registry for its token challenge with GET - #38

Merged
bruckins merged 1 commit into
mainfrom
fix/quickstart-ghcr-token
Nov 24, 2026
Merged

bruckins merged 1 commit into
mainfrom
fix/quickstart-ghcr-token

Conversation

@bruckins

Copy link
Copy Markdown
Member

Part of k8shell-io/k8shell#18. Fixes the public quickstart (https://get.k8shell.io), which since #37 fails with "No 2.x version of oci://ghcr.io/k8shell-io/charts/k8shell found": ghcr.io answers HEAD /v2/ with 405 and no WWW-Authenticate, so no anonymous token was requested and the tag listing was refused. oci_token now probes with GET (401 with the challenge on ghcr.io and registry.k8shell.io).

Checked: dry run without credentials finds 2.1.0 on ghcr.io and checks the images' architectures.

🤖 Generated with Claude Code

ghcr.io answers HEAD /v2/ with 405 and no WWW-Authenticate header, so
oci_token found no challenge, the tag listing went out without a token and
ghcr.io refused it: "No 2.x version of oci://ghcr.io/k8shell-io/charts/k8shell
found". The image architecture check failed the same way. GET returns the
401 with the challenge on ghcr.io and on registry.k8shell.io.

Checked: dry run without credentials finds 2.1.0 on ghcr.io and checks the
images' architectures.

Part of k8shell-io/k8shell#18

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant