[SERVER-41601] mongocryptd pid file should contain connectivity information Created: 10/Jun/19  Updated: 29/Oct/23  Resolved: 17/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.14, 4.2.0-rc3

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
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Security 2019-07-01
Participants:

 Description   

mongocryptd currently only writes a single integer as a string to its pid file. Drivers need to more information to use mongocryptd as a singleton process.

Mongocryptd needs to write the following information as JSON to its pid file:

{
    port : <int>
    domainSocket: <string> # Not present on Windows
    pid : <int>
}
port - is the port that mongocryptd is running on
pid - is the process number of mongocryptd
domainSocket - path to unix domain socket, not present on Windows



 Comments   
Comment by Githook User [ 24/Jun/19 ]

Author:

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

Message: SERVER-41601 mongocryptd pid file should contain connectivity information

(cherry picked from commit 9382259ce8399ce75c17d517112ac9bab230b01d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/22c6863ca62d5e3e53c395487dace58d0da1fb6a

Comment by Githook User [ 24/Jun/19 ]

Author:

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

Message: SERVER-41601 Fix Lint

(cherry picked from commit 7f7f01b14bb4d84bfc76b3556627ae4ee36adf59)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/98bdf6770555251ed81683dcd7693e7b3127f412

Comment by Githook User [ 24/Jun/19 ]

Author:

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

Message: SERVER-41601 mongocryptd pid file should contain connectivity information

(cherry picked from commit dd11402a3fa24d7d5d1e0c27416af5f8f8a7f973)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/737becbec49a0102c857043eebace832dddc3e6b

Comment by Githook User [ 17/Jun/19 ]

Author:

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

Message: SERVER-41601 Fix Lint
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/7f7f01b14bb4d84bfc76b3556627ae4ee36adf59

Comment by Githook User [ 17/Jun/19 ]

Author:

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

Message: SERVER-41601 mongocryptd pid file should contain connectivity information
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/dd11402a3fa24d7d5d1e0c27416af5f8f8a7f973

Comment by Githook User [ 17/Jun/19 ]

Author:

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

Message: SERVER-41601 mongocryptd pid file should contain connectivity information
Branch: master
https://github.com/mongodb/mongo/commit/9382259ce8399ce75c17d517112ac9bab230b01d

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