Ubuntu Firefox installed from snap cannot use U2F
Categories
(Release Engineering Graveyard :: Release Automation: Snap, defect, P5)
Tracking
(firefox67 fixed, firefox68 fixed)
People
(Reporter: u620482, Assigned: olivier)
Details
Attachments
(1 file)
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 4•7 years ago
|
||
A u2f-devices interface has been added to snapd [1]. The Chromium snap build now works with U2F devices after connecting the interface to the Chromium plug.
[1] https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1738164
Assignee | ||
Comment 6•6 years ago
|
||
This allows the confined snap to interact with Universal 2nd Factor devices, such as Yubikeys.
Assignee | ||
Comment 7•6 years ago
|
||
I rebuilt the snap package with the u2f-devices plug and verified that this allows accessing my Yubikey in firefox.
Updated•6 years ago
|
Comment 9•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
Landed on beta at https://hg.mozilla.org/releases/mozilla-beta/rev/515db7d568340e65ab0eb5925eed4ae434b98923
Updated•6 years ago
|
Comment 11•6 years ago
|
||
I'm still having this issue when using Firefox installed using snap. I do not have this issue if I install using apt. The u2f part is specifically not working as I am able use it as a input device to fill forms that have a field for a one time password.
I'm on Ubuntu 18.04 running the following version of the Firefox snap:
$ sudo snap list firefox
Name Version Rev Tracking Publisher Notes
firefox 69.0.1-1 266 stable mozilla✓ -
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Steps to reproduce:
- go to https://demo.yubico.com/webauthn-technical/registration
- hit next to start prompt for u2f key
- insert yubikey and press button after it lights up
Expected result:
u2f authentication successful
Actual result:
nothing happens. u2f protocol does not initiate.
Assignee | ||
Comment 12•6 years ago
|
||
@rccausey: you'll need to manually connect the u2f-devices
interfaces for this to work:
snap connect firefox:u2f-devices
Can you confirm that your U2F device is recognized and usable in the firefox snap after doing this and restarting the app?
Comment 13•6 years ago
|
||
(In reply to Olivier Tilloy from comment #12)
@rccausey: you'll need to manually connect the
u2f-devices
interfaces for this to work:snap connect firefox:u2f-devices
Can you confirm that your U2F device is recognized and usable in the firefox snap after doing this and restarting the app?
Yes, once I do that it works. Is there not something in the snap build file that can specify this connection is required automatically?
Assignee | ||
Comment 14•6 years ago
|
||
According to the documentation, no, this interface can't be auto-connected.
Comment 15•4 years ago
|
||
That seems to no longer be the case. It is possible to request permission from the Snapcraft reviewers to autoconnect an interface that normally does not. Details of the procedure: https://forum.snapcraft.io/t/process-for-aliases-auto-connections-and-tracks/455
Comment 16•4 years ago
|
||
This happened again in 21.10
Should I open a new bug?
Assignee | ||
Comment 17•4 years ago
|
||
Can you elaborate on what happened again? Is the u2f-devices
interface connected? Please share the output of snap connections firefox | grep u2f
.
Please also share hardware details about your U2F token (relevant line of lsusb
).
Comment 18•4 years ago
|
||
I'm seeing the same. U2F does not work for me with firefox in ubuntu 21.10. It does work in ubuntu 20.04 on the same machine. I tried adding the snap connection with no effect.
I'm trying to use a tomu (tomu.im).
max@ubuntu21.10:~$ snap connections firefox | grep u2f
u2f-devices firefox:u2f-devices :u2f-devices -
max@ubuntu21.10:~$ lsusb
...
Bus 001 Device 007: ID 16d0:0e90 MCS U2F-token (EFM32)
...
I tested the device using https://github.com/mdp/u2fcli on ubuntu 21.10 and it works fine.
Udev permissions are also set:
max@ubuntu21.10:~$ cat /etc/udev/rules.d/10-tomu.rules
ACTION=="add|change", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0e90", TAG+="uaccess"
ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0e90", TAG+="uaccess"
Comment 19•4 years ago
|
||
Uninstalling the firefox snap and installing the debian package makes tomo work. So it seems to be an issue with the snap.
Comment 20•4 years ago
|
||
(In reply to Olivier Tilloy from comment #17)
Can you elaborate on what happened again? Is the
u2f-devices
interface connected? Please share the output ofsnap connections firefox | grep u2f
.Please also share hardware details about your U2F token (relevant line of
lsusb
).
Sorry that was three month ago. I already open the issue on Launchpad and it's working now.
Comment 21•4 years ago
|
||
I had to add TAG+="snap_firefox_firefox"
to the hidraw rule as also suggested on that launchpad issue.
Updated•1 year ago
|
Description
•