MongoDB X.509 Authentication Requires Review of Subject-to-User Mapping
An article on DEV Community argues that MongoDB's X.509 certificate authentication needs careful review of how certificate subjects map to database users. MongoDB authenticates an external user derived from a client certificate's subject, stored in the $external database, and authorization still depends on the roles granted to that user. The piece warns that a valid certificate from a trusted authority is not a complete identity, especially if a private CA lets teams request arbitrary subjects. It recommends treating the CA's issuance and naming policies as part of database authorization, tracking external users by owner and a stable identifier, and keeping roles aligned with the actual workload. It also cautions that certificates used between cluster members could be misused to authenticate as client users.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in