Skip to content

Don't advertise federation host with empty SSH fingerprint (3.24.x)#3190

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

Don't advertise federation host with empty SSH fingerprint (3.24.x)#3190
larsewi merged 1 commit into
cfengine:3.24.xfrom
larsewi:fr-guard-empty-ssh-fingerprint-3.24.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 956a0eb into cfengine:3.24.x Jul 9, 2026
44 of 45 checks passed
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