Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

build: add tls for mongo in deployment #754

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

build: add tls for mongo in deployment #754

wants to merge 14 commits into from

Conversation

aneojgurhem
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2024

CLA assistant check
All committers have signed the CLA.

@Nico-dl05 Nico-dl05 force-pushed the jg/tls branch 3 times, most recently from 49b35f5 to 55fe2d3 Compare December 19, 2024 10:58
Comment on lines 184 to 190
if (!File.Exists(mongoOptions.CAFile))
{
logger.LogError("CA certificate Mongo file not found at {path}",
mongoOptions.CAFile);
throw new FileNotFoundException("CA certificate Mongo file not found",
mongoOptions.CAFile);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should be part of the CreateCallback method.


settings.SslSettings = new SslSettings
{
ClientCertificates = new X509Certificate2Collection(authority),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used for mTLS, but we do not support mTLS for now. It should most likely be unset.

return isTrusted;
}

public static class CertificateValidatorFactory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to have a nested class for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

4 participants