[SERVER-76619] Add setParameter to enable libcurl's verbose logging Created: 27/Apr/23  Updated: 29/Oct/23  Resolved: 05/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 4.4.22, 5.0.18, 7.0.0-rc1, 6.0.7

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-16100 [SERVER] Add setParameter to enable l... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Sprint: Security 2023-05-15
Participants:

 Description   

We should add callbacks for libcurl's CURLOPT_DEBUGFUNCTION to log to our logging system. The set parameter should set CURLOPT_VERBOSE in createCurlEasyHandle in src/mongo/util/net/http_client_curl.cpp
 
We should log CURLINFO_TEXT, CURLINFO_HEADER_IN, and CURLINFO_HEADER_OUT. But we should check what libcurl does by default to stdout and align towards.

 



 Comments   
Comment by Githook User [ 10/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76619 Add setParameter to enable libcurl's verbose logging

(cherry picked from commit bf9e8a4844e720b90cc6a939b23e08f7aeb0df20)
Branch: v7.0
https://github.com/mongodb/mongo/commit/aa6a341efaeca3f18e00aab0e8d88e3a0a497d90

Comment by Githook User [ 10/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76619 Add setParameter to enable libcurl's verbose logging

(cherry picked from commit bf9e8a4844e720b90cc6a939b23e08f7aeb0df20)
Branch: v6.0
https://github.com/mongodb/mongo/commit/24176109d78542f109739a19996276e5def54f11

Comment by Githook User [ 10/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76619 Add setParameter to enable libcurl's verbose logging

(cherry picked from commit bf9e8a4844e720b90cc6a939b23e08f7aeb0df20)
Branch: v5.0
https://github.com/mongodb/mongo/commit/30fd31c8e41553491e686b76cf7d5732ad9b96cd

Comment by Githook User [ 10/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76619 Add setParameter to enable libcurl's verbose logging

(cherry picked from commit bf9e8a4844e720b90cc6a939b23e08f7aeb0df20)
Branch: v4.4
https://github.com/mongodb/mongo/commit/fc832685b99221cffb1f5bb5a4ff5ad3e1c416b2

Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76619 Add setParameter to enable libcurl's verbose logging
Branch: master
https://github.com/mongodb/mongo/commit/bf9e8a4844e720b90cc6a939b23e08f7aeb0df20

Generated at Thu Feb 08 06:33:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.