Coder Social home page Coder Social logo

Comments (4)

jonjohnsonjr avatar jonjohnsonjr commented on May 28, 2024 1

@Dermah I believe while moving over to go modules, we pulled in a new enough version of oauth2 for this to work now. Can you try the 2.1.0 release?

from docker-credential-gcr.

jonjohnsonjr avatar jonjohnsonjr commented on May 28, 2024

docker-credential-gcr seems to use golang.org/x/oauth2 version v0.0.0-20210817223510-7df4dd6e12ab, which is a high enough version to support identity federation to get the credentials.

Where do you see this? As far as I can tell, we're on a pretty old version of oauth2. I think we just need to update that.

from docker-credential-gcr.

Dermah avatar Dermah commented on May 28, 2024

Ah yep my mistake. I don't do much go, so I misintepreted go's output when installing the binary:

$ go get -u github.com/GoogleCloudPlatform/docker-credential-gcr
go: downloading golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
...

You're right, the oauth2 library bundled here is older and doesn't support external_account

// JSON key file types.
const (
serviceAccountKey = "service_account"
userCredentialsKey = "authorized_user"
)

but the latest oauth2 library does

from docker-credential-gcr.

Dermah avatar Dermah commented on May 28, 2024

I no longer have access to the environment where I was testing this, but it looks like the go modules would have enabled my use case. Thank you for this!

from docker-credential-gcr.

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.