-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[initializer] Fix issue with publicly signed SCM's on a self-signed Gitpod instance #10280
Conversation
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.1 |
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.3 |
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.5 |
GIT_SSL_CAINFO
with GIT_SSL_CAPATH
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.6 |
Fixes #10173 Using `GIT_SSL_CAPATH` means that we will continue to support publicly signed SCM's even when we have a `customCA` configured. Signed-off-by: Tarun Pothulapati <[email protected]>
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.8 |
/werft run publish-to-kots 👍 started the job as gitpod-build-tar-certs.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not test, but code LGTM
Description
As per the issue, Using only
GIT_SSL_CAINFO
seems to prevent thegit intializer from reading any of the default certs from the system's trust root
causing problems with publicly signed SCM's.
Though, I couldn't find any documentaiton specifying this but the behaviour
seems to be that as per various issues in discord, etc and my own testing.
Setting only
GIT_SSL_CAPATH
to/etc/ssl/certs
seems to cause problemswith self-signed SCM's even if the certificate is under
/etc/ssl/certs
. It throwsthe same
unknown self signed certificate
which means it is not at all readingthe custom cert and probably only reading the
certs.pem
bundle.Setting them both i.e
GIT_SSL_CAINFO
to the custom cert, andGIT_SSL_CAPATH
to the default cert trust store seems to be the only way to get both publicly signed
and self signed SCM's to work.
Signed-off-by: Tarun Pothulapati [email protected]
Related Issue(s)
Fixes #10173
How to test
Spin up a self-signed
gitpod
instance, and authenticate it withboth a
self-signed
SCM and a public SCM.An Instance up and running at tarun.gitpod-self-hosted.com
Release Notes
Documentation