lostnet commented on issue #959: correct initial fetch() of _security to use 
credentials (#929)
URL: https://github.com/apache/couchdb-fauxton/pull/959#issuecomment-324001048
 
 
   @Antonio-Maranhao how about if I assume the db is [secure by 
default](https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;a=blob;f=src/couch_db_updater.erl;h=78726358e2a2edfe7edafc9f60cf218252e54d55;hb=78726358e2a2edfe7edafc9f60cf218252e54d55#l1444),
 which I think in JS is:
   ```
   if (json.error && json.reason) {
     dispatch(receivedPermissions({admins:{roles:["_admin"]},  users:{ 
roles:["_admin"]} }));
     throw new Error(json.reason);
   }
   ```
   The user can always try to maintain whatever access they need to keep in 
their first POST to _security, but should be less likely to open up a window of 
attack.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to