Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gke-gcloud-auth-plugin: Support passing credentials via a specific JSON filepath #654

Open
Lawouach opened this issue Mar 12, 2024 · 2 comments
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@Lawouach
Copy link

Hi all,

Today, when you use google-cloud-sdk-gke-gcloud-auth-plugin you can rely on GOOGLE_APPLICATION_CREDENTIALS via the --use_application_default_credentials flag. However, the GOOGLE_APPLICATION_CREDENTIALS is explicitely forbidden to be set in a Cloud Run by the documentation https://cloud.google.com/run/docs/securing/service-identity.

This means if you try to create a Cloud Run job that needs to connect to a GKE cluster, you have to either dismiss the documentation warning or find a way to manually create the kubeconfig with all the information.

Would it be possible to add a flag such as ``--application_default_credentials_file` which, when not set, would default to the usual places, but when set would pick up the file.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Mar 12, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If the repository mantainers determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@BenTheElder
Copy link
Member

/retitle gke-gcloud-auth-plugin: Support passing credentials via a specific JSON filepath

@k8s-ci-robot k8s-ci-robot changed the title Support passing credentials via a specific JSON filepath gke-gcloud-auth-plugin: Support passing credentials via a specific JSON filepath May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants