Giter Site home page Giter Site logo

How to get auth for gsutil about auth HOT 7 CLOSED

eriksw avatar eriksw commented on August 17, 2024 2
How to get auth for gsutil

from auth.

Comments (7)

utamori avatar utamori commented on August 17, 2024 2

gsutil doesn't seem to be able to do it because there is no --cred-file option
I think the gcloud storage command can be used instead

https://cloud.google.com/sdk/gcloud/reference/alpha/storage

from auth.

yu-iskw avatar yu-iskw commented on August 17, 2024 2

@sethvargo Where is the best to track for the improvement. I would like to keep using gsutil and bq with GitHub Actions OIDS. I am a little hesitate to use gcloud alpha {storage,bq} yet, because they are still alpha.

from auth.

sethvargo avatar sethvargo commented on August 17, 2024

Hi @eriksw

It's not currently possible to use this authentication mechanism with the gsutil and bq CLI tools. As @utamori mentioned, you can use the gcloud alpha storage CLI. Please let me know if you have any other questions.

from auth.

eriksw avatar eriksw commented on August 17, 2024

@sethvargo Can you provide specifics on what this is specifically blocked on, for purposes of what to give to a VAR/TAM to have them escalate?

(Is this a "those tools need to change to use standard creds" thing or a "those tools are never going to change and this action is going to have to do something weird to accomodate them" thing?)

from auth.

sethvargo avatar sethvargo commented on August 17, 2024

Hi @eriksw - the --cred-file option is only available in gcloud right now, so there's nothing this action can do to inject the WIF authentication into gsutil. The update needs to happen in those tools.

from auth.

eriksw avatar eriksw commented on August 17, 2024

@sethvargo Is there a reason to use the gcloud auth login --brief --cred-file=... workflow instead of create_credentials_file: true (+ activate_credentials_file: true)?

My expectation as a naive user would be that create_credentials_file: true would set up everything needed for all parts of the google cloud sdk to "just work" in future steps. (Except perhaps for specifying the project.)

from auth.

sethvargo avatar sethvargo commented on August 17, 2024

My expectation as a naive user would be that create_credentials_file: true would set up everything needed for all parts of the google cloud sdk to "just work" in future steps.

That's certainly the goal, but there's a lot of moving parts, each of which need to be updated, tested, and released while still preserving backwards-compatibility with any existing workflows. The GitHub Action itself is still rapidly evolving as GitHub solidifies the final design of this feature too.

from auth.

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.