Skip to content

Fix hardware key support for sso web login#33433

Merged
Joerger merged 1 commit intomasterfrom
joerger/hardware-key-support-webui-fix-idp-login
Oct 16, 2023
Merged

Fix hardware key support for sso web login#33433
Joerger merged 1 commit intomasterfrom
joerger/hardware-key-support-webui-fix-idp-login

Conversation

@Joerger
Copy link
Copy Markdown
Contributor

@Joerger Joerger commented Oct 13, 2023

Fixes sso web login with hardware key support. SSO web sessions created by the Proxy Service will now be attested with the private key policy web_session.

Depends on #32781

e PR - https://github.com/gravitational/teleport.e/pull/2426

@Joerger Joerger changed the title Fix hardware key support for sso login Fix hardware key support for sso web login Oct 13, 2023
@github-actions github-actions Bot requested review from AntonAM and tigrato October 13, 2023 02:24
@Joerger Joerger force-pushed the joerger/hardware-key-support-webui branch 2 times, most recently from c216758 to 81e9395 Compare October 13, 2023 19:41
Base automatically changed from joerger/hardware-key-support-webui to master October 13, 2023 20:17
@Joerger
Copy link
Copy Markdown
Contributor Author

Joerger commented Oct 16, 2023

@AntonAM @tigrato Friendly reminder to review

@Joerger Joerger force-pushed the joerger/hardware-key-support-webui-fix-idp-login branch from b249e1b to c46b28b Compare October 16, 2023 16:07
Comment thread lib/auth/auth_with_roles.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we also delete the session? Something like a.WebSession().Delete(ctx, ...)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. I moved the check to CreateXXXAuthRequest so we can check before creating the web session rather than deleting it.

Copy link
Copy Markdown
Contributor Author

@Joerger Joerger Oct 16, 2023

Choose a reason for hiding this comment

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

Actually, I've just put the check in both places for redundancy. The session will automatically expire on its own, and this path should be practically unreachable, so I think it's ok not to delete it explicitly. Ideally we should check before creating the web session but it would require a bit of a refactor.

Comment thread lib/auth/auth_with_roles.go Outdated
@Joerger Joerger force-pushed the joerger/hardware-key-support-webui-fix-idp-login branch 2 times, most recently from 9b1da4c to bc6bb04 Compare October 16, 2023 17:21
@Joerger Joerger requested a review from AntonAM October 16, 2023 17:24
@Joerger Joerger force-pushed the joerger/hardware-key-support-webui-fix-idp-login branch from bc6bb04 to dba37c4 Compare October 16, 2023 17:39
@Joerger Joerger added this pull request to the merge queue Oct 16, 2023
Merged via the queue into master with commit 3d83d51 Oct 16, 2023
@Joerger Joerger deleted the joerger/hardware-key-support-webui-fix-idp-login branch October 16, 2023 19:48
@public-teleport-github-review-bot
Copy link
Copy Markdown

@Joerger See the table below for backport results.

Branch Result
branch/v14 Failed

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.

3 participants