Files
mtusi2026lab7/infra/grafana/entrypoint.sh
T
dawudukandCursor 9b501b2020 Закрыть внешний вход TLS и выдавать секреты через OpenBao.
LB ходит в API только с клиентским сертификатом нужной identity, остальные связи проверяют серверный сертификат, root token в приложение не попадает.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-26 19:48:38 +03:00

11 lines
278 B
Bash

#!/bin/sh
set -eu
if [ -f /certs/ca.crt ]; then
cat /certs/ca.crt >> /etc/ssl/certs/ca-certificates.crt
fi
if [ -f /run/secrets/grafana_password ]; then
GF_SECURITY_ADMIN_PASSWORD=$(cat /run/secrets/grafana_password)
export GF_SECURITY_ADMIN_PASSWORD
fi
exec /run.sh "$@"