puppetlabs / puppetlabs/puppetlabs-sshkeys_core

Support HashKnownHosts yes

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
3
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Use Case

When hashing known hosts file is enabled in /etc/ssh/sshd_config:

HashKnownHosts yes

the known hosts file is obfuscated, e.g.

|1|/HDlpiXPrlV7Du5z0gYYl2jqFDc=|bM6g+TnsNFpNa4hm1XKGXFDypKg= ecdsa-sha2-nistp256 AAAAE..

The sshkey resource should respect the setting and not mix hashed entries with plain text entries.

The matching lines can be found easily:

ssh-keygen -H -F hostname.example.com

but it's not as easy as managing plain-text records.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the sshkey resource implementation and its tests, then use the HashKnownHosts setting in /etc/ssh/sshd_config and ssh-keygen -H -F hostname.example.com as behavioral references. Done means the resource handles hashed known-hosts entries without mixing them with plain-text entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.