Commit Graph
2 Commits
Author SHA1 Message Date
Andrei Kvapil 760cc700a4 security(monitoring): reset the Alerta admin password on every start
The entrypoint creates admin users only when they are missing, so an
admin user created before Alerta had a password of its own keeps the
Grafana password, which stays valid after an operator rotates Grafana's.
The mounted entrypoint runs a step right after user creation that sets
every admin user's password to ADMIN_PASSWORD, and stops the container
if it fails.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-27 05:40:32 +01:00
Andrei Kvapil e762bf4c08 security(monitoring): keep Alerta credentials out of its container log
The Alerta entrypoint prints the whole environment, including the admin
password and API key, and echoes the admin API keys it creates, while
nginx logs the request line where Alertmanager passes the key as a
query parameter. Pod logs are readable at lower tenant tiers than the
credentials themselves.

This line runs the upstream image, so the entrypoint and nginx template
are mounted over the image's copies from a ConfigMap, changed only to
drop that output and mask the parameter.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-27 05:13:47 +01:00