[__ssh_authorized_key{,s}] changes in a key's settings result in duplicated lines #55

Open
opened 2021-11-20 11:25:15 +00:00 by ungleich-gitea · 0 comments

Documenting the bug to fix it at a later point / so that someone beats me to it.

Documentation implies that this type manages a specific SSH key for a specific user, which would mean that, e.g. adding or removing an --option or changing the --comment should not result in a new entry in authorized_keys, but instead in any existing entry with that SSH key being replaced by the new one that is being expressed.

It was not tested if e.g. --state absent has similar issues of only matching if all options are exactly the same.

Documenting the bug to fix it at a later point / so that someone beats me to it. Documentation implies that this type manages a specific SSH key for a specific user, which would mean that, e.g. adding or removing an `--option` or changing the `--comment` should not result in a new entry in authorized_keys, but instead in any existing entry with that SSH key being replaced by the new one that is being expressed. It was not tested if e.g. `--state absent` has similar issues of only matching if all options are exactly the same.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#55
No description provided.