-
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
Allow authorization also against insecure registries (at least for testing) #599
Comments
Thanks for filing the issue! Referencing the related comment: #545 (comment) A summary of possible approaches:
@GoogleContainerTools/java-tools |
+1 to some combination of options 1 and 3 (nicer error mentioning command line option by default, only allow sending credentials over http if a command line option is set) |
Okay, finalized proposal is:
|
It seems worth having a discussion to sort out things around HTTP, HTTPS, and
|
I'm going to work on adding a better error message, and we can discuss what to do with sending credentials over HTTP later. |
@Hi-Fi version |
This works, but seems that value is handled only with "toImage" (push) part. When pulling from local registry and pushing to artifactory, Manifest error is shown. |
@Hi-Fi - what is the command you used to run your build? It looks like |
It was set, only change that I did to make that work was to add source image to other with "-DfromImage=localhost:5000/test/distroless-java" |
0.9.8 seems have fixed this, so now authentication is sent to both directions correctly. |
FTR: Not verified, but I'm guessing it is #704 that solved #599 (comment). That is, previously with 0.9.7, even if |
Description of the issue:
Currently if registry offers only insecure access, there's no way to authenticate against it (https://github.com/GoogleContainerTools/jib/blob/master/jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryEndpointCaller.java#L165). It would be good for testing to be able to authenticate over http (partly because of #543).
Expected behavior:
Parameter where user acknowledges that it's very bad idea to send credentials over http, but still allowing that.
Steps to reproduce:
Create local registry with authentication and without TLS.
Environment:
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T22:39:06+03:00)
Java version: 1.8.0_131, vendor: Oracle Corporation
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
jib-plugin version: 0.9.6
jib-maven-plugin
Configuration:Log output:
Without allowInsecureRegitstries:
With allowInsecureRegitstries:
Additional Information:
If this is not possible, at least error message should state that authentication (username+password) was not even used, because connection was made with http instead of https.
The text was updated successfully, but these errors were encountered: