As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit da719e7d authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Merge branch 'id-deprecate-self-signed-cert' into 'main'

Deprecate self_signed_cert config setting

See merge request gitlab-org/gitlab-shell!552
parents 4989011b 537f8e19
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -162,7 +162,10 @@ func buildHttpsTransport(hcc httpClientCfg, selfSignedCert bool, gitlabURL strin
}
}
tlsConfig := &tls.Config{
RootCAs: certPool,
RootCAs: certPool,
// The self_signed_cert config setting is deprecated
// The field and its usage is going to be removed in
// https://gitlab.com/gitlab-org/gitlab-shell/-/issues/541
InsecureSkipVerify: selfSignedCert,
MinVersion: tls.VersionTLS12,
}
Loading
Loading
Loading
Loading
@@ -26,6 +26,11 @@ http_settings:
# password: somepass
# ca_file: /etc/ssl/cert.pem
# ca_path: /etc/pki/tls/certs
#
# The self_signed_cert option is deprecated
# When it's set to true, any certificate is accepted, which may make machine-in-the-middle attack possible
# Certificates specified in ca_file and ca_path are trusted anyway even if they are self-signed
# Issue: https://gitlab.com/gitlab-org/gitlab-shell/-/issues/120
self_signed_cert: false
# File used as authorized_keys for gitlab user
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment