-
Notifications
You must be signed in to change notification settings - Fork 114
/
server-security-incl.xml
46 lines (34 loc) · 1.44 KB
/
server-security-incl.xml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<server>
<!-- This is a sample for using your own registry for securing the microservice -->
<basicRegistry id="basic" realm="testerBasicRegistry">
<!-- !!!!!! IMPORTANT !!!!!! -->
<!-- THIS USER MUST ALWAYS BE INCLUDED ALONG WITH ANY OTHER USER YOU WHISH TO ADD -->
<!-- THIS IS THE USER AND PASSWORD THAT IS USED FOR ADDING SECURITY TO THE TESTER WEBHOOK ENDPOINTS -->
<user name="${env.TESTER_WEBHOOK_USERNAME}" password="${env.TESTER_WEBHOOK_PASSWORD}"/>
<!-- replace / add users as you like -->
<user name="admin-user" password="admin-pass"/>
<user name="editor-user" password="editor-pass"/>
<user name="operator-user" password="operator-pass"/>
<user name="viewer-user" password="viewer-pass"/>
<!-- Access to all REST calls -->
<group name="${env.ROLE_NAME_ADMINISTRATOR}">
<!-- replace / add users as you like -->
<member name="admin-user"/>
</group>
<!-- Access to all REST calls -->
<group name="${env.ROLE_NAME_EDITOR}">
<!-- replace / add users as you like -->
<member name="editor-user"/>
</group>
<!-- Access only to REST GETs and Job REST calls -->
<group name="${env.ROLE_NAME_OPERATOR}">
<!-- replace / add users as you like -->
<member name="operator-user"/>
</group>
<!-- Access only to REST GETs -->
<group name="${env.ROLE_NAME_VIEWER}">
<!-- replace / add users as you like -->
<member name="viewer-user"/>
</group>
</basicRegistry>
</server>