Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-47636: Add support for limits and uuid in cbsasl.json
The rate limit properties will be provided through cbsasl.json. This patch adds support for reading a file with the properties specified. The new per-user entry looks like: { "limits": { "egress_mib_per_min": 1, "ingress_mib_per_min": 1, "num_ops_per_min": 1, "num_connections": 1 }, "n": "username", "sha512": { "h": "base64 encoded sha512 hash of the password", "s": "base64 encoded salt", "i": iteration-count }, "sha256": { "h": "base64 encoded sha256 hash of the password", "s": "base64 encoded salt", "i": iteration-count }, "sha1": { "h": "base64 encoded sha1 hash of the password", "s": "base64 encoded salt", "i": iteration-count }, "plain": "base64 encoded hex version of sha1 hash of plain text password", "uuid": "00000000-0000-0000-0000-000000000000" } If no value is set for a limit it is set to 0 (unlimited) Change-Id: I3b8bbdcbac01bf985e501e042020c004cad07216 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/158413 Reviewed-by: Dave Rigby <daver@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
- Loading branch information
Showing
8 changed files
with
201 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.