Skip to content

Bug in handling ports in sshd_config when reducing the number of ports that are active #48

Description

@trevor-vaughan

Starting scenario

Code

puppet apply -e 'sshd_config { "Port": value => [22,2222,22222,2223] }'

Expectation

Port 22
Port 2222
Port 22222
Port 2223

Reality ✔️

Port 22
Port 2222
Port 22222
Port 2223

Reduce by two entries

Code

puppet apply -e 'sshd_config { "Port": value => [22,2222] }'

Expectation

Port 22
Port 2222

Reality ❌

Port 22
Port 2222
Port 2223

Run Puppet again

Code

puppet apply -e 'sshd_config { "Port": value => [22,2222] }'

Expectation

Port 22
Port 2222

Reality ✔️

Port 22
Port 2222

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