Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
5
-
SDK12: Scp Fnc, FIT, Misc
Description
Suggested Release Note:
Reduced the rate at which messages appear in the server's `http_access.log` when invalid credentials are provided.
An SDK configured with bad credentials spams the server with HTTP requests for "/pools/default/b/<bucket-name>". It would be nice to throttle these requests somehow.
To reproduce:
public static void main(String... args) throws Exception { |
Cluster cluster = Cluster.connect("127.0.0.1", "Administrator", "bad-password"); |
Bucket bucket = cluster.bucket("default"); |
MINUTES.sleep(10); |
}
|
and tail var/lib/couchbase/logs/http_access.log
Edit: This can also occur when an SDK has correct credentials, but that user does not have RBAC to access the bucket. If they have access to no buckets, 401 Unauthorized will be returned, if they have access to another bucket 403 Forbidden will be returned.
Attachments
Issue Links
- relates to
-
JVMCBC-1506 Improve backoff/retry when user does not have permission to access bucket
- Closed