forked from futurice/terraform-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.template.yml
57 lines (53 loc) · 1.26 KB
/
rules.template.yml
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
57
- id: camunda-apps
upstream:
url: ${camunda_url}
preserve_host: false
match:
url: ${oathkeeper_url}/camunda/<.*>
methods: ["GET", "POST", "DELETE", "PUT"]
authorizer:
handler: allow
authenticators:
- handler: anonymous
mutators: [{handler: noop}]
errors: [{handler: json}]
- id: camunda-welcome
upstream:
url: ${camunda_url}
preserve_host: false
match:
url: ${oathkeeper_url}/camunda-welcome/<.*>
methods: ["GET", "POST", "DELETE", "PUT"]
authorizer:
handler: allow
authenticators:
- handler: anonymous
mutators: [{handler: noop}]
errors: [{handler: json}]
- id: camunda-invoice
upstream:
url: ${camunda_url}
preserve_host: false
match:
url: ${oathkeeper_url}/camunda-invoice/<.*>
methods: ["GET", "POST", "DELETE", "PUT"]
authorizer:
handler: allow
authenticators:
- handler: anonymous
mutators: [{handler: noop}]
errors: [{handler: json}]
# Protected
- id: camunda-rest
upstream:
url: ${camunda_url}
preserve_host: false
match:
url: ${oathkeeper_url}/engine-rest/<.*>
methods: ["GET", "POST", "DELETE", "PUT"]
authorizer:
handler: allow
authenticators:
- handler: jwt
mutators: [{handler: noop}]
errors: [{handler: json}]