Skip to content

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

@anarcat

Description

@anarcat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions