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

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

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 v14 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.

It looks like you have compilation issues here.

lib/auth/auth_login_test.go Outdated Show resolved Hide resolved
lib/auth/auth_login_test.go Outdated Show resolved Hide resolved
@capnspacehook
Copy link
Contributor Author

Yep missed that the second test was failing to build, should be fixed now

@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/v14 with commit ee43807 Mar 26, 2024
23 of 24 checks passed
@capnspacehook capnspacehook deleted the capnspacehook/backport/v14/39602 branch March 26, 2024 21:57
@tcsc tcsc mentioned this pull request Mar 27, 2024
This was referenced Aug 6, 2024
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.

3 participants