MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Set user password expiry every 30 days

Is there a way to set user password expiry every 30 days?

Well, it seems that the feature request was closed.

https://jira.mongodb.org/browse/SERVER-3197

And i cant find anything in the documentation regarding that functionally

Alternatives:
Use x509 and client certificates that expire per your timeframe requirements.

EE:
LDAP
Kerberos

:wave: Hello @Mario_Pereira

@Geo_Banaag

As @chris noted, there are several ways to achieve credential expiry depending on the MongoDB edition you are using (Community, Enterprise, or Atlas).

Password expiration is typically only one aspect of enterprise security requirements which often also include password complexity, password history (to prevent reuse), and account lockout policies.

Auth options with expiry and more advanced policies include:

MongoDB Atlas also supports temporary database users which will be deleted after an expiry of up to 1 week. That’s probably not suitable for your requirements, but might be of interest for related use cases.

Regards,
Stennie

1 Like