You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Benoit Tigeot
5595c0d005
Prevent failing helm push on ghcr.io using standard GET auth token flow
Fix GHCR auth by not forcing OAuth2 POST but also reset
ForceAttemptOAuth2 after login.
- Remove ForceAttemptOAuth2 in NewClient and only enable during Login
ping and always restore to false.
- Aligns with OCI Distribution auth (token via GET), avoiding GHCR 405
on POST /token.
- Some tests
Failures logs:
```sh
~/p/lifen/test/helm-f/quicktest ❯ ../../../helm/bin/helm push quicktest-0.1.0.tgz oci://ghcr.io/benoittgt/helm-charts --debug
level=DEBUG msg=HEAD id=0 url=https://ghcr.io/v2/benoittgt/helm-charts/quicktest/manifests/sha256:af359fd8fb968ec1097afbd6e8e1dac9ee130861082e54dc2340d0c019407873 header=" \"Accept\": \"application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, application/vnd.oci.artifact.manifest.v1+json\"\n \"User-Agent\": \"Helm/4.0+unreleased\""
level=DEBUG msg=Resp id=0 status="401 Unauthorized" header=" \"Www-Authenticate\": \"Bearer realm=\\\"https://ghcr.io/token\\\",service=\\\"ghcr.io\\\",scope=\\\"repository:benoittgt/helm-charts/quicktest:pull\\\"\"\n \"Date\": \"Mon, 01 Sep 2025 13:56:35 GMT\"\n \"Content-Length\": \"73\"\n \"X-Github-Request-Id\": \"DC73:115F:2B40F2C:2BAB567:68B5A613\"\n \"Content-Type\": \"application/json\"" body=" Response body is empty"
level=DEBUG msg=POST id=1 url=https://ghcr.io/token header=" \"Content-Type\": \"application/x-www-form-urlencoded\"\n \"User-Agent\": \"Helm/4.0+unreleased\""
level=DEBUG msg=Resp id=1 status="405 Method Not Allowed" header=" \"Docker-Distribution-Api-Version\": \"registry/2.0\"\n \"Strict-Transport-Security\": \"max-age=63072000; includeSubDomains; preload\"\n \"Date\": \"Mon, 01 Sep 2025 13:56:35 GMT\"\n \"Content-Length\": \"78\"\n \"X-Github-Request-Id\": \"DC73:115F:2B40F75:2BAB5C2:68B5A613\"\n \"Content-Type\": \"application/json\"" body="{\"errors\":[{\"code\":\"UNSUPPORTED\",\"message\":\"The operation is unsupported.\"}]}\n"
Error: failed to perform "Exists" on destination: HEAD "https://ghcr.io/v2/benoittgt/helm-charts/quicktest/manifests/sha256:af359fd8fb968ec1097afbd6e8e1dac9ee130861082e54dc2340d0c019407873": POST "https://ghcr.io/token": response status code 405: unsupported: The operation is unsupported.
```
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
|
4 months ago |
| .. |
|
action
|
Merge pull request #30812 from gjenkins8/gjenkins/chartrelease_server_side_apply
|
5 months ago |
|
chart/v2
|
Merge pull request #31138 from islewis/release-3.18
|
5 months ago |
|
cli
|
Updating to tested content cache
|
5 months ago |
|
cmd
|
Merge pull request #30812 from gjenkins8/gjenkins/chartrelease_server_side_apply
|
5 months ago |
|
downloader
|
Updating to tested content cache
|
5 months ago |
|
engine
|
Merge pull request #13586 from jessesimpson36/cleaner-stacktraces
|
7 months ago |
|
gates
|
chore: enable usetesting linter
|
8 months ago |
|
getter
|
Plugin OCI installer
|
5 months ago |
|
helmpath
|
fix: lint test SetEnv errors
|
7 months ago |
|
ignore
|
refactor: replace HasPrefix+TrimPrefix with CutPrefix
|
8 months ago |
|
kube
|
fix client-side to server-side field manager migration
|
5 months ago |
|
lint
|
fix Chart.yaml handling
|
6 months ago |
|
postrender
|
chore: enable usetesting linter
|
8 months ago |
|
provenance
|
chore: enable usetesting linter
|
8 months ago |
|
pusher
|
test: increase test coverage for pkg/pusher
|
6 months ago |
|
registry
|
Prevent failing helm push on ghcr.io using standard GET auth token flow
|
4 months ago |
|
release
|
Helm client/SDK support server-side apply
|
5 months ago |
|
repo
|
Merge pull request #31132 from joemicky/main
|
5 months ago |
|
storage
|
chore: enable thelper
|
8 months ago |
|
strvals
|
fix: replace "github.com/pkg/errors" with stdlib "errors" package
|
1 year ago |
|
time
|
chore: enable thelper
|
8 months ago |
|
uploader
|
Merge branch 'main' into stdlib-errors-2
|
9 months ago |