Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Put baked-in SSH config in /etc/ssh #1154

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Jun 20, 2018

To be able to use a self-hosted (or unaccounted for) git server, you have to be able to put its host key in known_hosts in the fluxd container. This is because we make sure StrictHostKeyChecking is enabled for SSH.

At present we bake SSH config (ssh_config and known_hosts) into the flux image at the user-specific location, that is /root/.ssh/. This makes it fiddly to override known_hosts by mounting a configmap, because you have to specify subPath (which stops Kubernetes from updating the file when the configmap changes), or supply both files.

If we put our baked-in config at the global location (/etc/ssh), people are free to mount a configmap at /root/.ssh without the limitations above. This means we can unconditionally mount a (probably empty) configmap in the example and in Helm charts.

At present we bake SSH config (ssh_config and known_hosts) into the
flux image at the user-specific location, that is `/root/.ssh/`. This
makes it fiddly to override by mounting a configmap, because you have
to specify subPath (which stops Kubernetes from updating the file when
the configmap changes), or supply both files.

If we put our baked-in config at the global location (`/etc/ssh`),
people are free to mount a configmap at `/root/.ssh` without the
limitations above. This means we can unconditionally mount a (probably
empty) configmap in the example and in Helm charts.
@squaremo squaremo merged commit 6356419 into master Jun 21, 2018
@squaremo squaremo deleted the issue/1113-easier-sshconf-mount branch June 21, 2018 14:00
@squaremo squaremo removed the request for review from awh June 21, 2018 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants