Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35032

Non-SSL connections to requireSSL instances get non-informative log message in 3.6.4

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.7
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
    • Fully Compatible
    • Platforms 2018-07-16, Platforms 2018-07-30

      With MongoDB 3.4.15, mongod running with mode: requireSSL, connection attempts without SSL get a nicely informative mongod log message: 

      2018-05-16T15:38:07.351-0500 D -        [conn2] User Assertion: 17189:The server is configured to only allow SSL connections src/mongo/util/net/message_port.cpp 154

      In 3.6.4, the log message in this case is:

      2018-05-15T14:20:13.067+0000 I NETWORK [conn3] Error receiving request from client: SSLHandshakeFailed: SSLHandshakeFailed. Ending connection from (connection id: 3)

      You can see that the 3.6.4 log message is much less informative and clear about the cause of the connection failure. Can we make the log message mention that it's because the server is configured to require SSL connections?

            jonathan.reams@mongodb.com Jonathan Reams
            spencer.brown@mongodb.com Spencer Brown
            0 Vote for this issue
            8 Start watching this issue