Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: Make location of secret key configurable
Merged lorenz opened 1 year ago

With this change, the location of the secret SSH key can be configured through ${RAD_HOME}/config.json so that the node key does not have to be placed under ${RAD_HOME}/keys anymore.

Further, there is now an option to override config.json directly when executing radicle-node via the command line argument --secret.

The primary motivation is more flexible deployments, for example leveraging external secret management solutions, like https://systemd.io/CREDENTIALS/.

In order to get this implemented, I had to make modifications to the keystore in radicle-ssh.

lorenz opened with revision ed450c98 on base 6ab3bfcb +191 -70 1 year ago

With this change, the location of the secret SSH key can be configured through ${RAD_HOME}/config.json so that the node key does not have to be placed under ${RAD_HOME}/keys anymore.

Further, there is now an option to override config.json directly when executing radicle-node via the command line argument --secret.

The primary motivation is more flexible deployments, for example leveraging external secret management solutions, like https://systemd.io/CREDENTIALS/.

In order to get this implemented, I had to make modifications to the keystore in radicle-ssh.

lorenz pushed revision 2 ee94b969 on base 25c6660a +205 -82 1 year ago

Updates after initial review by Fintan:

  • Don’t implement Default for Keys.
  • Bring back keys().
  • Add Home::default_keys().
  • Introduce constant string for ".radicle".
  • Fix radicle-httpd tests.
lorenz pushed revision 3 de5f30a3 on base 25c6660a +201 -80 1 year ago

Minor changes to previous revision.

lorenz pushed revision 4 7ed460f7 on base 25c6660a +1145 -901 1 year ago

More rusty fingerprint check.

lorenz pushed revision 5 c0d0e7b6 on base 25c6660a +1140 -902 1 year ago

Another round of review by Fintan.

lorenz pushed revision 6 624a626c on base 25c6660a +1154 -905 1 year ago

Forgot to work in some review comments…

lorenz pushed revision 7 7439eebf on base 57273593 +1154 -905 1 year ago

Trivial rebase.

lorenz pushed revision 8 986c4c25 on base ca7db162 +1154 -905 1 year ago

Rebase

lorenz pushed revision 9 821cdf97 on base 064ece32 +1154 -905 1 year ago

Another round of review. Rebase.

fintohaps accepted 1 year ago

LGTM :)

lorenz pushed revision 10 f160f2c3 on base 6dcd5627 +1257 -931 1 year ago

Fixes after review. Tests are broken.

lorenz pushed revision 11 312144c8 on base f13afe49 +376 -74 1 year ago

Pulled out the changes to CLI testing. They are now in rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/patch/12bc8517149547b24ccdc10def80ee34ec9368cc.

lorenz pushed revision 12 f4e2ffc2 on base bc4a1390 +254 -52 8 months ago

Rewrite the whole thing. It’s much cleaner now.

fintohaps pushed revision 13 dedcf2e1 on base bc4a1390 +283 -61 7 months ago

REVIEW: see commits

lorenz pushed revision 14 4991e458 on base bc4a1390 +297 -61 7 months ago
  • Apply most of Fintan’s suggested changes.
  • Improve documentation, hopefully answering Fintan’s questions.
lorenz pushed revision 15 21c7dbc3 on base ed8b0860 +296 -61 7 months ago

Rebase

lorenz pushed revision 16 152c9e8e on base ed8b0860 +270 -48 7 months ago

Rewrite

lorenz pushed revision 17 b9a61dbc on base 9e1d6b1f +314 -52 7 months ago

Add tests, polish.

fintohaps pushed revision 18 b540b4f5 on base 9e1d6b1f +314 -52 7 months ago

Changes:

  • Fix clippy warning in test scenario
fintohaps merged revision b540b4f5 at 22720e71 7 months ago