Please add openssh-keygen to Dockerfile-rootless #33783
Labels
topic/build
PR changes how Gitea is built, i.e. regarding Docker or the Makefile
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Hi,
I prefer the rootless container variant and use the built-in SSH server. This works perfectly so far. I only have the problem of the initial installation and the generation of the SSH host keys, because there is no tool in the rootless image to generate the keys. I am aware that an RSA key is created automatically. But the others (ecdsa, ed25519) are not.
I run this in K8s. At the moment I'm helping myself by having an initContainer (the rootfull variant), which then generates the keys with openssh-keygen. But that feels like overkill to define an extra image just for that instead of using the same rootless image. It would be much more convenient if the
openssh-keygen
tool was also available in the rootless container. It only adds a few KB, but really makes your life easier.The official helm chart uses the rootfull variant by default. There is also a flag to use the rootless variant. In this case, however, only the RSA key seems to be created and used. That feels incomplete.
Thanks already!
Best regards,
Paul
Screenshots
No response
The text was updated successfully, but these errors were encountered: