georchestra / helm-georchestra

geOrchestra helm chart
3 stars 6 forks source link

Allow ability to verify host key for git clone of datadir using SSH protocol #36

Open edevosc2c opened 1 year ago

edevosc2c commented 1 year ago

Cause

Currently, we do not verify the host key when doing a git clone of datadir using the SSH protocol: https://github.com/georchestra/helm-georchestra/blob/main/templates/_bootstrap-georchestra-datadir.tpl#L18 HTTPS (the default protocol when simply deploying the helm chart) is not affected, as it verifies the TLS certificate.

If someone manages to do a man in the middle between the Kubernetes cluster and the final git repository, then an attacker could provide malicious configurations to the pods.

Some possibilities by providing malicious configurations:

Solution

We should allow the ability to provide a host key in the values.yaml file so that git verifies the git server.