New query - couchbase user accounts?

I'm just starting to learn Couchbase. I would like to set up a combination of username and password to be able to use node.js in my application to connect to a specific bucket - I searched the network, but I find so little information, I'm starting to think that everything is fine with me .

Can I set up user accounts in couchbase clans that have bucket privileges?

thanks

+6
source share
1 answer

Let it start from the very beginning. First of all, couchbase has one (only for this time) administrator account. He can access all buckets, create and delete them. This is similar to the superuser account (i.e. in PostgreSql it is called postgres by default).

Now go to the buckets. A bucket is some analogue of a database in an RDBMS. It also has a username and password (note that bucket username = bucket name ). Thus, a client that allows the use of the bucket name and bucket password can only access operations with this bucket. Typically, only one bucket is required per application.

So, if you are looking for the opportunity to create one couchbase user who can access a certain subset of buckets - there is no possibility for this (at least for now). Now you can use the administrator account to access all buckets and one separate account for each bucket.

+10
source

Source: https://habr.com/ru/post/959182/


All Articles