-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
fix: implem fixed callback & terraform
49b35f5
to
55fe2d3
Compare
1e657f8
to
75b9bee
Compare
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); | ||
} |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
No description provided.