-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make allowInsecureRegistries follow Docker semantics for use-insecure-registries #643
Comments
Just documenting here the security implication of Jib will proceed with HTTPS when the server certificate (including a self-signed one) cannot be verified. The user may mistype the server URL and accidentally connect to a malicious server whose URL is set up to resemble the original server URL. TLS can't verify the server, but since Not just that, it opens up the main in the middle (MITM) attack for anyone sitting at any of the routers or proxies the request passes though. Or somebody could exploit some DNS attacks. |
Fortunately, Builder transportBuilder = new ApacheHttpTransport.Builder();
if (!turnOffCertificateValidation) {
transportBuilder.doNotValidateCertificate();
}
requestFactory = transportBuilder.build().createRequestFactory(); |
Should also update the docs, once this is fixed. |
Just ignore the certification error and proceed with HTTPS.
https://docs.docker.com/registry/insecure/#deploy-a-plain-http-registry
When implemented, cases like #543 will be supported naturally and we will be able to remove the workaround doc: https://github.com/GoogleContainerTools/jib/blob/master/docs/configure-gcp-credentials.md
Should update docs once fixed.
The text was updated successfully, but these errors were encountered: