microcks / microcks-ansible-operator

Kubernetes Operator for easy setup and management of Microcks installs
Apache License 2.0
24 stars 5 forks source link

Support for MongoDB secured connection #108

Open maximilianb28 opened 9 months ago

maximilianb28 commented 9 months ago

Reason/Context

At this moment, the operator does not support ssl based connections to MongoDB

Description

It would be good to have a support for providing SSL certificates when the MongoDB server is configured to only allow SSL connections. There is no way to provide a SSL certificate with the current configuration.

Implementation ideas

The idea would be to pass the certificates in secrets as described below.

mongodb:
  install: false
  uri: mongodb-svc:27017
  database: mongodb
  ssl:
    enabled: true
    certificateSecret: tls-certificate
    certificateAuthoritySecret: tls-ca-key-pair
lbroudoux commented 8 months ago

Hey!

Thanks for opening this issue. This is a good suggestion as it is asked by many different users for the Operator and for the Helm chart. I think we'll not be able to include this into the next 1.8.0 release that should land next week but I propose to include it just after in the 1.8.1. It will also be pushed on a nightly image as soon as committed.

What's your timeframe on this one? Any urgency?

maximilianb28 commented 8 months ago

Thanks for the quick response.

We are in some kind of hurry. We were looking for something before mid November. The nightly image would be wonderful for testing purposes as well. As long as this can be fully addressed in the future, we should be fine. Thanks again for taking this into consideration.