lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana

This commit is contained in:
Alexey Bodanyuk
2026-11-27 16:29:09 +03:00
parent f36da97951
commit 93f4ed1013
28 changed files with 621 additions and 201 deletions
+4
View File
@@ -14,6 +14,9 @@
# Exposure: master (9333), volume (8080), filer (8888) with their web UIs and gRPC listen on
# 127.0.0.1 INSIDE the container only (-ip.bind); only the S3 API port 8333 listens on the
# container network `storage` (internal, not published on the host). Telemetry is off.
# Lab 7: the S3 port speaks HTTPS only (-s3.cert.file/-s3.key.file: internal CA, SAN s3); the
# clients verify chain + hostname (aiobotocore verify=TLS_CA_FILE). The plaintext master/volume/filer
# hops stay on the container's own loopback (closed local hop, not reachable from the network).
set -eu
umask 077
secret() { tr -d '\r\n' < "/run/secrets/$1"; }
@@ -49,4 +52,5 @@ exec weed server \
-filer -filer.disableDirListing -filer.concurrentUploadLimitMB=128 \
-volume.concurrentUploadLimitMB=128 \
-s3 -s3.ip.bind=0.0.0.0 -s3.port=8333 -s3.config=/tmp/s3.json -s3.concurrentUploadLimitMB=128 \
-s3.cert.file=/run/secrets/s3.crt -s3.key.file=/run/secrets/s3.key \
-s3.iam=false -s3.autoCreateBucket=false -s3.port.iceberg=0 -s3.port.lance=0