-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical - P2
-
Affects Version/s: None
-
Component/s: Authentication
Use Case
As a... Node Driver developer whose application supplies OIDC_HUMAN_CALLBACK and ALLOWED_HOSTS programmatically but consumes the conn string from a less-trusted source
I want... the driver to enforce ALLOWED_HOSTS no matter which auth mechanism properties the conn string adds
So that... the user's OIDC token is not sent to a host outside ALLOWED_HOSTS
User Experience
- After the fix, MongoClient constructor should throw if both ENVIRONMENT and OIDC_CALLBACK OR OIDC_HUMAN_CALLBACK are specified. This is behavior mandated by spec, but which the Node Driver does not currently match.
Dependencies
- https://jira.mongodb.org/browse/SECBUG-5631
- this is a CVE fix, so the fix must be private and should go out at the same time as the CVE
Risks/Unknowns
- none
Acceptance Criteria
Implementation Requirements
- throw exception if both ENVIRONMENT and OIDC_CALLBACK/OIDC_HUMAN_CALLBACK are specified
Testing Requirements
- add new integration tests (or unit tests if integration isn't feasible)
Documentation Requirements
- none
Follow Up Requirements
- none
There are no Sub-Tasks for this issue.