Giter Site home page Giter Site logo

Comments (3)

gjenkins8 avatar gjenkins8 commented on June 3, 2024

Latest working helm version is v3.13.1
all newer version till v3.14.2 won't work.

We attempt to support basic auth #12237, but due to the lack of standardization of OCI authentication, doing so broke (1, 2) many other registries.

The reason Helm 3.13.1 works, is it did contain this functionality, but it was reverted v3.13.2 onwards.

A concrete proposal/specification on how to support different authentication types for different registries would be needed to more forward at this point IMHO.

from helm.

eumel8 avatar eumel8 commented on June 3, 2024

@gjenkins8 That's what I'm wondering. I compared the two releases and it seems the feature are reverted.

Nevertheless newer versions didn't work for me. I compiled commit by commit with these results:

3547a4b: OK (v3.13.1)
99ce118: OK
268dced: OK
e785e6c: NOT OK
3b4cacf: NOT OK
10018ff: NOT OK
7e0084a: NOT OK
666b199: NOT OK
12826e8: NOT OK
00a334c: NOT OK
8f554be: NOT OK
2a2fb3b: NOT OK (v3.13.2)

Let's concentrate on e785e6c

The docker client auth in pkg/registry/client.go:96 was completely removed. For me as an enduser it looks like that I need at least Authorization header with bearer token/password to keep the upload working:

               dockerClient, ok := client.authorizer.(*dockerauth.Client)
               if ok {
                       _, password, err := dockerClient.Credential(ref.Registry)
                       if err != nil {
                               return nil, fmt.Errorf("unable to retrieve credentials: %w", err)
                       }
                       headers.Set("Authorization", fmt.Sprintf("Bearer %s", password))
               }
$ helm version                                                           
version.BuildInfo{Version:"v3.13+unreleased", GitCommit:"e785e6c50c622ed5019fd4020a13509c87a3022d", GitTreeState:"dirty", GoVersion:"go1.22.1"}

$ helm push crossplane-1.15.0.tgz oci://mtr.devops.telekom.de/caas/charts
Pushed: mtr.devops.telekom.de/caas/charts/crossplane:1.15.0
Digest: sha256:4a1036c19999cbae98d7a357109c757cf866a1f541520ee260cbeef9f13f4e75

I think the newer Go version can be ignored.

from helm.

eumel8 avatar eumel8 commented on June 3, 2024

this is now fixed in

  • v3.15.0
  • v3.15.1

latest not working version is v3.14.4

many thanks!

from helm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.