Skip to content

Fix client IP propagation from the Proxy to the Auth during IdP initiated SSO#35397

Merged
AntonAM merged 1 commit intomasterfrom
anton/fix-idp-initiated-sso-ip-propagation
Dec 8, 2023
Merged

Fix client IP propagation from the Proxy to the Auth during IdP initiated SSO#35397
AntonAM merged 1 commit intomasterfrom
anton/fix-idp-initiated-sso-ip-propagation

Conversation

@AntonAM
Copy link
Copy Markdown
Contributor

@AntonAM AntonAM commented Dec 5, 2023

We had a problem with correct client IP propagation during IdP initiated SSO flow. When Proxy received API call it then called Auth server's ValidateSAMLResponse() using it's own auth client, so IP that was linked to that request ended up being Proxy's instead of client's. This PR modifies ValidateSAMLResponse() call so Proxy can send real client IP to the Auth server, which will be used for IdP initiated SSO case.

This PR has a sibling in enterprise repo ( https://github.com/gravitational/teleport.e/pull/2841 ), they should be reviewed together.

Changelog: Fix client IP propagation from the Proxy to the Auth during IdP initiated SSO

Fixes #35318

@AntonAM AntonAM force-pushed the anton/fix-idp-initiated-sso-ip-propagation branch from 1cf912d to 3c9dba3 Compare December 5, 2023 22:20
@AntonAM AntonAM marked this pull request as ready for review December 5, 2023 22:21
@github-actions github-actions Bot requested review from avatus and lxea December 5, 2023 22:22
@AntonAM AntonAM added this pull request to the merge queue Dec 8, 2023
Merged via the queue into master with commit 1b8df31 Dec 8, 2023
@AntonAM AntonAM deleted the anton/fix-idp-initiated-sso-ip-propagation branch December 8, 2023 03:37
@public-teleport-github-review-bot
Copy link
Copy Markdown

@AntonAM See the table below for backport results.

Branch Result
branch/v14 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teleport Auth connector for Okta SSO configured as IDP initiated and IP-pinning is not working.

3 participants