Company
Date Published
Author
Tyler Mitchell - Senior Product Marketing Manager
Word count
905
Language
English
Hacker News points
None

Summary

Couchbase Server 5.0 introduces significant updates to its authentication features, shifting from bucket-based passwords to a more secure role-based access control system. This change necessitates minor alterations in client connection codes across various SDKs such as Java, .NET, Node.js, PHP, Python, Go, and C. The new model requires users to set up roles and access rights for specific users who can connect with passwords, eliminating passwordless buckets except for those migrated from earlier versions. Users can manage authentication through two main approaches: including username and password in the connection parameters or utilizing the Authenticator class to handle multiple buckets more efficiently. The Authenticator method decouples authentication from the Bucket URI, allowing for a more streamlined connection to clusters, and examples are provided for different programming languages. These enhancements are part of the pre-production server code, and users are encouraged to update their SDK libraries to leverage these new features.