Files
nats-server/test/configs/auths.conf
2016-11-21 15:07:09 -08:00

31 lines
620 B
Plaintext

# Copyright 2016 Apcera Inc. All rights reserved.
# Our role based permissions.
# Admin can do anything.
ADMIN = {
publish = ">"
subscribe = ">"
}
# Can do requests on req.foo or req.bar, and subscribe to anything
# that is a response, e.g. _INBOX.*
#
# Notice that authorization filters can be singletons or arrays.
REQUESTOR = {
publish = ["req.foo", "req.bar"]
subscribe = "_INBOX.*"
}
# Default permissions if none presented. e.g. Joe below.
DEFAULT_PERMISSIONS = {
publish = "SANDBOX.*"
subscribe = ["PUBLIC.>", "_INBOX.>"]
}
# This is to benchmark pub performance.
BENCH = {
publish = "a"
}