CA certificates in NixOS tests generated declaratively #384

Open
opened 2025-06-16 14:18:24 +02:00 by kiara · 0 comments
Owner

As a developer,
I want for CA certificates in NixOS tests to be generated declaratively,
so that it becomes easier to test our software.

notes

context:

This is a hack to accept the root CA used by Pebble on the client machine. Pebble randomizes everything, so the only way to get it is to call the /roots/0 endpoint at runtime, leaving not much margin for a nice Nixy way of adding the certificate. There is no way around it as this is by design in Pebble, showing in fact that Pebble was not the appropriate tool for our use and that nixpkgs does not in fact provide an easy way to generate usable certificates in NixOS tests. I suggest we merge this, and track the task to set it up in a cleaner way. I would tackle this in a subsequent PR, and hopefully even contribute this BetterWay(tm) to nixpkgs.

**As** a developer, **I want** for CA certificates in NixOS tests to be generated declaratively, **so that** it becomes easier to test our software. ## notes [context](https://git.fediversity.eu/Fediversity/Fediversity/src/commit/d3c19b344d34f265b7b35b1450a1c04110ba843e/deployment/check/panel/nixosTest.nix#L270-L293): > This is a hack to accept the root CA used by Pebble on the client machine. Pebble randomizes everything, so the only way to get it is to call the /roots/0 endpoint at runtime, leaving not much margin for a nice Nixy way of adding the certificate. There is no way around it as this is by design in Pebble, showing in fact that Pebble was not the appropriate tool for our use and that nixpkgs does not in fact provide an easy way to generate _usable_ certificates in NixOS tests. I suggest we merge this, and track the task to set it up in a cleaner way. I would tackle this in a subsequent PR, and hopefully even contribute this BetterWay(tm) to nixpkgs.
kiara added the
type: user story
label 2025-06-16 14:18:24 +02:00
kiara added a new dependency 2025-06-16 14:18:51 +02:00
kiara added
type: task
and removed
type: user story
labels 2025-09-19 09:01:34 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#224 automated dev-ops workflows}
fediversity/fediversity
Reference: fediversity/fediversity#384
No description provided.