[SERVER-38281] TLS info message isn't captured into system log Created: 27/Nov/18  Updated: 29/Oct/23  Resolved: 05/Dec/18

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 4.0.5, 4.1.7

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Requested:
v4.0
Sprint: Security 2018-12-17
Participants:

 Description   

Because we are logging a TLS message in the command line processing code itself, the logging occurs prior to the parsing of the --logpath parameter. This means any log messages go to stdout instead of the log file. This is apparent if you start mongod with --logpath:

/data/ent/mongo: ./mongod --replSet foo --dbpath /data/db/r0 -v --logpath ./t.log
2018-11-27T16:13:56.372-0500 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'

(and then no other terminal messages appear)



 Comments   
Comment by Githook User [ 08/Dec/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-38281 Defer TLS-1.0 auto disable warning till log startup

(cherry picked from commit dfa007f46708ade8f66ae64bbcb9fd5744f96602)
Branch: v4.0
https://github.com/mongodb/mongo/commit/ccc1c21f445de1e9076011f3e7370d30bec8c552

Comment by Githook User [ 06/Dec/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-38281 Defer TLS-1.0 auto disable warning till log startup
Branch: master
https://github.com/mongodb/mongo/commit/dfa007f46708ade8f66ae64bbcb9fd5744f96602

Comment by Githook User [ 05/Dec/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: Revert "SERVER-38281 Defer TLS-1.0 auto disable warning till log startup"

This reverts commit e0932edfcb5704629421b5cf6cfc5457c70f0d6e.
Branch: master
https://github.com/mongodb/mongo/commit/1af2751f9d17ab303043dfa81d9485b4110845ec

Comment by Githook User [ 05/Dec/18 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: SERVER-38281 Defer TLS-1.0 auto disable warning till log startup
Branch: master
https://github.com/mongodb/mongo/commit/e0932edfcb5704629421b5cf6cfc5457c70f0d6e

Generated at Thu Feb 08 04:48:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.