puppetlabs / puppetlabs/puppetlabs-sshkeys_core

ssh_authorized_key should be able to take a ready-made OpenSSH public key

Open
#94 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 creating adding an authorized public key with the Ssh_authorized_key-resource, the manifest is supposed to provide all of the pieces of the key.

Describe the Solution You Would Like

It would be very nice, if the resource could simply parse an existing foo.pub in the format used by OpenSSH (maybe, in some other formats as well). The path to the file can be interpreted the same way, source-attribute of the File-resource is or, perhaps even better, the way template() interprets its arguments.

Options specified in the manifest can complement and, in case of conflict, overwrite those found in the file.

By treating the keys as data rather than as code, it would be easier for users to deal with large number of them.

Describe Alternatives You've Considered

N/A

Additional Context

This was originally filed as MODULES-7595.

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 with the Ssh_authorized_key resource and review how its current manifest attributes represent public-key parts. Define how an existing OpenSSH public-key file is supplied, how manifest options complement or override it, and what behavior should result for conflicting values. Done means the resource can consume a ready-made key while retaining explicit option precedence.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
authentication, 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.