Skip to content

Automatically seed the SSH key needed if unspecified #38

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

Closed
consideRatio opened this issue Jul 17, 2021 · 1 comment · Fixed by #44
Closed

Automatically seed the SSH key needed if unspecified #38

consideRatio opened this issue Jul 17, 2021 · 1 comment · Fixed by #44
Labels
enhancement New feature or request

Comments

@consideRatio
Copy link
Collaborator

http://masterminds.github.io/sprig/crypto.html describes how sprig, a library exposing functions that helm can use, includes genPrivateKey that allows us to generate a private key.

I suggest that like the z2jh helm chat does, this Helm chart generates such private key unless explicitly passed and saves it into a k8s Secret and relies on the lookup function to catch it during helm template rendering. In other words, that we seed the SSH key for users that doesn't specify it, and we make sure to reuse a previously seeded SSH key.

For some reference examples on doing this, see:

@consideRatio consideRatio added the enhancement New feature or request label Jul 17, 2021
@yuvipanda
Copy link
Owner

Wow this would be pretty fucking awesome!

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

Successfully merging a pull request may close this issue.

2 participants