mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
Enable Duo Globally #4498
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @misilot on GitHub (Nov 2, 2020).
Is there a way to enable Duo globally for all users? Duo is smart enough to bypass its checks if the user does not exist. All users we have utilizing the system have duo accounts.
Thank you!
@davidjameshowell commented on GitHub (Nov 28, 2020):
I know this is not exactly a fix, but my workaround for my Heroku instance is to manually update the config file with sed and do a replace on the enable bool:
This just sets that config flag to true since my main account user has Duo enabled.
@BlackDex commented on GitHub (Jan 31, 2021):
@davidjameshowell & @misilot
Not sure if this is still relevant, but changing that value in the source sounds a bit stupid to me since you can change it at either runtime or during the docker config as an environment variable
_ENABLE_DUO=true.@misilot commented on GitHub (Jan 31, 2021):
Hi @BlackDex, I think it is still relevant. As I have
_ENABLE_DUO=trueand pass in the "Site wide Duo config", but from everything I have seen is users still need to select Duo as their MFA provider. I would like to have Duo be a primary (always on) MFA provider and utilize the upstream config. Since the way Duo works, if the username matches in Duo they are prompted for MFA, otherwise it continues on.I hope that clarifies what I am looking for with this.
Thanks!
@BlackDex commented on GitHub (Jun 21, 2021):
Well, i'm not sure if this is even possible since users seem to be able to change this config them selfs.
And, globally it can only work for users how are connected to an org. (Which is something vaultwarden doesn't support yet).
Also see: https://bitwarden.com/help/article/setup-two-step-login-duo/
So i think this is not possible, and that we can close this one since we already have a feature requests listed here #246 regarding 2FA for orgs.
@bbrendon commented on GitHub (Jun 21, 2021):
It's possible to enable it globally. I'm not sure if it's possible to require it globally though.
@misilot commented on GitHub (Jun 21, 2021):
It can be, but users can change the settings (well they have to enable first as well for themselves).
Duo can be setup to bypass users who don't have an account, so it would be great if the duo settings could be enforced system wide, and let Duo handle showing or not.
@BlackDex commented on GitHub (Jun 21, 2021):
Well, i can put it on the meta features list #246 so that if someone Wants to help they can see this request over there.
Though i think this would be more a feature for orgs, and that is still a feature missing. Instead of forcing this for all users, also not part of an org as you are suggesting.
@BlackDex commented on GitHub (Jun 22, 2021):
To clarify, i understand that DUO supports an always on and skip if no account exists, but that is not how it's implemented within Bitwarden, and thus also not Vaultwarden.
Bitwarden has a way to enforce MFA for all users within an organization via DUO, this feature isn't in Vaultwarden as of yet (Though there is an PR #1604 which is pending a review/changes).
Having this forced for all users not even within that org is currently not how Bitwarden works, so i'm not sure if we want to do this and if that could break stuff.