-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathauth.conf.example
56 lines (44 loc) · 887 Bytes
/
auth.conf.example
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
47
48
49
50
51
52
53
54
55
56
### Example puppet master REST API ACL
### Puppet docs: http://docs.puppetlabs.com/guides/rest_auth_conf.html
### Example for UNAUTHENTICATED connection from 127.0.0.1 (localhost)
path ~ ^/catalog/([^/]+)$
auth any
method find
allow $1
allow_ip 127.0.0.1
path /certificate_request
auth any
method find, search, save
allow *
path /certificate_status
auth any
method find, search
allow_ip 127.0.0.1
path /facts
auth any
method find, search
allow_ip 127.0.0.1
path ~ ^/node/([^/]+)$
auth any
method find
allow $1
allow_ip 127.0.0.1
### Example for AUTHENTICATED connection using client SSL cert "api"
path ~ ^/catalog/([^/]+)$
method find
allow $1
allow api
path /certificate_request
auth any
method find, search, save
allow *
path /certificate_status
method find, search
allow api
path /facts
method find, search
allow api
path ~ ^/node/([^/]+)$
method find
allow $1
allow api