Skip to content

Using ORAS from snap can't authenticate with gcloud credential helper #1079

Closed
@jteichroeb-oanda

Description

@jteichroeb-oanda

What happened in your environment?

I'm using oras like this:
oras push us-central1-docker.pkg.dev/... file.tar.gz

I have docker configured to use gcloud auth using this command:
gcloud auth configure-docker us-central1-docker.pkg.dev

which sets up the ~/.docker/config.json like so:

{
  "credHelpers": {
    "us-central1-docker.pkg.dev": "gcloud"
  }
}

If I use oras from snap, authentication fails, but if I use the downloaded oras binary it works fine

What did you expect to happen?

Authentication doesn't depend on

How can we reproduce it?

Since this requires authenticating with google cloud platform, replicating my setup isn't the easiest. I can help someone setup a similar environment if necessary

What is the version of your ORAS CLI?

1.0.0, which is the latest version in snap

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCPGoogle Cloud Platform related issuesbugSomething isn't workinglogging

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions