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

Entra ID: Workload Identity support #2902

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jjlakis
Copy link
Contributor

@jjlakis jjlakis commented Jan 5, 2025

Description

This PR adds additional flag to Entra ID provider - entra_id_federated_token_auth_enabled. When enabled, oAuth2 proxy exchanges code for tokens by using federated token projected in the well known place by Entra Workload Identity plugin.

This change introduces a custom implementation of Redeem(). When federated auth is enabled, tokens are retrieved by custom query (with different parameters), and passed to generic p.OIDCProvider.createSession().

Motivation and Context

Workload Identity in Entra allows to stop using hardcoded client secret which is a huge benefit for IaaC, reference architectures and secret management.

How Has This Been Tested?

E2E testing for Entra provider has been extended to perform same 15 cases that are performed with client-secret configuration. Test are passing properly.

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.
  • I have written tests for my code changes.

@jjlakis jjlakis requested a review from a team as a code owner January 5, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant