Set SSL certificates path env when calling ES indexer
What does this MR do?
From omnibus-gitlab#5037 (closed),
We tell our users to install custom SSL certificates into
/opt/gitlab/embedded/ssl/certs/
. These certificates then get picked up by everything in omnibus-gitlab that uses OpenSSL.
It turns out we can tell
crypto/tls
about/opt/gitlab/embedded/ssl/certs/
by settingSSL_CERT_DIR=/opt/gitlab/embedded/ssl/certs/
.
Also, I am proposing to first check the ENV['SSL_CERT_DIR'], then default to /opt/gitlab/embedded/ssl/certs/
if it's not set.
Btw, credits go to @poffey21 , omnibus-gitlab#5037 (comment 279359781)
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team
Edited by Nick Thomas