Skip to content

fix: Let users without a useable device issue register challenges#32428

Merged
codingllama merged 2 commits intomasterfrom
codingllama/register-bug
Sep 26, 2023
Merged

fix: Let users without a useable device issue register challenges#32428
codingllama merged 2 commits intomasterfrom
codingllama/register-bug

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Sep 22, 2023

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

Fixes bug brought to light by #32271 (and subsequent PRs). This is a long-standing corner case of privilege tokens. tsh registrations in current release branches not affected (including v14).

#20343

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

@codingllama
Copy link
Copy Markdown
Contributor Author

This is worth backporting in some form, so I've added the labels to remind me. I think if I change the RPC calls to CreatePrivilegeToken I might be able to keep the test.

@codingllama
Copy link
Copy Markdown
Contributor Author

Draft "backport" here: #32430.

I'll hold it until this one gets through review, so I can make sure the code matches as much as possible.

@codingllama
Copy link
Copy Markdown
Contributor Author

Friendly ping @Tener @kimlisa ?

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from Tener September 26, 2023 02:42
@codingllama codingllama added this pull request to the merge queue Sep 26, 2023
Merged via the queue into master with commit 93cd489 Sep 26, 2023
@codingllama codingllama deleted the codingllama/register-bug branch September 26, 2023 13:02
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.

4 participants