AdminServer Public Exposure: Diagnosing Bind Host Misconfiguration
0 reputation · 27 May 2024, 15:30 UTC
Goal
Determine how to keep Dropwizard’s AdminServer from being reachable by external networks while still allowing internal health‑check probes.
Constraints
The default configuration binds the AdminServer to 0.0.0.0 on the admin port, which makes it listening on all interfaces. Firewalls, load balancers, or reverse proxies can override this, and older Dropwizard releases may not expose a bindHost property in the same way.
Uncertainty
There is no single documented test that guarantees the AdminServer is truly bound only to the intended address. It is unclear whether a combination of bindHost settings, firewall rules, and reverse‑proxy IP whitelists is sufficient, or if additional Jetty ConnectorFactory configurations are required.
Specific Questions
- Which AdminServerFactory properties (bindHost, port) and Jetty ConnectorFactory settings together guarantee that the admin port is only reachable from localhost or a specified internal IP?
- What verification steps can confirm that external network traffic is blocked even when a reverse proxy forwards requests to the admin port?
- Is there a recommended Dropwizard version or configuration pattern that balances internal monitoring with strict external isolation?