You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the admin endpoint to set middleware (PUT /api/v2/hoverfly/middleware) is disabled. To enable it:
59
+
60
+
- When starting Hoverfly directly: run with the flag: -enable-middleware-api
61
+
- When starting via hoverctl: use the same flag on start: hoverctl start --enable-middleware-api
62
+
63
+
Network binding and remote access
64
+
---------------------------------
65
+
66
+
By default, Hoverfly binds its Admin and Proxy ports to the loopback interface only (127.0.0.1). This means the Admin API is not reachable from remote hosts out of the box.
67
+
68
+
.. warning::
69
+
70
+
Exposing the Admin API outside localhost increases risk, especially if the Set Middleware API is enabled, because it allows executing arbitrary scripts/binaries on the host (for local middleware) or invoking remote middleware services.
71
+
72
+
If you expose the Admin API and enable the Set Middleware API, you should:
73
+
74
+
- Run Hoverfly only on trusted/private networks.
75
+
- Restrict access to the Admin API to trusted callers and networks (e.g., via firewalls, security groups, VPNs, reverse proxy ACLs).
76
+
- Prefer binding to localhost unless there is a strong need to expose it, and scope exposure to the minimum required interfaces.
77
+
- Enable authentication if appropriate and avoid exposing the Admin port publicly.
78
+
79
+
The guidance above applies whether you configure middleware as a local executable/script or as HTTP middleware.
0 commit comments