Allow git to use cacert
What does this MR do?
This MR updates the cacert.write()
function so that in addition to writing the provided ca certificate to the given path
, it also writes this path
value to the http.sslCAInfo configuration directive of the /etc/gitconfig
file, which allow git
to make use of this custom certificate to verify the peer with when fetching or pushing over HTTPS.
What are the relevant issue numbers?
gitlab-org/gitlab#218634 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Adam Cohen