Skip to content

Don't advertise federation host with empty SSH fingerprint (3.27.x)#3189

Merged
larsewi merged 1 commit into
cfengine:3.27.xfrom
larsewi:fr-guard-empty-ssh-fingerprint-3.27.x
Jul 10, 2026
Merged

Don't advertise federation host with empty SSH fingerprint (3.27.x)#3189
larsewi merged 1 commit into
cfengine:3.27.xfrom
larsewi:fr-guard-empty-ssh-fingerprint-3.27.x

Conversation

@larsewi

@larsewi larsewi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

If ssh-keyscan returns no host key, the setup status was still written
with an empty transport_ssh_server_fingerprint. Superhubs then rendered
an empty known_hosts entry for the host and the rsync pull later failed
with "Host key verification failed". Gate the status update on a
non-empty fingerprint and retry on subsequent runs.

Changelog: Don't advertise federation host with empty SSH fingerprint
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech
(cherry picked from commit 18a70ef)

Backported from #3183

If ssh-keyscan returns no host key, the setup status was still written
with an empty transport_ssh_server_fingerprint. Superhubs then rendered
an empty known_hosts entry for the host and the rsync pull later failed
with "Host key verification failed". Gate the status update on a
non-empty fingerprint and retry on subsequent runs.

Changelog: Don't advertise federation host with empty SSH fingerprint
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 18a70ef)
@larsewi

larsewi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi merged commit cc4ba62 into cfengine:3.27.x Jul 10, 2026
40 checks passed
@larsewi larsewi deleted the fr-guard-empty-ssh-fingerprint-3.27.x branch July 10, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants