Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anarcat opened this issue Nov 21, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@anarcat
Copy link

anarcat commented Nov 21, 2024

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.

@anarcat anarcat added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant