Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Auto-enable 2FA policy when adding OTP to a user #353

Closed
DunklerPhoenix opened this issue Sep 20, 2022 · 5 comments
Closed

Auto-enable 2FA policy when adding OTP to a user #353

DunklerPhoenix opened this issue Sep 20, 2022 · 5 comments

Comments

@DunklerPhoenix
Copy link

DunklerPhoenix commented Sep 20, 2022

Heho.
If I add an OTC the SSH login ask only for the OTC and not the password. Is this behavior intentional?

WG: 0.6.3 Docker

@Eugeny Eugeny changed the title OneTimeCode with ssh Auto-enable 2FA policy when adding OTP to a user Sep 20, 2022
@Eugeny
Copy link
Member

Eugeny commented Sep 20, 2022

Yes, this is expected. By default any single credential suffices, and you need to explicitly select the required credentials in the "Auth policy" section like this:
image

But automatically enabling this when adding a password + OTP makes sense so I'll keep this ticket open as an enhancement

@DunklerPhoenix
Copy link
Author

I tried this auth policy, but it still asks only for 2fa without password. Does warpgate take some time to enable saved settings?

@Eugeny
Copy link
Member

Eugeny commented Sep 21, 2022

No, they're applied immediately. Could you please post the full output of an ssh login with ssh -v (verbose output)?

@DunklerPhoenix
Copy link
Author

DunklerPhoenix commented Sep 21, 2022

chrome_OwpIsvxuUU
cmd_QUg6m7Jvk2

One-time password: 867637
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to .
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
 Warpgate  Selected target: alphabit02
 Warpgate  Host key (ssh-ed25519): 

 ✓ Warpgate connected
Linux Debian-105-buster-64-minimal 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64

@DunklerPhoenix
Copy link
Author

Ahhh! The settings are sometimes not saved. There is no confirmation after pressing "update". I need to force reload the page (with clearing cache) to see the actual active settings. So even if my screenshot from above shows OTP+Password, it was still set to any. xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants