mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 13:53:28 +01:00
VNC Automated Image & Cloud Security #117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sickcodes on GitHub (Feb 8, 2021).
Yesterday I prepared an image for hub.docker.com for the VNC image. Just before pushing the image, I was reminded as to why I did not include that image in the first place: using the VNC image securely.
VNC images have an 8 character password that unlocks an individuals Apple ID remotely.
They also operate over an unencrypted connection, meaning all remotely accessible image traffic is sent in plaintext.
I am going to release the VNC image with instructions on SSH tunneling so uses can safely use this image remotely but by first opening an SSH tunnel to their remote server, and subsequently connecting to the VNC server using the internal Docker IP, much rather than using the public IP of the server.
Since we've hit 50k docker pulls and Docker-OSX is a security product, end user security is a highly important topic that could undermine the integrity of the free software provided by Docker-OSX.
With that I may simply add VNC to all of the images, particularly the
:nakedephemeral image which I use exclusively myself now on locally persistent disk images.@sickcodes commented on GitHub (Feb 8, 2021):
More to the point, users who are already familiar with SSH tunneling include users who have done the following:
ssh -i key server port:127.0.0.1:portor sans-i keyand storing SSH config in~/.ssh/config10.0.0.2More appropriately, I can write a shell file to output an RDP file locally, or via stdout, that a user can easily import into their RDP/VNC client of choice to access their server by double clicking on the file; allows seamlessly importing of a Docker-OSX instance into clients like Remmina.
This would also rapidly allow users to trivially conduct Docker-OSX research via their mobile phone, tablet etc.
@sickcodes commented on GitHub (Mar 4, 2021):
Here's some VNC notes for connecting to any of the normal images.
On the server:
On your PC
TIP: turn the quality down on your VNC client or it will be laggy as heck!
@JamesCullum commented on GitHub (Mar 10, 2021):
It would be great to have an image with VNC preinstalled.
Regarding your security worries - I think most users will run the container locally and don't need to worry about either.
For the server, the port would only be exposed if the user actively opens it up, as this is currently not documented.
Writing a note on the instructions about the dangers of an insecure VNC connection should be sufficient (or don't mention it and write it a bit more hidden, so that people do it less by accident).
@sickcodes commented on GitHub (Mar 10, 2021):
This is a better version of the existing VNC dockerfile because you can use any image. I am not updating the VNC one currently because all of the other images support VNC anyway:
Then on your local PC open a highly secure SSH tunnel without exposing any ports remotely to the server:
Open VNC at
localhost:5999using the password which will be printed above in the console of the remote host@sickcodes commented on GitHub (Mar 10, 2021):
I just realized I sent the same VNC stuff twice 😂 here's the security note btw: https://github.com/sickcodes/Docker-OSX/blob/master/vnc-version/Dockerfile#L56
Not huge but it's there, I'm big on security so I'll come up with some solutions this week
@sickcodes commented on GitHub (Mar 24, 2021):
Scrap all of the above, proper qemu VNC added here:
https://github.com/sickcodes/Docker-OSX#i-need-vnc-to-a-remote-host-secure