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

Fixed Google ADC functionality #2282

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

kvanzuijlen
Copy link
Member

@kvanzuijlen kvanzuijlen commented Oct 24, 2023

Description

Fixes #2260. Apparantly, Workload Identity can't directly call the Directory API, instead, Workload Identity should first impersonate the Service Account itself and then call the Directory API

Motivation and Context

Currently, checking Google groups through Workload Identity on GKE, doesn't work. This fixes that issue.

How Has This Been Tested?

Ran it both locally and on a real GKE cluster. Made use of https://github.com/salrashid123/gce_metadata_server locally to simulate a GCP environment as much as possible. Both local and GKE cluster work.

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.

@kvanzuijlen kvanzuijlen requested a review from a team as a code owner October 24, 2023 13:59
providers/google.go Outdated Show resolved Hide resolved
@JoelSpeed JoelSpeed merged commit 464f3bc into oauth2-proxy:master Oct 24, 2023
7 checks passed
@kvanzuijlen kvanzuijlen deleted the fix-google-adc branch January 20, 2024 21:41
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.

[provider/google] Switch from serviceAccountJson to ApplicationDefaultCredentials gives 403
2 participants