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

Use Application Default Credential if gcp.credential is absent #1531

Conversation

rhase
Copy link
Contributor

@rhase rhase commented Feb 2, 2021

What this PR changes

Use Application Default Credential (ADC) if gcp.credential secret is not defined.
Applied to bq, bq_ddl, bq_load, bq_extract and gcs_wait.

Motivation

It's very convenient to use ADC when you run digdag on gce or gke because you don't have to manage service account credentials by your self (Google will manage them for you).
You can also test workflow on your machine with your google account by gcloud auth application-default login. You don't need service account and gcp.credential secret.

You Yamagata and others added 25 commits December 15, 2020 17:03
…e-snapshot

v0_11 fix CI on release of snapshot
…lease-of-v0_10-for-v0_11

[V0_11] Disable snapshot release of v0_10
But just doing that would change current task TTL timeout behavior.
So, this commit also takes care of it.
…n-group-tasks

Set `started_at` in group tasks as well
@yoyama
Copy link
Contributor

yoyama commented Feb 10, 2021

Thank you for your contribution.
It seems good. But could you create unit test for the class ?

@yoyama yoyama self-requested a review February 10, 2021 07:32
@yoyama yoyama added this to the v0.10.1 milestone Feb 10, 2021
@rhase
Copy link
Contributor Author

rhase commented Feb 16, 2021

@yoyama
Added tests.
Could you review it?

@szyn
Copy link
Member

szyn commented May 26, 2021

@rhase Thank you for adding test cases. Looks good to me 👍 BTW, could you update the target branch to master? We want to merge into master as for this PR.
Please let me know if you would like me to do it.

@rhase rhase changed the base branch from v0_11 to master May 26, 2021 22:19
@rhase
Copy link
Contributor Author

rhase commented May 26, 2021

I tried to change target branch by "Edit" button of this PR, but that seems to have caused unexpected effect...
I guess I should recreate PR to master branch.

@rhase
Copy link
Contributor Author

rhase commented May 27, 2021

recreated as #1585

@rhase rhase closed this May 27, 2021
@rhase rhase deleted the feature/use-gcp-application-default-credential branch June 25, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants