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

[v13] always require MFA when joining a session if at least one role requires session MFA #39816

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

capnspacehook
Copy link
Contributor

Backport of #39602.

Note that the unit test had to be reworked a bit to call IsMFARequired instead of CreateAuthenticateChallenge, because in v13 CreateAuthenticateChallengeRequest doesn't have a MFARequiredCheck field.

changelog: fix MFA checks not being prompted when joining a session

…es session MFA

* extend role 'join_sessions' so MFA can be required at the role level when joining sessions

* add test cases

* update operator CRDs

* remove change to 'join_sessions', instead require MFA if any roles require it

* add comment

* address feedback

* add additional test cases

* add authhandler test

* fix role from test case not getting used in test
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Same as v14.

lib/auth/auth_login_test.go Outdated Show resolved Hide resolved
lib/auth/auth_login_test.go Outdated Show resolved Hide resolved
@capnspacehook capnspacehook enabled auto-merge March 26, 2024 17:43
@capnspacehook capnspacehook added this pull request to the merge queue Mar 26, 2024
Merged via the queue into branch/v13 with commit 067d6a0 Mar 26, 2024
21 of 22 checks passed
@capnspacehook capnspacehook deleted the capnspacehook/backport/v13/39602 branch March 26, 2024 21:56
tcsc added a commit that referenced this pull request Mar 27, 2024
* Fixed possible phishing links which could result in code execution with install and join scripts. [#39839](#39839)
* Fixed MFA checks not being prompted when joining a session. [#39816](#39816)
* Fixed broken SSO login landing page on certain versions of Google Chrome. [#39721](#39721)
* Updated Electron to v29 in Teleport Connect. [#39659](#39659)
* Fixed a bug in the discovery script failing when `jq` was not installed. [#39601](#39601)
@tcsc tcsc mentioned this pull request Mar 27, 2024
github-merge-queue bot pushed a commit that referenced this pull request Mar 28, 2024
* Fixed possible phishing links which could result in code execution with install and join scripts. [#39839](#39839)
* Fixed MFA checks not being prompted when joining a session. [#39816](#39816)
* Fixed broken SSO login landing page on certain versions of Google Chrome. [#39721](#39721)
* Updated Electron to v29 in Teleport Connect. [#39659](#39659)
* Fixed a bug in the discovery script failing when `jq` was not installed. [#39601](#39601)
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.

4 participants