-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Unable to use ssh access to GitHub repo #5818
Comments
@pmorie PTAL as well... this might be related to how secrets are delivered to pods, I'm sure we had some QE for private keys and they worked :-) |
FYI, I am running on OS X and using Openshift in a all-in-one setup running in a VirtualBox vm. |
When running:
and decoding base64 string, the resulting key seems to be correct. So the problem seems to occur when the key is placed onto the builder pod. |
@hardys @smarterclayton this should fix this right? #5778 @sdodson I think we need this into rcm ose image :-) |
@mfojtik should be in the latest as of yesterday evening |
I'll give it a go |
I am trying to use ssh git URL to specify the location of my sources. When doing so, I'll get the following in the build log:
I did the following to create the OpenShift secret:
I then added the following to the build config:
When debugging the the failing pod, I can see that the secret is available under
/tmp/tmpsecret332138224/ssh-privatekey
, however, there seems to be an encoding error with the key. new lines appear literally as\n
:Instead of:
Hence, if I for example run:
I'll get:
This is the reason why the builder pod cannot clone the specified repository. If I update the private key with its proper content and re-run the above command I get the expected:
Bottom line, the private key specified via
oc secrets new
seems to get scrambled somewhere along the line.The text was updated successfully, but these errors were encountered: