kubernetes-secret-generator icon indicating copy to clipboard operation
kubernetes-secret-generator copied to clipboard

Allow Customization of ssh-privatekey and ssh-publickey for SSHKeyPair

Open jkupferer opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe.

For compatibility with using deploy keys with ArgoCD it is necessary to be able to generate SSH keypair secrets with data sshPrivateKey rather than the default ssh-privatekey.

Other use cases may also require the SSH public and private keys to use custom data names.

Describe the solution you'd like

Perhaps add spec.sshPrivateKeyDataName and spec.sshPublicKeyDataName to SSHKeyPair custom resource to allow overriding the defaults?

Describe alternatives you've considered

I've been unable to come up with a reasonable alternative.

Additional context

n/a

jkupferer avatar Dec 19 '23 15:12 jkupferer

#91 addresses similar needs. Perhaps this feature request should be folded into that one?

jkupferer avatar Dec 19 '23 15:12 jkupferer

Perhaps add spec.sshPrivateKeyDataName and spec.sshPublicKeyDataName to SSHKeyPair custom resource to allow overriding the defaults?

That sounds reasonable! Currently, our capacities to work on this project are limited, so PRs are always welcome.

martin-helmich avatar Dec 22 '23 09:12 martin-helmich

@jkupferer I am currently attempting to work on https://github.com/mittwald/kubernetes-secret-generator/issues/91. I would like to address this issue together. Can we discuss the design aspect in https://github.com/mittwald/kubernetes-secret-generator/issues/91?

mrchypark avatar Jan 15 '24 14:01 mrchypark

@mrchypark Sorry for having missed your comment for so long. Is this something you are still looking at?

jkupferer avatar Aug 13 '24 17:08 jkupferer

@jkupferer No. I was also busy with other things, so I couldn't keep up with it even though it was necessary. We can restart the conversation if needed.

mrchypark avatar Aug 15 '24 07:08 mrchypark