-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2e-gateway.yaml
156 lines (156 loc) · 5.98 KB
/
e2e-gateway.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
static_resources:
listeners:
- name: listener_http
address:
socket_address:
address: 0.0.0.0
port_value: 8080
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains:
- "*"
routes:
- match:
prefix: "/create-post"
route:
cluster: post_service
- match:
prefix: "/delete-post"
route:
cluster: post_service
- match:
prefix: "/delete-all-posts"
route:
cluster: post_service
- match:
prefix: "/update-post"
route:
cluster: post_service
- match:
prefix: "/create-reaction"
route:
cluster: post_service
- match:
prefix: "/delete-reaction"
route:
cluster: post_service
- match:
prefix: "/get-reactions"
route:
cluster: post_service
- match:
prefix: "/delete-reactions"
route:
cluster: post_service
- match:
prefix: "/create-journey"
route:
cluster: journey_service
- match:
prefix: "/view-journeys-user"
route:
cluster: journey_service
- match:
prefix: "/delete-journey"
route:
cluster: journey_service
- match:
prefix: "/delete-journeys-user"
route:
cluster: journey_service
- match:
prefix: "/view-posts"
route:
cluster: post_service
- match:
prefix: "/view-posts-user"
route:
cluster: post_service
- match:
prefix: "/view-journey"
route:
cluster: journey_service
http_filters:
- name: envoy.filters.http.jwt_authn
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication
providers:
auth0-jwt:
issuer: "https://dev-hxsl4k6mw7xspicu.eu.auth0.com/"
remote_jwks:
http_uri:
uri: "https://dev-hxsl4k6mw7xspicu.eu.auth0.com/.well-known/jwks.json"
cluster: auth0_jwks
timeout: 5s
forward: true
from_headers:
- name: "Authorization"
value_prefix: "Bearer "
- name: envoy.filters.http.cors
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
cors_policy:
allow_origin_string_match:
- exact: "http://localhost:3000"
allow_methods: "GET,POST,DELETE,PUT"
allow_headers: "content-type"
expose_headers: "content-type"
- name: envoy.filters.http.router
clusters:
- name: post_service
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: post_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: post-service-service
port_value: 8080
- name: journey_service
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: journey_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: journey-service-service
port_value: 8080
- name: auth0_jwks
connect_timeout: 5s
type: LOGICAL_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: auth0_jwks
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: dev-hxsl4k6mw7xspicu.eu.auth0.com
port_value: 443
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
"@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
admin:
access_log_path: /dev/null
address:
socket_address:
address: 0.0.0.0
port_value: 9901