I have a Nitrokey FIDO2, which unfortunately does not work at all with the Chromium snap by default. (It works fine with the Firefox deb on Ubuntu or the Chromium deb on Debian.)
This problem can be fixed by adding the following lines to /etc/udev/rules.d/70-snap.chromium.rules
:
# u2f-devices
# Nitrokey FIDO2
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42b1", TAG+="snap_chromium_chromium"
TAG=="snap_chromium_chromium", RUN+="/usr/lib/snapd/snap-device-helper $env{ACTION} snap_chromium_chromium $devpath $major:$minor"
and then running sudo udevadm control --reload-rules && sudo udevadm trigger
After that, it works perfectly well.
The Yubico YubiKey is already present with a very similar line, so this is merely a case of a missing rule, meaning that it can be fixed very easily.
I have opened a bug on Launchpad as well.
I was wondering where the 70-snap.chromium.rules
file comes from. dpkg -S /etc/udev/rules.d/70-snap.chromium.rules
doesn’t find anything, so does that mean that it’s part of the Chromium snap? Or snapd? I would like this fix to be upstreamed somehow, but I don’t know where to start.