feat: complete lab 7 grade 3 security controls

This commit is contained in:
Dmitrii Grishko
2026-11-14 20:08:27 +03:00
parent 8986ba6bef
commit c5e3ac3aff
49 changed files with 1670 additions and 149 deletions
+18 -2
View File
@@ -3,6 +3,10 @@ receivers:
protocols:
http:
endpoint: 0.0.0.0:4318
tls:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_ca_file: /run/otel/ingest-ca.crt
processors:
memory_limiter:
check_interval: 1s
@@ -15,16 +19,28 @@ processors:
exporters:
prometheus:
endpoint: 0.0.0.0:8889
tls:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_ca_file: /run/otel/export-ca.crt
resource_to_telemetry_conversion:
enabled: true
otlphttp/loki:
endpoint: http://loki:3100/otlp
endpoint: https://loki:3100/otlp
tls:
ca_file: /run/tls/ca.crt
cert_file: /run/otel/client.crt
key_file: /run/otel/client.key
sending_queue:
queue_size: 64
retry_on_failure:
max_elapsed_time: 30s
otlphttp/tempo:
endpoint: http://tempo:4318
endpoint: https://tempo:4318
tls:
ca_file: /run/tls/ca.crt
cert_file: /run/otel/client.crt
key_file: /run/otel/client.key
sending_queue:
queue_size: 64
retry_on_failure:
@@ -4,14 +4,23 @@ datasources:
uid: lab6-prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
url: https://prometheus:9090
isDefault: true
secureJsonData:
tlsClientCert: ${GRAFANA_READER_CERT}
tlsClientKey: ${GRAFANA_READER_KEY}
jsonData:
tlsAuth: true
- name: Loki
uid: lab6-loki
type: loki
access: proxy
url: http://loki:3100
url: https://loki:3100
secureJsonData:
tlsClientCert: ${GRAFANA_READER_CERT}
tlsClientKey: ${GRAFANA_READER_KEY}
jsonData:
tlsAuth: true
derivedFields:
- name: Trace
matcherType: label
@@ -22,8 +31,12 @@ datasources:
uid: lab6-tempo
type: tempo
access: proxy
url: http://tempo:3200
url: https://tempo:3200
secureJsonData:
tlsClientCert: ${GRAFANA_READER_CERT}
tlsClientKey: ${GRAFANA_READER_KEY}
jsonData:
tlsAuth: true
tracesToLogsV2:
datasourceUid: lab6-loki
spanStartTimeShift: '-5s'
+5
View File
@@ -1,6 +1,11 @@
auth_enabled: false
server:
http_listen_port: 3100
http_tls_config:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/otel/loki-client-ca.crt
common:
path_prefix: /loki
replication_factor: 1
+5
View File
@@ -0,0 +1,5 @@
tls_server_config:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/otel/read-ca.crt
+5
View File
@@ -4,5 +4,10 @@ rule_files:
- /etc/prometheus/alerts.yaml
scrape_configs:
- job_name: otel-collector
scheme: https
tls_config:
ca_file: /run/tls/ca.crt
cert_file: /run/otel/client.crt
key_file: /run/otel/client.key
static_configs:
- targets: [otel-collector:8889]
+9
View File
@@ -1,11 +1,20 @@
server:
http_listen_port: 3200
http_tls_config:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/otel/read-ca.crt
distributor:
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
tls:
cert_file: /run/otel/server.crt
key_file: /run/otel/server.key
client_ca_file: /run/otel/export-ca.crt
storage:
trace:
backend: local