Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Newbie query - couchbase user accounts?

Tags:

couchbase

I'm only just starting to learn Couchbase. I'd like to set up a username/password combination to be able to use within my node.js app to connect to a particular bucket - I've been looking around on the net but am finding so little information that I'm starting to think that I've got this all wrong.

Is it possible to set up user accounts within couchbase clusters that have bucket-specific privileges?

Thanks

like image 529
Katya S Avatar asked Dec 02 '13 16:12

Katya S


1 Answers

Let's start from the beginning. First of all couchbase has one (only one at this time) administrator account. It can access all buckets, create and delete them. It's like superuser account (i.e. in PostgreSql it called postgres by default).

Now let's move on to buckets. Bucket is some analogue of database in RDBMS. It also has username and password (note, that bucket username = bucket name). So client that authorize using bucket name and bucket password can only access to operations to this bucket. Usally one application needs only one bucket.

So if you're looking for possibility to create one couchbase user that can access some subset of buckets - there is no option for this (at least now). Now it's only possible to use admin account to access all buckets and one individual account per bucket.

like image 162
m03geek Avatar answered Oct 28 '22 11:10

m03geek