-
Notifications
You must be signed in to change notification settings - Fork 86
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
applying helm addon breaks ssh access to minishift vm #130
Comments
CC @firemanxbr can you take a look? |
In my tests this is not caused by minishift or another component, this is based in docker daemon that needs root privileges. @jeka can you share what distribution you are using and versions of minishift and docker? |
I have no clue how is my distribution relevant to the problem. Anyway its Fedora 28.
this makes no sense to me either. The problem is the way you invoke docker to install helm: Versions: docker version is whatever it comes with centos image (v1.12.0) used by minishift to spawn the vm [docker@minishift ~]$ docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64
Go version: go1.9.4
Git commit: 94f4240/1.13.1
Built: Fri May 18 15:44:33 2018
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64
Go version: go1.9.4
Git commit: 94f4240/1.13.1
Built: Fri May 18 15:44:33 2018
OS/Arch: linux/amd64 |
I'm experiencing the same issue as @jeka after helm setup, had to revert file contexts to original state in docker's .ssh dir in order to restore passwordless ssh access. minishift version:
|
The issue #161 is describing exactly the same. After executing I'll try to find out more about that things @firemanxbr mentioned before.. |
As title says:
docker run --rm -v /home/docker:/root:z ...
this volume mount screws selinux file contexts up of .ssh dir and its contents
effectively prohibiting ssh access to the vm
before helm addon apply:
[docker@minishift .ssh]$ ls -alZ
drwx------. docker docker system_u:object_r:ssh_home_t:s0 .
drwx------. docker docker unconfined_u:object_r:user_home_dir_t:s0 ..
-rw-r--r--. docker docker system_u:object_r:ssh_home_t:s0 authorized_keys
-rw-r--r--. docker docker system_u:object_r:ssh_home_t:s0 authorized_keys2
after addon apply:
[docker@minishift .ssh]$ ls -alZ
drwx------. docker docker system_u:object_r:container_file_t:s0 .
drwx------. docker docker system_u:object_r:container_file_t:s0 ..
-rw-r--r--. docker docker system_u:object_r:container_file_t:s0 authorized_keys
-rw-r--r--. docker docker system_u:object_r:container_file_t:s0 authorized_keys2
(actually whole docker's home dir is messed up regarding selinux fc, plus .helm dir and its content is left root owned)
The text was updated successfully, but these errors were encountered: