1
0
Fork 0
Commit Graph

3 Commits (baab02217efd2fcc36fd1d2c27c6eb413ec28d48)

Author SHA1 Message Date
Dustin 2f9d8ad618 jenkins: Add CA key to ssh_known_hosts
Since (almost) all managed hosts have SSH certificates signed by SSHCA
now, the need to maintain a pseudo-dynamic SSH key list is winding down.
If we include the SSH CA key in the global known hosts file, and
explicitly list the couple of hosts that do not have a certificate, we
can let Ansible use that instead of fetching the host keys on each run.
2024-01-22 17:52:35 -06:00
Dustin 29150f54bb jenkins: Add files.p.b SSH host key
This will allow jobs that need to publish to *files.pyrocufflink.blue*
to verify its SSH host key.
2023-11-10 15:17:06 -06:00
Dustin 10ee364612 jenkins: Add ssh_known_hosts ConfigMap
When cloning/fetching a Git repository in a Jenkins pipeline, the Git
Client plugin uses the configured *Host Key Verification Strategy* to
verify the SSH host key of the remote Git server.  Unfortunately, there
does not seem to be any way to use the configured strategy from the
`git` command line in a Pipeline job, so e.g. `git push` does not
respect it.  This causes jobs to fail to push changes to the remote if
the container they're using does not already have the SSH host key for
the remote in its known hosts database.

This commit adds a ConfigMap to the *jenkins-jobs* namespace that can be
mounted in containers to populate the SSH host key database.
2022-12-10 12:19:33 -06:00