mistio / mist-ce

Mist is an open source, multicloud management platform
https://mist.io
Apache License 2.0
1.87k stars 315 forks source link

mistio credentials #881

Closed jpstaub closed 7 years ago

jpstaub commented 8 years ago

Hello,

I'm trying to implement authentication for open mistio. However, there doesn't appear to be a text editor included in the Docker image. I would like to add nano or vim but mistio doesn't have permissions to do so within the Docker container. What are mistio's credentials?

Regards, Jake

mgogoulos commented 8 years ago

Hi, let me update the docker image to contain sudo/vim/nano and I'll let you know once this is done

jpstaub commented 8 years ago

Hello,

I'm still interested in mistio credentials in order to implement mistio authentication. At this point, I'm after installation of Apache2-utils to implement basic authentication in accordance with jwilder/nginx-proxy.

I really appreciate mistio-docker but it's a drag not having a rudimentary ability to make necessary changes.

Regards, Jake

jpstaub commented 7 years ago

Finally cracked the nut on jwilder reverse proxy basic authentication.

mist.io does not include an authentication service. However, jwilder nginx-proxy includes basic authentication support.

jwilder makes use of htpasswd. Creating a password file requires apache2-utils.

Sample htpasswd code: ~$ htpasswd -b ~/htpasswd/virtualHost user password

Note: It may be necessary to create ~/htpasswd/virtualHost manually in order to use htpasswd to create users and passwords.

Sample Docker code (includes code for letsencrypt):

#nginx-proxy - letsencrypt + authentication

~$ docker run -d \
--name nginx-proxy_cryptAccess \
-p 80:80 -p 443:443 \
-v /etc/nginx/certs:/etc/nginx/certs:ro \
-v /etc/nginx/vhost.d \
-v /usr/share/nginx/html \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
-v ~/htpasswd/virtualHost:/etc/nginx/htpasswd/virtualHost:ro \
--restart unless-stopped \
jwilder/nginx-proxy
mgogoulos commented 7 years ago

Version 2 is out, comes with an easier installation process using Docker Compose and many new features, including user management. Check updated instructions on https://github.com/mistio/mist.io