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

new TLS handshake log line disobeys --quiet

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: 6.1.0-rc3
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Hide

      Start the shell with --quiet and connect via TLS:

      /Users/milkie/bin/mongo mongodb://db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-5.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-6.us-east-1.aws.cloud-dev.10gen.cc:27298/ --tls --quiet --tlsCAFile docker/ca/ca-mongodb-signatory.pem
      {"t":{"$date":"2022-10-03T19:55:43.657Z"},"s":"I",  "c":"NETWORK",  "id":6723803, "ctx":"js","msg":"Accepted TLS connection from peer","attr":{"peerSubjectName":"CN=db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc","cipher":49200}}
      MongoDB Enterprise mongos>
      

      (expected behavior would be to just see the shell prompt on the first line with no log lines printed)

      Show
      Start the shell with --quiet and connect via TLS: /Users/milkie/bin/mongo mongodb://db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-5.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-6.us-east-1.aws.cloud-dev.10gen.cc:27298/ --tls --quiet --tlsCAFile docker/ca/ca-mongodb-signatory.pem {"t":{"$date":"2022-10-03T19:55:43.657Z"},"s":"I", "c":"NETWORK", "id":6723803, "ctx":"js","msg":"Accepted TLS connection from peer","attr":{"peerSubjectName":"CN=db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc","cipher":49200}} MongoDB Enterprise mongos> (expected behavior would be to just see the shell prompt on the first line with no log lines printed)
    • Service Arch 2022-10-31, Service Arch 2022-11-14

      in SERVER-67238, new log lines were added that disobey the --quiet flag in the shell, thus breaking existing internal scripts that parse shell output.

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: