Complete lab 7 security infrastructure
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Yuliiiaaaa
2026-11-30 21:23:07 +03:00
parent 20afc2c790
commit c00d245263
55 changed files with 3515 additions and 28 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
: "${REDIS_TLS_NAME:?REDIS_TLS_NAME must be redis-cache or redis-broker}"
mkdir -p /tmp/redis-tls
cp "/run/tls/${REDIS_TLS_NAME}.crt" /tmp/redis-tls/server.crt
cp "/run/tls/${REDIS_TLS_NAME}.key" /tmp/redis-tls/server.key
cp /run/tls/service-ca.crt /tmp/redis-tls/service-ca.crt
chown -R redis:redis /tmp/redis-tls
chmod 644 /tmp/redis-tls/server.crt /tmp/redis-tls/service-ca.crt
chmod 600 /tmp/redis-tls/server.key
exec /usr/local/bin/docker-entrypoint.sh "$@"