Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Add Google Auth to workflow #56

Merged
merged 2 commits into from
Oct 18, 2022
Merged

Add Google Auth to workflow #56

merged 2 commits into from
Oct 18, 2022

Conversation

F-X64
Copy link
Member

@F-X64 F-X64 commented Oct 17, 2022

This PR removes the need to dump the Google service credentials into a local file before running the e2e tests.
Github enabled Open ID Connect last year.

In short:
We can use our credentials as secrets to authenticate with Google, return a one time token (1 hour validity) and use this token to run out API requests.
This PR uses the existing Google service account key to return this token but I will open up a follow up task to move to Workload Identity Federation instead.

Github supports OIDC for Azure, AWS and Google as well as external credential providers like HashiCorp's Valut so it might be worth to spend some time and setup a unified authentication system.

@F-X64 F-X64 requested review from major and miyunari October 17, 2022 07:04
@F-X64 F-X64 force-pushed the add-google-oidc-auth branch from aa7f338 to abf93bb Compare October 17, 2022 07:06
@F-X64 F-X64 force-pushed the add-google-oidc-auth branch from abf93bb to e69a98a Compare October 17, 2022 07:54
Copy link
Member

@major major left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job researching this and implementing it. 👏🏻

@major major merged commit b20fc3b into main Oct 18, 2022
@major major deleted the add-google-oidc-auth branch October 18, 2022 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants