Repository navigation
monitoring: harden Grafana and keep non-P2P ports local - #507
Merged
Merged
Conversation
Grafana granted anonymous users the Admin role and was published on all interfaces, which Docker exposes past host firewalls such as ufw. It is now published on 127.0.0.1, read-only for anonymous users, without password logins or plugin installs, on its own monitoring network, and runs non-root from a fresh named volume. The legacy Lighthouse metrics port now binds to 127.0.0.1, and Alloy in logging.yml reads container logs via a read-only Docker socket proxy instead of mounting the socket. Adds grafana/security-check.sh for upgraders, a CI check that only P2P ports default to all interfaces, and a README security section.
Alloy's Docker discovery calls GET /networks, which the proxy refused with only CONTAINERS enabled, so Alloy found no containers and shipped no logs.
…ript Use [[ ]] tests and an explicit return in security-check.sh, split the per-port logic out of check_ports, and install PyYAML from wheels only.
|
OisinKyne
added a commit
that referenced
this pull request
Oct 26, 2026
…507) (#509) Grafana is published on 127.0.0.1, read-only for anonymous users, without password logins or plugin installs, on its own monitoring network, and runs non-root from a fresh named volume. The legacy Lighthouse metrics port binds to 127.0.0.1, and Alloy in logging.yml reads container logs via a read-only Docker socket proxy. Adds grafana/security-check.sh, a CI exposure check and a README security section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Grafana granted anonymous users the Admin role and was published on all interfaces, which Docker exposes past host firewalls such as ufw. It is now published on 127.0.0.1, read-only for anonymous users, without password logins or plugin installs, on its own monitoring network, and runs non-root from a fresh named volume. The legacy Lighthouse metrics port now binds to 127.0.0.1, and Alloy in logging.yml reads container logs via a read-only Docker socket proxy instead of mounting the socket.
Adds grafana/security-check.sh for upgraders, a CI check that only P2P ports default to all interfaces, and a README security section.