-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml
289 lines (229 loc) · 8.66 KB
/
config.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
# Configuration for the tracing
tracing:
# The logging level. Available options:
# - trace
# - debug
# - info
# - warn
# - error
# Default: info
log_level: debug
# Display the thread name in the logs.
# Default: true
display_thread_names: true
# Display the thread ID in the logs.
# Default: false
display_thread_ids: true
opentelemetry:
# Enables OpenTelemetry integration.
# Default: false
enabled: true
# Service name used for the tracing.
# Default: agp-data-plane
service_name: "agp-data-plane"
# Service version used for the tracing.
# Default: v0.1.0
service_version: "v0.1.0"
runtime:
# The number of cores to use for the runtime.
# Default: 0 (use all available cores)
n_cores: 0
# The name of the thread(s) that will run the runtime.
# Default: "gateway"
thread_name: "data-plane-gateway"
# The timeout for the runtime to wait for the tasks to finish before shutting down.
# Default: 10s
drain_timeout: 10s
# Configuration for the services
services:
# Configuration for the gateway service.
# This is the main service that will handle the incoming requests.
gateway/0:
# GRPC Server configuration
server:
# The endpoint to listen on.
# No default, this must be specified.
endpoint: "0.0.0.0:46357"
# Authentication configuration
auth:
# Basic authentication configuration
basic:
# The username for the basic authentication.
# No default, this must be specified.
username: "username"
# The password for the basic authentication.
# No default, this must be specified.
password: "password"
# TLS configuration
tls:
# Whether to enable TLS.
# Default: true
insecure: false
# Enforce client authentication using mTLS, and use
# this CA certificate to verify the client certificate.
# client_ca_file:
# client_ca_pem:
# Path to the CA certificate file.
# If not specified, it will use the system CA certs pool.
# This is used to verify the client certificate in case of mTLS
ca_file: "testdata/ca.crt"
# PEM encoded CA certificate.
# If not specified, it will use the system CA certs pool.
# This is used to verify the client certificate in case of mTLS
# ca_pem: ""
# The path to the certificate file, if TLS is enabled.
# No default, this (or alternatively cert_pem) must be specified.
cert_file: "testdata/server.crt"
# The path to the key file, if TLS is enabled.
# No default, this (or alternatively key_pem) must be specified.
key_file: "testdata/server.key"
# The certificate in PEM format, if TLS is enabled.
# No default, this (or alternatively cert_file) must be specified.
# cert_pem: ""
# The key in PEM format, if TLS is enabled.
# No default, this (or alternatively key_file) must be specified.
# key_pem: ""
# Whether to include the system CA certs pool.
# Default: false
include_system_ca_certs_pool: false
# TLS Version. Available options:
# - tls1.2
# - tls1.3
# Default: tls1.3
tls_version: "tls1.3"
# The certificate reload interval. If set, the server will reload the certificate
# every time the interval is reached.
# reload_interval: 10s
# Whether to enable HTTP/2 only.
# Default: true
http2_only: true
# Maximum size (in MiB) of messages accepted by the server.
# Default: It will default from the underlying transport.
# max_recv_msg_size: 4
# Max concurrent streams per connection.
# Default: 100
# max_concurrent_streams: 100
# Max header list size.
# Default: 16KiB
# max_header_list_size: 8192
# The read buffer size for the server.
# This is currently not used
# read_buffer_size: 4KiB
# The write buffer size for the server.
# This is currently not used
# write_buffer_size: 4KiB
# Keepalive configuration
keepalive:
# Sets the time after which an idle connection is closed.
# Default: 3600s
max_connection_idle: 7200s
# Sets the maximum amount of time a connection may exist before it will be closed.
# Default: 7200s
max_connection_age: 14400s
# Additional time given after MaxConnectionAge before closing the connection.
# Default: 300s
max_connection_age_grace: 300s
# Set the frequency of the keepalive ping.
# Default: 12ß0s
time: 120s
# Sets the amount of time the server waits for a keepalive ping ack.
# Default: 20s
timeout: 20s
# Authenticator configuration.
# This is not currently implemented, but its purpose is to specify an
# authenticator that can authenticate the messages before they are processed.
# authenticator: ""
# GRPC Clients configuration.
clients:
# The endpoint to connect to.
# No default, this must be specified.
- endpoint: "1.2.3.4:54321"
# Authentication configuration
auth:
# Basic authentication configuration
basic:
# The username for the basic authentication.
# No default, this must be specified.
username: "username"
# The password for the basic authentication.
# No default, this must be specified.
password: "password"
# Origin configuration
# Default: none
# origin: localhost
# Compression configuration.
# Default: none
# compression: none
# Rate limit configuration. The format is "<limit>/<duration>", with the duration expressed in seconds.
# Default: none
# rate_limit: 20/60 (20 requests every 60 seconds)
# Keepalive parameters
keepalive:
# Sets the TCP keepalive interval
# Default: 10s
tcp_keepalive: 60s
# Sets the http 2 keepalive interval
# Default: 60s
http2_keepalive: 60s
# The timeout duration for the keepalive
# Default: 10s
timeout: 10s
# Whether to permit keepalive without an active stream
# Default: false
permit_without_stream: false
# The timeout for the connection with the server
# Default is None
connection_timeout: 10s
# The timeout for each request
# Default is None
request_timeout: 10s
# The buffer size
# Default is None
buffer_size: 4096
# Additional headers to send with the request
# Default is None
headers:
x-header: value
# authentication configuration.
# not used yet
# auth:
# TLS configuration
tls:
# Whether to enable TLS.
# Default: false
insecure: true
# Whether to skip the server name verification.
# Default: false
insecure_skip_verify: false
# Path to the CA certificate file.
# If not specified, it will use the system CA certs pool.
ca_file: "testdata/ca.crt"
# PEM encoded CA certificate.
# If not specified, it will use the system CA certs pool.
# ca_pem: ""
# The path to the certificate file, if TLS is enabled.
# No default, this (or alternatively cert_pem) must be specified.
# Specifying this effectively enable mTLS.
# cert_file: "testdata/client.crt"
# The path to the key file, if TLS is enabled.
# No default, this (or alternatively key_pem) must be specified.
# Specifying this effectively enable mTLS.
# key_file: "testdata/client.key"
# The certificate in PEM format, if TLS is enabled.
# No default, this (or alternatively cert_file) must be specified.
# Specifying this effectively enable mTLS.
# cert_pem: ""
# The key in PEM format, if TLS is enabled.
# No default, this (or alternatively key_file) must be specified.
# Specifying this effectively enable mTLS.
# key_pem: ""
# TLS Version. Available options:
# - tls1.2
# - tls1.3
# Default: tls1.3
tls_version: "tls1.3"
# The certificate reload interval. If set, the client will reload the certificate
# every time the interval is reached.
# reload_interval: 10s