[SERVER-52862] Move logAuthentication hooks to AuthenticationSession Created: 13/Nov/20  Updated: 29/Oct/23  Resolved: 18/Feb/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Major - P3
Reporter: Spencer Jackson Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-52863 Instantiate AuthenticationSession dur... Closed
depends on SERVER-54215 Rewire sasl/authenticate library depe... Closed
depends on SERVER-54218 Update authentication counter pattern... Closed
Duplicate
is duplicated by SERVER-54455 Coverity analysis defect 117647: Unin... Closed
is duplicated by SERVER-12765 Audit username for x.509 cluster auth... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2021-01-25, Security 2021-02-08, Security 2021-02-22
Participants:

 Description   

The AuthenticationSession is a RAII object which lives for the duration of an authentication attempt. Events that need to happen over the course of an Authentication should be migrated to its lifecycle methods, so that maintainers of saslStart and saslContinue don't need to think about them as much. The session will need methods to inform it when attempts succeed, fail(with a code), or learn the authentication names of clients.

We should move calls to audit::logAuthentication and auth counter increments to the object.



 Comments   
Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-52862 Move logAuthentication hooks to AuthenticationSession
Branch: master
https://github.com/mongodb/mongo/commit/25282595086780f95fd12a3c2cdd89b960312c7e

Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-52862 Move logAuthentication hooks to AuthenticationSession
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1b2cc71f7f0f556b198eeccb4c52841d6b2ebe46

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