couchdb-lucene icon indicating copy to clipboard operation
couchdb-lucene copied to clipboard

only the admins should be allowed to do index maintenance

Open anandology opened this issue 14 years ago • 1 comments

couchdb-lucene index maintanance operations like _optimize, _expunge and _cleanup should be accessible only with the admin credentials.

For exampe, my couchdb database doesn't allow me do _compact without admin credentials, but allowes me to _optmize couchdb-lucene index.

$ curl -X POST http://localhost:15984/editions/_compact
{"error":"unauthorized","reason":"You are not a db or server admin."}
$ curl -X POST http://localhost:15984/editions/_fti/_design/seeds/by_seed/_optimize
{"ok":true}

anandology avatar Nov 15 '10 04:11 anandology

It seems you have set the authentication credentials in the couchdb-lucene.ini file. I think there is no way to manage that...

drlinux avatar Sep 15 '16 09:09 drlinux