forked from mtusi2026/mtusi2026lab7
Защитить мессенджер TLS и OpenBao и проверить отзыв прав worker
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
listen loki
|
||||
mode http
|
||||
bind :3100 ssl crt /run/tls/server/service.pem verify required ca-file /run/tls/trust/ca.crt crl-file /run/tls/trust/revoked.crl
|
||||
acl allowed_identity ssl_c_s_dn(CN) -m str collector-client grafana-client
|
||||
http-request deny unless allowed_identity
|
||||
acl ingestion path /otlp/v1/logs
|
||||
acl collector ssl_c_s_dn(CN) -m str collector-client
|
||||
http-request deny if ingestion !collector
|
||||
http-request deny if collector !ingestion
|
||||
http-request deny if !collector !{ method GET POST }
|
||||
http-request deny if !collector !{ path_beg /loki/api/v1/ /ready }
|
||||
http-request deny if !collector { path_beg /loki/api/v1/delete }
|
||||
server local 127.0.0.1:13100
|
||||
Reference in New Issue
Block a user