-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add pkcs11 interface to keyd in azure-iot-identity snap #641
Conversation
Does it actually work? How? The |
Not sure. Because it's a privileged interface, you have to get permission from the snap store to connect it, so I don't think there's a way to test until the request to the store has been approved. As far as I can tell, it's a chicken-and-egg problem. The implementation of the pkcs11 interface is here, is there anything you can derive from that? |
Yes, that's the code that I said I couldn't figure out. Especially since it seems to be talking about a Unix socket for some reason. Maybe the idea is that the application doesn't use a PKCS#11 library directly but links to some snap-provided library that thunks through the sandbox to the real library running on the host or something. But given that it doesn't work for Firefox there must be more to it. If it's something like it requires changes in the application, like the application has to make network calls to that socket instead of using a PKCS#11 library in the standard way, then it's not going to work. |
Makes sense. I'll need to dig into this some more. |
@arsing did you notice the error in the rhel9 packages build? I didn't investigate deeply but it looks like maybe rhel9 upgraded from openssl 3.0 to 3.2 and that breaks our Makefile? |
Yeah, but |
Actually, you might as well get rid of that check entirely and uncondtionally call |
Following up on earlier concerns (above), @arsing commented on an internal thread:
|
Snapcaft approved us publishing with the pkcs11 plug (see https://forum.snapcraft.io/t/request-to-publish-snap-with-pkcs11-plug/43976), and we've confirmed it works (user is able to install our snap without the --devmode option and use PKCS #11-related features). |
Users of the azure-iot-identity snap package report that they are unable to use PKCS#11 functionality in keyd unless they install the snap with
--devmode
. This is because the snap does not have thepkcs11
interface connected. This change adds the interface.