Grafana: secret_key committed in clear, and port 3000 bypasses Caddy #13
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
polen/nixos#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
services.grafana.settings.security.secret_keyis hardcoded indevices/server/configuration.nixand present in git history (commit1880856). This key encrypts datasource credentials in the Grafana database.0.0.0.0:3000and port 3000 is open in the firewall, so it is reachable in plain HTTP without going through Caddy.Fix
$__file{/run/secrets/...}(secret owned bygrafana).http_addr = "127.0.0.1"and remove 3000 fromallowedTCPPorts.