Skip to content
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

What could docker do to make it easier to do this correctly? #13

Closed
westurner opened this issue Mar 14, 2019 · 9 comments
Closed

What could docker do to make it easier to do this correctly? #13

westurner opened this issue Mar 14, 2019 · 9 comments

Comments

@westurner
Copy link

What could docker do to make it easier to grant limited privileges to the docker socket(s) / API?

Are there existing issues in docker projects that should be prioritized to make this happen?

@pedrobaeza
Copy link
Member

What this repository has to do with that?

@westurner
Copy link
Author

You seem to have developed a solution that would be useful for upstream. As an expert who's spent time developing a solution, do you have any insight as to how docker could provide privilege-limited sockets without requiring a HAproxy instance to also keep upgraded?

@pedrobaeza
Copy link
Member

Sorry, no

@westurner
Copy link
Author

If docker were to provide a configuration option to create an additional socket(s) with a limited set(s) of API privileges, would this solution still be necessary?

@pedrobaeza
Copy link
Member

I suppose not, but we should wait for that

@westurner
Copy link
Author

Thanks for your time. Are you aware of any issues in any docker projects relevant to this concern?

@westurner
Copy link
Author

I see these docs: https://docs.docker.com/v17.09/engine/security/https/

I'll spend some time looking through the open issues to see whether someone has requested a (socket_filename, [perms,]) feature.

@yajo
Copy link
Contributor

yajo commented Mar 25, 2019

After some recent reading and videos, I have become convinced that it's not just the socket: the whole security model under Docker is broken by design. Read here why podman is way more secure.

I think it makes more sense to invest time in this new collection of container tools that is becoming available nowadays.

Apart from that, yes, limited privileges in sockets would be a good thing, but I don't think they'll apply that since Docker already ships with RBAC plugin support (although none is shipped by default in the CE edition), so those regards are supposed to be delegated to external plugins instead.

@westurner
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants