fluxcd-flux2/pkg/bootstrap
Hidde Beydals 4810828b53
Cover pkg/bootstrap SSH signing roundtrip
Adds two layers of coverage for the SSH commit-signing path that the
previous commit wires through PlainGitBootstrapper.

TestPlainGitBootstrapper_resolveSigner exercises every branch of the
new dispatcher: nil configuration, GPG-only, SSH-only, encrypted-SSH-
without-passphrase failure, and the documented GPG-wins-when-both-
set precedence.

TestPlainGitBootstrapper_sshSignerProducesVerifiableCommit drives an
end-to-end roundtrip: resolveSigner returns an SSH signer, the signer
plugs into repository.WithSigner, gogit.Client.Commit produces a
commit object, and signature.VerifySSHSignature cryptographically
verifies the gpgsig header against the matching authorized_key.
Catches regressions in the SSH-signing wiring that the dispatcher
unit tests would miss.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2026-06-18 14:40:42 +02:00
..
provider feat: add gitea bootstrapper 2023-11-01 15:46:42 +01:00
bootstrap.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
bootstrap_plain_git.go Migrate bootstrap signing to generic Signer 2026-06-18 14:40:30 +02:00
bootstrap_provider.go Introduce visibility flag for bootstrap gitlab 2024-07-17 20:22:25 +02:00
bootstrap_test.go Cover pkg/bootstrap SSH signing roundtrip 2026-06-18 14:40:42 +02:00
options.go Migrate bootstrap signing to generic Signer 2026-06-18 14:40:30 +02:00