Details
-
Task
-
Resolution: Fixed
-
Critical
-
4.5.0
-
Security Level: Public
Description
The following functions are deprecated and will be removed from cbauth at the end of watson:
Creds.IsAdmin, Creds.CanReadAnyMetadata, Creds.IsROAdmin, Creds.CanAccessBucket, Creds.CanReadBucket, Creds.CanDDLBucket
All these calls should be replaced with Creds.IsAllowed call to test appropriate permission for REST API
Also the way authentication/authorization failure should be handled had changed.
Please refer to please also refer to "changes in cbauth" section of the document for more info:
https://docs.google.com/document/d/1oorpsTFMvF2kk_XuC8cJoxS5xQtk-bInV_OkoED8050
Deprecated functions are used in these 2 files:
goproj/src/github.com/couchbase/query/datastore/couchbase/couchbase.go
goproj/src/github.com/couchbase/query/clustering/couchbase/clustering_cb.go
Attachments
Issue Links
For Gerrit Dashboard: MB-17834 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
61991,3 | MB-17834 Switch to RBAC authorization scheme. | master | query | Status: MERGED | +2 | +1 |
62054,3 | MB-17834 Change clustering code to use new RBAC method. | master | query | Status: MERGED | +2 | +1 |
62063,3 | MB-17834 Support mixed credentials from Basic auth and creds array at once. | master | query | Status: MERGED | +2 | +1 |