Skip to content

openssh.config_ini / HostKey clobbering #146

Open
@jtryon

Description

@jtryon

While testing the ini style config formula I've found that it clobbers the 4 default HostKey in the Ubuntu sshd_config down to the last one (without a HostKey specified in the pillar).

sshd_config Before

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

sshd_config After

HostKey /etc/ssh/ssh_host_ed25519_key

Following the pillar.example style of HostKey config Salt fails to compile the SLS on the minion. I think that's just because the current pillar.example isn't made with the config_ini formula in mind (it has a list/block of hostkeys which causes the compile issue).

All the other config variables which only appear once aren't affected and update just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions