Skip to content

Optionally use rustls-upki for the other verifier - #235

Draft
ctz wants to merge 1 commit into
mainfrom
jbp-upki
Draft

ctz wants to merge 1 commit into
mainfrom
jbp-upki

Conversation

@ctz

@ctz ctz commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

This is now tested in CI, using a 26.10 container and the upki package present there.

@ctz
ctz marked this pull request as draft June 16, 2026 14:15
@complexspaces

Copy link
Copy Markdown
Collaborator

Just from that lockfile diff its quite a lot of new code yeah 😅

Out of curiosity, if the upki daemon is installed on a system does that also mean the C dylib will be present somewhere on disk too? I wonder if it would be worth considering reusing that code if its already on an end-user's system.

@djc

djc commented Jun 16, 2026

Copy link
Copy Markdown
Member

FYI, this should help:

Out of curiosity, if the upki daemon is installed on a system does that also mean the C dylib will be present somewhere on disk too? I wonder if it would be worth considering reusing that code if its already on an end-user's system.

There is no daemon, there would typically be a binary and a systemd unit. (We can also come up with API that can do this in a separate thread or Tokio task -- I think you asked about this a while ago?)

@complexspaces

Copy link
Copy Markdown
Collaborator

There is no daemon, there would typically be a binary and a systemd unit.

Right, bad wording on my side. I was just trying to refer to some binary contents an installer would have put on the system already. IE if there's already a binary would there also be a library with it too for other consumers like OpenSSL?

@djc

djc commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

There is no daemon, there would typically be a binary and a systemd unit.

Right, bad wording on my side. I was just trying to refer to some binary contents an installer would have put on the system already. IE if there's already a binary would there also be a library with it too for other consumers like OpenSSL?

Basically yes, see https://launchpad.net/~ubuntu-foundations-team/+archive/ubuntu/upki-preview/+packages. But I think it would still be preferable to use Rust interfaces here?

@complexspaces

Copy link
Copy Markdown
Collaborator

I have mixed feelings on it so far 😄. On every other platform that provides certificate verification facilities, we use the shared libraries provided by the "platform" instead of re-implementing or shipping logic that just uses raw data the OS holds somewhere for itself. If you squint enough on Linux, the upki infrastructure installed by the distro would count as those verification facilities.

@djc

djc commented Jun 16, 2026

Copy link
Copy Markdown
Member

I have mixed feelings on it so far 😄. On every other platform that provides certificate verification facilities, we use the shared libraries provided by the "platform" instead of re-implementing or shipping logic that just uses raw data the OS holds somewhere for itself. If you squint enough on Linux, the upki infrastructure installed by the distro would count as those verification facilities.

What are you concretely worried about?

@cpu

cpu commented Oct 28, 2026

Copy link
Copy Markdown
Member

What are you concretely worried about?

@complexspaces I think this PR is blocked on your feedback. Given the recent attention towards upki it would be nice to see this move forward.

@ctz
ctz force-pushed the jbp-upki branch 2 times, most recently from d1d5e32 to 828ae87 Compare November 11, 2026 18:27
@ctz

ctz commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

I have mixed feelings on it so far 😄. On every other platform that provides certificate verification facilities, we use the shared libraries provided by the "platform" instead of re-implementing or shipping logic that just uses raw data the OS holds somewhere for itself. If you squint enough on Linux, the upki infrastructure installed by the distro would count as those verification facilities.

Hopefully the testing job for this added to CI in this commit demonstrates how this is intended to be deployed, against distro-supported facilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants