Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket pipeline - how can I setup a mongo-service that requires SSL?

Osher El-Netanany
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2019

The use-case is to test user-code that connects to a mongo service using SSL.

After passing all tests locally - the tests fail on the build.

The difference is that locally I run mongo with dockerfile, mount on it my PEM file and require SSL, while using the matching CA file from the client.

I expected that the mongo service in the CI to accept SSL connections, but evidently it does not.

 

I tried to find reference for the `services` section of the `bitbucket-pipeline.yml` but could not find how to inject my PEM using a volume to this service, and how to provide the command-line arguments `--sslMode requireSSL` and `--sslPEMKeyFile <the mounted path>`

 

Perhaps I'm looking in the worng place?

Any help will be appreciated :)

 

 

1 answer

0 votes
Osher El-Netanany
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2019

meanwhile - just to keep the build green - I added an env-var to disable SSL, applicable on CI.

Obviously - this reduces our code-coverage - which represents a production-code that is not even tested for it's happy path.

 

Any help will be appreciated...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events