Skip to content

fix: use proper Hostname ssh_config casing - #45

Merged
delthas merged 1 commit into
mainfrom
bugfix/ssh-config-hostname-keyword
Oct 16, 2026
Merged

delthas merged 1 commit into
mainfrom
bugfix/ssh-config-hostname-keyword

Conversation

@delthas

@delthas delthas commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Why

Just to be clear keys are case insensitive, so there is no issue on the SSH config itself.

But SIT tests that parse the ssh_config are case sensitive, and they want Hostname, not HostName. (Could be fixed there also as needed). (See https://github.com/scality/artesca/pull/5627#discussion_r4245724944 for context) (Edit: I ended up also opening that PR https://github.com/scality/sit/pull/258)

Hostname is also the documented casing, so just for that it's acceptable "hygiene".

What it does

Writes Hostname for the bastion and the nodes, in both the runner's ssh_config and the one generated for the bastion, instead of HostName.

Should not have any impact whatsoever since keys are case insensitive.

ssh_config(5) documents the keyword as Hostname. OpenSSH matches
keywords case-insensitively, but tools that read the generated file
case-sensitively do not find HostName.
@delthas
delthas marked this pull request as ready for review October 14, 2026 16:36
@delthas
delthas requested a review from a team as a code owner October 14, 2026 16:36

@TeddyAndrieux TeddyAndrieux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed you right

@francoisferrand francoisferrand left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of modifying platform-spawner, should we not modify SIT to be case-insenstive? That is a better long term fix, and does not require "bumping" platform-spawner...

@delthas

delthas commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Instead of modifying platform-spawner, should we not modify SIT to be case-insenstive? That is a better long term fix, and does not require "bumping" platform-spawner...

The PR is also open. This is just a nice-to-have / hygiene since it was so simple to change. No need for a bump since we have the SIT PR.

ie we can have both

@delthas
delthas merged commit 521978e into main Oct 16, 2026
10 checks passed
@delthas
delthas deleted the bugfix/ssh-config-hostname-keyword branch October 16, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants