From 970dc93b7e3797063c3e83580f14fab9c4d8e01b Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Mon, 21 Nov 2016 15:07:09 -0800 Subject: [PATCH] Add in missing file --- test/configs/auths.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/configs/auths.conf diff --git a/test/configs/auths.conf b/test/configs/auths.conf new file mode 100644 index 00000000..e3f37d20 --- /dev/null +++ b/test/configs/auths.conf @@ -0,0 +1,30 @@ +# 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" +}