Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make MO client certificate configurable #298

Open
ShaneHarvey opened this issue Mar 7, 2023 · 0 comments
Open

Make MO client certificate configurable #298

ShaneHarvey opened this issue Mar 7, 2023 · 0 comments

Comments

@ShaneHarvey
Copy link
Collaborator

When MO starts TLS clusters it always connects with the client certificate in $MONGO_ORCHESTRATION_HOME/lib/client.pem.

This doesn't make sense because 1) the server does not require client certificates by default so it's pointless for MO to connect with one and 2) the user can configure the cluster with other certificates via the sslParams, eg:

    "sslParams": {
        "sslCAFile": "/path/to/ca.pem", 
        "sslOnNormalPorts": true, 
        "sslPEMKeyFile": "/path/to/server.pem", 
        "sslWeakCertificateValidation": true
    }

MO should allow the user to configure the client certificate via sslParams too. The tlsCertificateKeyFile option can already be used to configure the mongo[ds] client cert. Perhaps MO can use that cert if it's provided and otherwise not use any client cert at all.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant