peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
289 stars 111 forks source link

Is it possible generate oauth token without using service account? #109

Closed gr8Adakron closed 2 years ago

gr8Adakron commented 3 years ago

Hey, For working with development env goth works smooth as butter, but while deploying the app in kubernetes I already have Kubernetes Service Account binded to Google Service Account however is there a way to directly pass the Kubernetes Service Account identity to goth instead of JSON file?

As in production from security perspective using JSON file is not a good practise.

wojtekmach commented 2 years ago

I'm going to close this as it's not on the roadmap but a PR with another :source value specific for Kubernetes would be appreciated! See sources we support so far: https://hexdocs.pm/goth/1.3.0-rc.3/Goth.Token.html#fetch/1-source