aboutsummaryrefslogtreecommitdiffstats
path: root/security-utils/src/test/resources/transport-security-options-with-authz-rules.json
blob: ea0bee38c8a20e8cf891c4f9585beac747412928 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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" ]
  } ]
}