Skip to content

[v13] Stop users from deleting their last passwordless device#35856

Merged
codingllama merged 2 commits intobranch/v13from
codingllama/backport/35794-v13
Dec 18, 2023
Merged

[v13] Stop users from deleting their last passwordless device#35856
codingllama merged 2 commits intobranch/v13from
codingllama/backport/35794-v13

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Backport #35794 to branch/v13.

Stop users from deleting their last passwordless device in a passwordless-capable cluster.

In certain situations, like clusters with "second_factor:optional", it's possible to delete all your MFA devices. A pure passwordless user could lock themselves out by doing so.

This PR makes it impossible to delete your last passwordless device (if the cluster allows passwordless logins), preventing those lockouts at the cost of being more restrictive for "normal" users.

#32690

Changelog: Stop users from deleting their last passwordless device

@codingllama
Copy link
Copy Markdown
Contributor Author

Branched from #35855, same remarks.

@codingllama codingllama added this pull request to the merge queue Dec 18, 2023
Merged via the queue into branch/v13 with commit 2a9d3da Dec 18, 2023
@codingllama codingllama deleted the codingllama/backport/35794-v13 branch December 18, 2023 19:48
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