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