Skip to content

Commit 0373892

Browse files
authored
Explicitly set 0.0.0.0 on sample configurations (#408)
* Explicitly set 0.0.0.0 on sample configurations * Change wording of comment
1 parent 0f47e46 commit 0373892

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

configs/otelcol-contrib.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# To limit exposure to denial of service attacks, change the host in endpoints below from 0.0.0.0 to a specific network interface.
2+
# See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md#safeguards-against-denial-of-service-attacks
3+
14
extensions:
25
health_check:
36
pprof:
@@ -9,9 +12,12 @@ receivers:
912
otlp:
1013
protocols:
1114
grpc:
15+
endpoint: 0.0.0.0:4317
1216
http:
17+
endpoint: 0.0.0.0:4318
1318

1419
opencensus:
20+
endpoint: 0.0.0.0:55678
1521

1622
# Collect own metrics
1723
prometheus:
@@ -25,11 +31,16 @@ receivers:
2531
jaeger:
2632
protocols:
2733
grpc:
34+
endpoint: 0.0.0.0:14250
2835
thrift_binary:
36+
endpoint: 0.0.0.0:6832
2937
thrift_compact:
38+
endpoint: 0.0.0.0:6831
3039
thrift_http:
40+
endpoint: 0.0.0.0:14268
3141

3242
zipkin:
43+
endpoint: 0.0.0.0:9411
3344

3445
processors:
3546
batch:

configs/otelcol.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# To limit exposure to denial of service attacks, change the host in endpoints below from 0.0.0.0 to a specific network interface.
2+
# See https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md#safeguards-against-denial-of-service-attacks
3+
14
extensions:
25
health_check:
36
pprof:
@@ -9,9 +12,12 @@ receivers:
912
otlp:
1013
protocols:
1114
grpc:
15+
endpoint: 0.0.0.0:4317
1216
http:
17+
endpoint: 0.0.0.0:4318
1318

1419
opencensus:
20+
endpoint: 0.0.0.0:55678
1521

1622
# Collect own metrics
1723
prometheus:
@@ -25,11 +31,16 @@ receivers:
2531
jaeger:
2632
protocols:
2733
grpc:
34+
endpoint: 0.0.0.0:14250
2835
thrift_binary:
36+
endpoint: 0.0.0.0:6832
2937
thrift_compact:
38+
endpoint: 0.0.0.0:6831
3039
thrift_http:
40+
endpoint: 0.0.0.0:14268
3141

3242
zipkin:
43+
endpoint: 0.0.0.0:9411
3344

3445
processors:
3546
batch:

0 commit comments

Comments
 (0)