Skip to content

[v12] fix: Let users without a useable device issue register challenges#32669

Merged
codingllama merged 3 commits intobranch/v12from
bot/backport-32430-branch/v12
Sep 28, 2023
Merged

[v12] fix: Let users without a useable device issue register challenges#32669
codingllama merged 3 commits intobranch/v12from
bot/backport-32430-branch/v12

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Sep 27, 2023

Backport #32430 to branch/v12.

Cherry-pick of parts of #32271 (validateMFAAuthResponseForRegister function) and #32428, with a couple of manual changes due to branch drift.

Count devices according to the cluster settings, so users without a useable device can still register new MFA devices (via privilege tokens).

This is a long-standing corner case of privilege tokens. tsh registrations not affected.

Changelog: Fix a corner case of privilege tokens where MFA devices disabled by cluster settings were still counted against the user.

Copy link
Copy Markdown
Contributor

@Tener Tener left a comment

Choose a reason for hiding this comment

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

I believe this is the case, but I wanted to confirm: this is a backwards compatible change for v12 clients, yes?

@codingllama codingllama added this pull request to the merge queue Sep 28, 2023
Merged via the queue into branch/v12 with commit ff440f3 Sep 28, 2023
@codingllama codingllama deleted the bot/backport-32430-branch/v12 branch September 28, 2023 10:42
@codingllama
Copy link
Copy Markdown
Contributor Author

@Tener yes, it should be alright. It's mainly moving logic and adding the bugfix.

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