devfile / devworkspace-operator

Apache License 2.0
67 stars 55 forks source link

Document requirements to ~/.bashrc for automount configmap provided ~/.bashrc #1317

Closed AObuchow closed 2 months ago

AObuchow commented 2 months ago

https://github.com/devfile/devworkspace-operator/pull/1307 provided the ability for your SSH passphrase to automatically be used by the ssh-agent when performing git operations.

However, this functionality depends on a postStart event that modifies the ~/.bashrc to configure the ssh-agent to use the SSH passphrase. If a user provides their own ~/.bashrc using an automount configmap, the .bashrc will not be writeable and thus this modification to the .bashrc will fail.

We should document this caveat in the DWO additional docs, to inform users that they must manually configure the ssh-agent themselves in their .bashrc.