1
0
mirror of synced 2026-05-30 03:40:47 +00:00
Files
flux2/cmd/flux
Hidde Beydals e1970390a1 Add SSH signing flags to bootstrap
Introduces four new persistent flags on flux bootstrap:
--ssh-signing-key-file, --ssh-signing-password, the hidden alias
--ssh-signing-passphrase, and the reuse boolean
--ssh-signing-reuse-private-key. They sit next to the existing
--gpg-key-ring / --gpg-passphrase / --gpg-key-id surface.

bootstrapValidate pre-flights the configured signing key for the
explicit GPG and SSH paths so malformed PEM, wrong passphrases, and
unsupported SSH algorithms surface before any clone runs. The GPG
pre-flight calls the now-exported SelectOpenPGPSigningEntity from
pkg/bootstrap directly, so the pre-flight cannot drift from the
bootstrap commit path. The reuse path's pre-flight runs inside each
subcommand's RunE (where the subcommand-local SSH transport password
is in scope) and lands with the wiring commits that follow.

A small effectiveSshSigningPassword helper resolves the
--ssh-signing-passphrase alias purely (returning the resolved value
or a mutual-exclusion error) instead of mutating the
package-scoped bootstrapArgs singleton inside bootstrapValidate.

Mutual exclusion is enforced between the GPG and SSH groups, and
between --ssh-signing-key-file and --ssh-signing-reuse-private-key.
--ssh-signing-reuse-private-key requires --private-key-file;
--ssh-signing-password requires --ssh-signing-key-file. The
--ssh-signing-passphrase alias is hidden in --help.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2026-05-29 22:18:30 +02:00
..
2025-06-04 11:21:11 +02:00
2024-04-08 17:54:38 +03:00
2024-04-08 17:54:38 +03:00
2025-10-24 14:52:36 -03:00
2025-09-16 11:00:12 +03:00
2025-09-16 12:08:15 +01:00
2025-09-16 12:08:15 +01:00
2024-05-09 17:18:11 +03:00
2025-09-16 11:00:12 +03:00
2023-06-05 10:07:38 +02:00
2024-06-11 23:56:04 +02:00
2023-12-08 19:47:12 +05:30
2026-04-14 00:46:22 +03:00
2026-04-30 08:19:41 +01:00
2025-10-09 08:45:01 -03:00
2025-09-16 12:08:15 +01:00
2023-12-08 19:47:12 +05:30
2022-01-10 16:30:38 +01:00
2026-05-23 01:44:07 +01:00
2023-08-22 12:36:58 +03:00
2022-01-10 16:30:38 +01:00