forked from mtusi2026/mtusi2026lab7
lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana
This commit is contained in:
@@ -8,10 +8,20 @@ appenddirname "appendonlydir"
|
||||
# RDB snapshots are not needed on top of AOF.
|
||||
save ""
|
||||
dir /data
|
||||
port 6379
|
||||
protected-mode yes
|
||||
# Lab 7: TLS only. The plaintext port is closed (port 0); clients verify the server certificate
|
||||
# (internal CA, SAN valkey). No client certificates at grade 3 (tls-auth-clients no): the client
|
||||
# identity is the ACL user + password below.
|
||||
port 0
|
||||
tls-port 6379
|
||||
tls-cert-file /run/secrets/valkey.crt
|
||||
tls-key-file /run/secrets/valkey.key
|
||||
tls-ca-cert-file /run/secrets/internal-ca.crt
|
||||
tls-auth-clients no
|
||||
tls-protocols "TLSv1.2 TLSv1.3"
|
||||
# Sessions are never evicted silently: if memory is full, writes fail and login returns 503.
|
||||
maxmemory 128mb
|
||||
maxmemory-policy noeviction
|
||||
# Password, generated by scripts/init_secrets.py and written here at container start.
|
||||
include /tmp/requirepass.conf
|
||||
# Lab 7: ACL users instead of one shared password (file written by infra/valkey/start.sh at start):
|
||||
# `default` is off, `api` may touch only session:* / ratelimit:* keys with the commands it uses.
|
||||
aclfile /tmp/valkey/users.acl
|
||||
|
||||
Reference in New Issue
Block a user