-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Stop including debugging utilities in the Conduit images #293
Comments
I'm not swayed by this. Once this image is downloaded, it should basically never change and there only needs to be one copy per host. And we're practically talking about... a few mb? I agree smaller is better, but not absolutely.
The utilities you are proposing to remove are absolutely essential to debugging during development. We'll need to maintain an image like this one way or another. While we ultimately need to build more of these debugging capabilities into the proxy itself, we need a solid debugging story continually. Though, I agree that from the security we should minimize the surface area of these containers, at least in release builds. But even in release environments, we need to provide a predictable environment where users can diagnose issues the way we would. Perhaps we could do something like the following:
The downside to this approach is that one has to know beforehand that they want to debug something. When you're actually trying to attach to something that's broken, it can be a real burden to get debug tools into that environment in that moment. Another option would be that we could use the RUNTIME_IMAGE build-arg that proxy/Dockerfile uses to change the base image for releases -- but this isn't particularly good for non-developers. |
Yes, that's the big downside. Note that the debugging of pods without any utlities like this is The main issue I am trying to solve is protecting the private keys for TLS, by locking down the proxy container. In particular we don't want to have an exploit of the proxy using |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Let's remove the debugging utilities from all the Conduit Docker images.
Currently we have Dockerfile-base that is based on jessie-slim and which installs the following utilities:
We do this because we want to help with debugging networking issues. However:
curl
around inside the containers increases the capabilities of anybody to pivot (etc.) after exploiting any vulnerability that allows code execution. Removing these utilities from the containers will make it harder to do terrible things post-exploitation./cc @klingerf @olix0r
The text was updated successfully, but these errors were encountered: