-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Service Arch
-
Fully Compatible
-
Security 2023-12-25
-
147
With the introduction of generic logging in SERVER-71100, the construction and access to RestrictionEnvironment is implemented by each Session in Session::getAuthEnvironment. The previous implementation of RestrictionEnvironment relies on SockAddrs which are used in CommonAsioSession.
This ticket involves figuring out how GRPCSession can fit into or work around the security related concepts such as RestrictionEnvironment.
Along with the implementation of Session::getAuthEnvironment, complete the linked TODO found in the enterprise modules by removing the cast to CommonAsioSession. The need for this cast came from the logging restrictions promised by audit logs to be a certain form for customer logging ingestion e.g.
{ ... , local: {ip: '127.0.0.1', port: 27017}, remote: {ip: '::1', port: 12345}, ... }