Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Backport: mfa: prevent the user from deleting the last MFA device #6625

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

awly
Copy link
Contributor

@awly awly commented Apr 27, 2021

Backport of #6585 into v6

  • mfa: prevent the user from deleting the last MFA device

When the cluster requires MFA for all users (when second_factor is
on, u2f or totp, and not off or optional), users could lock
themselves out by deleting the last device. Prevent that.

Fixes #5803

  • Make last MFA device deletion check more strict

Separate by the type of the device and which type the cluster enforces.

* mfa: prevent the user from deleting the last MFA device

When the cluster requires MFA for all users (when `second_factor` is
`on`, `u2f` or `totp`, and not `off` or `optional`), users could lock
themselves out by deleting the last device. Prevent that.

Fixes #5803

* Make last MFA device deletion check more strict

Separate by the type of the device and which type the cluster enforces.
@awly awly merged commit d79eb98 into branch/v6 Apr 28, 2021
@awly awly deleted the andrew/v6/delete-last-mfa-device branch April 28, 2021 17:08
@awly awly restored the andrew/v6/delete-last-mfa-device branch April 28, 2021 17:08
@awly awly deleted the andrew/v6/delete-last-mfa-device branch April 28, 2021 17:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants