summaryrefslogtreecommitdiffstats
path: root/security-utils/src/test/resources/transport-security-options-with-authz-rules.json
diff options
context:
space:
mode:
Diffstat (limited to 'security-utils/src/test/resources/transport-security-options-with-authz-rules.json')
-rw-r--r--security-utils/src/test/resources/transport-security-options-with-authz-rules.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/security-utils/src/test/resources/transport-security-options-with-authz-rules.json b/security-utils/src/test/resources/transport-security-options-with-authz-rules.json
new file mode 100644
index 00000000000..ea0bee38c8a
--- /dev/null
+++ b/security-utils/src/test/resources/transport-security-options-with-authz-rules.json
@@ -0,0 +1,29 @@
+{
+ "files" : {
+ "private-key" : "/path/to/key.pem",
+ "certificates" : "/path/to/cert.pem",
+ "ca-certificates" : "/path/to/ca-certs.pem"
+ },
+ "authorized-peers" : [ {
+ "required-credentials" : [ {
+ "field" : "CN",
+ "must-match" : "mycfgserver"
+ }, {
+ "field" : "SAN_DNS",
+ "must-match" : "*.suffix.com"
+ }, {
+ "field" : "SAN_URI",
+ "must-match" : "myscheme://resource/path/"
+ } ],
+ "name" : "cfgserver",
+ "description" : "cfgserver policy description",
+ "roles" : [ "myrole" ]
+ }, {
+ "required-credentials" : [ {
+ "field" : "CN",
+ "must-match" : "hostname"
+ } ],
+ "name" : "node",
+ "roles" : [ "anotherrole" ]
+ } ]
+} \ No newline at end of file