Skip to content

Commit 65d6166

Browse files
committed
OpenTelemetry security
1 parent 7286d68 commit 65d6166

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

v2.6/proxy.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
"description": "Enterprise Only. Limits the maximum number of bytes a user can send to the endpoint. `0` means no limit. You can also set this value globally at the [service level](/docs/enterprise/service-settings/router-options/#max_payload).\n\nSee: https://www.krakend.io/docs/service-settings/router-options/",
2828
"type": "integer",
2929
"default": 0
30+
},
31+
"decompress_gzip": {
32+
"title": "Decompress Gzip",
33+
"description": "Enterprise Only. Decompresses any Gzipped content before sending it to the backend when the `Content-Encoding` has `gzip` in the first position. You can also set this value globally at the [service level](/docs/enterprise/service-settings/router-options/#max_payload).\n\nSee: https://www.krakend.io/docs/service-settings/router-options/",
34+
"type": "boolean",
35+
"default": false
3036
}
3137
}
3238
}

v2.6/router.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
"type": "integer",
6262
"default": 0
6363
},
64+
"decompress_gzip": {
65+
"title": "Decompress Gzip",
66+
"description": "**Requires Enterprise**. Decompresses any Gzipped content before sending it to the backend when the `Content-Encoding` has `gzip` in the first position. You can also set this value [per endpoint](/docs/enterprise/endpoints/maximum-request-size/).\n\nSee: https://www.krakend.io/docs/service-settings/router-options/",
67+
"type": "integer",
68+
"default": 0
69+
},
6470
"disable_redirect_trailing_slash": {
6571
"title": "Disable redirect trailing slash",
6672
"description": "Disables automatic redirection if the current route can't be matched but a handler for the path with (without) the trailing slash exists.\n\nSee: https://www.krakend.io/docs/service-settings/router-options/",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://www.krakend.io/schema/v2.6/telemetry/opentelemetry-security.json",
4+
"title": "OpenTelemetry Security",
5+
"description": "Enables the security layer needed to use OpenTelemetry through the Internet, like pushing data to a SaaS provider.\n\nSee: https://www.krakend.io/docs/telemetry/opentelemetry-security/",
6+
"type": "object",
7+
"additionalProperties": false,
8+
"patternProperties": {
9+
"^[@$_#]": {}
10+
},
11+
"required": [
12+
"otlp"
13+
],
14+
"properties": {
15+
"otlp": {
16+
"type": "array",
17+
"title": "OTLP exporters",
18+
"description": "The list of OTLP exporters that require authentication. Set at least one object to push metrics and traces to an external collector using OTLP.\n\nSee: https://www.krakend.io/docs/telemetry/opentelemetry-security/",
19+
"minItems": 1,
20+
"items": {
21+
"required": [
22+
"name",
23+
"headers"
24+
],
25+
"additionalProperties": false,
26+
"patternProperties": {
27+
"^[@$_#]": {}
28+
},
29+
"properties": {
30+
"name": {
31+
"title": "Name",
32+
"description": "The **exact name** you used to define the exporter under `telemetry/opentelemetry`.\n\nSee: https://www.krakend.io/docs/telemetry/opentelemetry-security/",
33+
"type": "string",
34+
"examples": [
35+
"newrelic",
36+
"remote_datadog"
37+
]
38+
},
39+
"headers": {
40+
"title": "Headers",
41+
"description": "The custom headers you will send to authenticate requests. Each key is the header name you will add to all outgoing reports.\n\nSee: https://www.krakend.io/docs/telemetry/opentelemetry-security/",
42+
"type": "object",
43+
"properties": {
44+
".*": {
45+
"type": "string",
46+
"description": "The value of the header, usually an API token.",
47+
"title": "Header value"
48+
}
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)