Hi everyone,
I’m trying to properly configure Databricks Serverless Private Git to connect to our on-premises GitLab, but I'm running into issues with private CA certificates.
Following the latest Databricks recommendations, our connection to GitLab goes through:
- a load balancer
- a private proxy server
- an on-prem GitLab instance
- no public internet access (Databricks traffic cannot go out to the public Internet)
Because of this setup, we’re using Databricks Serverless Private Git.
What works
The connection to GitLab works correctly as long as SSL verification is disabled, for example:
{
"default": {
"sslVerify": false
}
}
With SSL verification turned off, Databricks can successfully clone the repository and run all Git operations.
What does NOT work
The issue appears when we want to enable proper SSL verification and use our internal CA certificate, since our organization does not use publicly-signed certificates — everything is signed by our internal PKI.
According to Databricks documentation:
- we created the .git_settings folder in the workspace
- we placed our CA certificate inside (e.g. ca.pem)
- we added config.json to point Git to that CA file
Our configuration looks like this:
{
"default": {
"caCertPath": "/Workspace/.git_settings/cert.pem",
"httpProxy": "https://gitlab.apps.correcturl/"
},
"remotes": [
{
"caCertPath": "/Workspace/.git_settings/cert.pem",
"urlPrefix": "https://gitlab.apps.correcturl/"
}
]
}
After enabling this, the connection stops working. Git on Databricks fails to validate the certificate even though the CA is valid and works with other tools (curl/git from local machines, CI pipelines, etc.).
Symptoms
- the connection fails with an SSL certificate verification error
- it inside Databricks does not seem to see or load the custom CA certificate
- disabling sslVerify makes everything work, but this is not acceptable from a security standpoint
Error creating Git folder
remote: git proxy error, HTTPSConnectionPool(host='gitlab.apps.correcturl', port=443): Max retries exceeded with url: /path-in-git/notebooks.git/info/refs?service=git-upload-pack (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1007)')))
Request ID: 7faa538c-946e-416c-90ee-b41c5891ff85. Show error details
Question
Has anyone successfully implemented a similar setup:
- Databricks → Serverless Private Git
- On-prem GitLab (no public access)
- Internal/private CA (enterprise PKI)
and managed to make Git use a custom CA certificate correctly?
Any ideas or guidance would be very appreciated.
Thanks!