Nextcloud and Two-Factor Authentication #439
Labels
No labels
🔥
🦾 1
🦾 2
🦾 3
🦾 4
🦾 5
🦾 6
administration
Akkoma
Android
Bare metal
bug
Communication
Community
Cryptpad
Discussion
Documentation
duplicate
enhancement
etherpad
Feature request
Feedback
finances
Fixed
forgejo
fun_project
Goal 2024
Goal 2025
help wanted
high impact
housekeeping
Howto
infra
In progress
🤔️ Investigate
Invoice Ninja
ios
jitsi
lacre
Lacre Test
ldap
Lemmy
LibreTranslate
low impact
low prio
Lufi
macos
Mail
Merch
monitoring
movim
needs_refine
New Auth
Nextcloud
nice to have
on hold
proposal
PR ready
question
Ready
refined
Roundcube
searX
SPAM Issues
spam-protection
Staging Server
sysadmin
Themes
TOR
upstream issue
Website
windows
wontfix
xmpp
Yearly Report
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Disroot/Disroot-Project#439
Loading…
Reference in a new issue
No description provided.
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?
On my Disroot account on Nextcloud I had enabled (quite some time ago) a second authentication factor with Yubikey.
I had then generated an "app-password" to use with the nextcloud client.
Everything is still working properly, but when I try to log in to Nextcloud through the nextcloud web interface it will not allow me to use my Yubikey (see [1]). I then log in with the backup codes.
I then tried to disable the Two-Factor Authentication but as can be seen here [2] it does not appear to be active and therefore it is not possible to disable it.
I am therefore in the situation of no longer being able to access the nextcloud web interface using my Yubikey and at the same time not being able to disable Two-Factor Authentication.
Thanks for reporting. we were looking the other day for someone with Yubikey to test whether there is an issue or not. I will ping you later today to check things for me.
Perfect, thanks muppeth! If I can then test and help me and my Yubikey are available;)
Affects me too,and I didn't generate backup codes because I have a backup Yubikey... (Stupid, but that's what I did.)
This is probably because of the deprecated Two-Factor U2F app, which I think is replaced by Two-Factor WebAuthn (the new app also supports U2F).
There is a migration flow at the end of this issue and discussion on Github. No idea how well it works, though. Would be nice to have 2F WebAuthn even if migration isn't feasible. (In that case the old U2F data probably needs to be removed from accounts.)
I'll also be happy to test things.
Also noticed that the readme for the old app has migration instructions.
@muppeth I see that
twofactor_u2f
is disabled on prod.@epidi @l3o can you test it now?
Hi @muppeth I just checked but unfortunately the situation is the same as before. It asks for backup codes to log in and once logged in, it shows in nextcloud settings that no Two-Factor Authentication is enabled
Hi @muppeth, no change for me either. Login says
Clicking the button just loops back to the same message.
I see. So basically the old way is deprecated and replaced by new one. I will check for possible migration path if one exist or otherwise disable 2fa from your accounts and test if new way from scratch works. Will keep you posted.
Yup, that's my impression too. Thanks for looking into this!
There is some information on migrating in #439 (comment) - no idea how good is is.
Removing 2fa from my account would be fin, if migration proves infeasible. If possible, I would still like to have the new Two-factor WebAuthn instead of the deprecated Two-Factor U2F so I can re-enable my security keys.
Hi! Thanks for looking into this. It is ok for me too to disable the old authentication system. Then I will eventually configure the new Two-factor WebAuthn;)
Checked another Nextcloud instance, which seems to have migrated U2F to WebAuthn. I could register my keys just fine, however, the keys didn't end up as second factor. Instead I got passwordless login (user name + security key). A bit unexpected and I'm not sure that's the route I'd like to go.
OTOH, not being a Nextcloud admin, I may have misunderstood how things work. According to the comments on this issue for the new Two-Factor WebAuthn app, it may be a setting of Nextcloud proper and completely unrelated to the Two-factor app:
https://github.com/nextcloud/twofactor_webauthn/issues/43
@muppeth is that what you did?
@meaz I did not do migration yet. So will do them today. I was (as u know) properly busy the last days but I'm back. I just got ubikey from @epidi (thanks a lot mate) so will have something to test as well, though won't be able to test migration.
@muppeth you're welcome, hope it will help verifying that the new 2nd-factor app works, although it won't help with migration of the old U2F registration data. I think the former is more important, but migration would be nice too, of course.
Concerning my previous comment
I have had a second look, my keys are definitely listed under Passwordless Authentication, not Two-Factor Authentication, so clearly unrelated to the new Two-Factor WebAuthn app. Should have checked that before spreading FUD.
@l3o can you check if it works now?
Sorry for picking on this one so late, but I have finally migrated old u2f authentiactions.
@epidi I finally tested with your ubikey and seems to be working fine.
@muppeth I tried it and I confirm that it works now! Thank you very much for the work!:)
@muppeth My previously registered U2F keys where lost, so migration failed one way or other, but that let me log in and add new keys.
All good, thanks a bunch for your work!
Works as a second factor here at git.disroot.org too 🙂
Ok good news! so I'm closing this.