You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Did some digging and noticed the alpha receiver/mongodbreceiver was checking for a non-nil error from configtls.LoadTLSConfig() before inputting into the mongo-go-driver
Steps to reproduce
Set up a mongodb 4.4 instance with these settings:
And the mongod logs indicate a problem from the client:
{"t":{"$date":"2022-07-01T22:21:27.345+00:00"},"s":"I", "c":"NETWORK", "id":22988, "ctx":"conn8528","msg":"Error receiving request from client. Ending connection from remote","attr":{"error":{"code":141,"codeName":"SSLHandshakeFailed","errmsg":"The server is configured to only allow SSL connections"},"remote":"127.0.0.1:58444","connectionId":8528}}
Describe the bug
Did some digging and noticed the alpha
receiver/mongodbreceiver
was checking for a non-nil error fromconfigtls.LoadTLSConfig()
before inputting into themongo-go-driver
Steps to reproduce
Set up a mongodb 4.4 instance with these settings:
And the mongod logs indicate a problem from the client:
What did you expect to see?
Before:
After:
What did you see instead?
Metrics collection did work through TLS
What version did you use?
Version 0.54.0 version of the
mongodbreceiver
What config did you use?
Environment
OS: "RHEL 7.9"
Additional context
Will author a PR shortly to resolve this!
The text was updated successfully, but these errors were encountered: