-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH keys are available to all containers only after workspace reboot #14073
Comments
@vparfonov @vinokurig guys, wdyt? my understanding that this issue is not che.openshift.io specific |
It is not possible to store keys in the |
Looks like we don't have solution at the moment, so i will remove |
@vparfonov this issue looks quite important and I guess both minishift and minikube are also affected, right? |
alternate would be to get all running containers other than
This would prevent us from having to restart the workspace. |
But actual problem even not there is no wright access. Problem is that SSH key generate in one container and put it in |
I agree, but it is better than just the fact that SSH will not work at all just after generation without workspace restart
The idea is to store SSH in the
well, we need to either workaround it somehow or notify user that SSH are generated but can be used only after workspace restart |
The solution here is avoiding to ask users to generate an SSH key and do that automatically as soon as a user login to Che the first time. @ibuziuk @ScrewTSW please have a look at #13494 As a workaround we can provide a message (don't we do that already?) but I expect @vparfonov team to implement this rapidly after Che 7 is released. |
We don't. What about a notification: |
@vinokurig I would make it even simpler: `Please restart your workspace to access the generated SSH keys" |
This message looks like the SSH keys don't work at all, but they are available in |
@vinokurig I understand that but I don't expect a user to know what the You are right for the Git plugin though so maybe
But not sure if that's better. Simpler is usually better. And anyway that's a temporary message because we need to fix #13494! |
I thought we were mounting the keys somehow in |
Yes it's true! We mount in |
if we mount, we can decide to have write access no ? |
@vparfonov @vinokurig @l0rd why don't we write to it : we mount it we can have write access. |
wright access will not solve the problem, It doesn't matter where the keys are located after generation, in |
If you mount a volume ... it could be mounted in all the containers including |
@vinokurig @vparfonov Are you mounting ssh keys as a secret to the pod? |
Yes |
bump. |
Any plans for fixing this issue? |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Describe the bug
After using the
>SSH generate key-pair
command, the keypair is generated in thetheia-ide
container only, not accessible for the other running containers.By default the terminal can be only opened for the deployment container.
It can be circumvented by showing the tool containers or running a new terminal from
My Workspace
->Plugins
->theia-ide
However, after the reboot the key is available in
/etc/ssh
and the checkout works from all containers.I would suggest instead of storing the key into
/home/theia/.ssh
to store it straight into/etc/ssh
and restarting thesshd
daemon @vparfonovChe version
Expected behavior
The git clone should be possible from any container right after the key has been generated and added into your git service of choice
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)OpenShift Master: v3.11.82
Kubernetes Master: v1.11.0+d4cacc0
OpenShift Web Console: v3.11.82
Installation method
Environment
The text was updated successfully, but these errors were encountered: