radicle-heartwood-lfs/crates
Lorenz Leutgeb ae39f24b58 node: Support systemd credential for secret
While it is possible to use systemd credentials via

    LoadCredential=xyz.radicle.node.secret:…
    ExecStart=radicle-node … --secret "${CREDENTIALS_DIRECTORY}/xyz.radicle.node.secret"

Make usage more convenient and directly support passing the secret key
via a systemd credential. The ID of the credential must be

    xyz.radicle.node.secret

and is not user-configurable.

A systemd service unit file might contain:

    LoadCredential=xyz.radicle.node.secret:…
    ExecStart=radicle-node …

This requires just a bit of plumbing in `radicle-node`.

The preference order for the path of the secret key is:
 1. The command line argument `--secret`.
 2. The systemd credential.
 3. The configuration file.
 4. The default location to preserve backward compatibility.

The reason to prefer the systemd credential over the configuration file
is that it uses a mechanism that is influenced by the environment of the
process, which is deemed "closer at runtime" or "more dynamic" than a
configuration file. Ad-hoc overrides are still possible via the
commandline argument.
2025-10-09 10:03:21 +01:00
..
radicle node: Report sync status for given namespaces 2025-10-09 07:55:11 +02:00
radicle-cli cli/publish: Use clap 2025-10-09 10:52:21 +02:00
radicle-cli-test radicle-cli-test: Prepare testing with `jj` 2025-09-26 12:03:01 +01:00
radicle-cob crates: bump for release 2025-10-06 16:36:30 +01:00
radicle-crypto crypto: mark errors as `non_exhaustive` 2025-10-06 18:57:30 +02:00
radicle-dag repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-fetch crates: bump for release 2025-10-06 16:36:30 +01:00
radicle-node node: Support systemd credential for secret 2025-10-09 10:03:21 +01:00
radicle-protocol node: Report sync status for given namespaces 2025-10-09 07:55:11 +02:00
radicle-remote-helper crates: bump for release 2025-10-06 16:36:30 +01:00
radicle-schemars crates: bump for release 2025-10-06 16:36:30 +01:00
radicle-signals signals: Guard most of the crate for Unix 2025-08-22 15:19:31 +01:00
radicle-ssh release: prepare crates 2025-08-12 12:13:49 +02:00
radicle-systemd systemd: Support Credentials 2025-10-09 10:03:21 +01:00
radicle-term crates: bump for release 2025-10-06 16:36:30 +01:00