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

feat: adding domain-wide delegation flow in impersonated credential #1624

Merged
merged 14 commits into from
Jan 17, 2025

Conversation

brianhmj
Copy link
Contributor

As part of moving away from service account keys, Domain Wide Delegation is used locally by impersonating a service account and then generating credentials with a signed jwt with the sub field of the principal. While it is supported through service account credentials, this is currently not supported by the impersonation in python google auth library.

Added the flow(https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys#domain-wide-delegation) that allows users to create credentials with DWD through impersonation.

Similar implementation can be found in the Go auth library:
https://github.com/googleapis/google-api-go-client/blob/v0.201.0/impersonate/impersonate.go#L98

@brianhmj brianhmj requested review from a team as code owners October 31, 2024 18:19
Copy link

conventional-commit-lint-gcf bot commented Oct 31, 2024

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@brianhmj brianhmj changed the title Adding flow in impersonated credential for domain-wide delegation. feat: adding domain-wide delegation flow in impersonated credential Oct 31, 2024
@TimurSadykov TimurSadykov self-requested a review November 19, 2024 17:29
@TimurSadykov TimurSadykov self-assigned this Nov 19, 2024
@arithmetic1728
Copy link
Contributor

@brianhmj Could you test the code end to end manually to make sure it works?

@arithmetic1728 arithmetic1728 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 16, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 16, 2025
@arithmetic1728 arithmetic1728 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 16, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 16, 2025
@arithmetic1728 arithmetic1728 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2025
@arithmetic1728 arithmetic1728 added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 17, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 17, 2025
@arithmetic1728 arithmetic1728 merged commit 34ee3fe into googleapis:main Jan 17, 2025
13 checks passed
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.

6 participants