We develop and provide a PKCS11 library to enable usage of our national identity card on software that plays nice with standards. So we have had very good system-wide linux support for many years now.
As this shared PKCS11 library location is no longer accessible from within a confined snap, the library itself can’t be registered, and the browser will not have access to the smartcard (e.g. to log on to government applications using the snap version of FireFox).
Furthermore, if you look at a typical addon+native messaging solution (where the native application provides local access to the card) this also breaks. This can easily be seen when trying to manage Gnome extensions using the snap version of Firefox which will not work because the native host connector is unavailable. We use this architecture as well e.g. for signing services.
I read today Chromium will be (confined?) snap only in the future, and I am slightly worried.
Has this problem been considered and if so, what are the recommendations?
Thanks for the background information. I’ve installed the no-snap firefox along side just for the purpose of logging in for work. I’ll be watching the bug tracker to see when I can go all in on the snap.
Discussion to figure out a solution is continuing at Native messaging support in strictly-confined browser snaps. Please refrain from “me too” or “+1”-like comments (but valid use cases that weren’t mentioned yet or suggestions are welcome).
You’re right. I filed upstream bug 1734371 to track the issue and work on a solution. As I don’t have specific knowledge on PKCS#11 modules, I’d appreciate if you could share details on your use case (in the bug) to help test. Thanks!
Just to add that it is not only Belgium that uses PKCS#11 modules for e-government. Whilst I am indeed Belgian, my partner is Spanish and Spain’s e-id implementation also uses them.
This really needs to be a release-critical issue for firefox snaps.
Smart card access through pcscd is long working but Firefox needs to be able to do something with it for which it needs native messaging support which does not yet support all use cases
Hard to believe this situation is ongoing for more than 5 years now. So much for “push snaps mainstream to iron out the bugs”. This train is long gone.