eric-kinsley74 opened a new issue, #3108:
URL: https://github.com/apache/apisix-dashboard/issues/3108
### Issue description
Running in Docker swarm mode with host networking, setting conf_ssl_host to
a custom IP address defaults to 0.0.0.0. Custom port for SSL works, as well as
cert: and key:
Have tried even binding to 127.0.0.1 to no avail. For security purposes,
having the dashboard listen on all interfaces can be problematic. The
allow_list works, and that's a workaround for now to block unwanted access.
### Expected behavior
conf:
listen:
host: 127.0.0.1 #having a way to disable the http listener without
defaulting to 0.0.0.0 would be helpful as well
port: 9000
ssl:
host: 10.10.10.10 #This should bind to 10.10.10.10 if it exists on the
host, but defaults to 0.0.0.0
port: 9002
cert: /usr/local/apisix-dashboard/certs/dashboard.crt
key: /run/secrets/dashboard_ssl_key
allow_list:
- 127.0.0.1/32
- 10.10.10.0/24
Setting conf_ssl_host should bind to the IP set.
### How to Reproduce
1. Configure host variable for conf_ssl_host in config.yaml
2. Spin up container with host networking mode (swarm is not required)
3. run "ss -tunl" to see what the ssl host binds to
tcp LISTEN 0 4096 *:9000 *:*
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`): 3.0.0-debian
- OS (cmd: `uname -a`): 22.04.1-Ubuntu
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): nginx
version: openresty/1.21.4.1
- etcd version, if have (cmd: run `etcd --version`): v3.5.11
- apisix-dashboard version, if have: 3.0.1
- Browser version, if have: N/A
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]