Skip to content

Restrict published Docker ports to localhost except Handle 2641 - #8

Merged
simongray merged 1 commit into
clarin-dk-v7from
restrict-port-exposure
Nov 2, 2026
Merged

simongray merged 1 commit into
clarin-dk-v7from
restrict-port-exposure

Conversation

@simongray

Copy link
Copy Markdown
Member

Closes some security holes in the old setup.

HOST_IP=0.0.0.0 published Postgres (5431, default password), Solr (8981,
no auth), Tomcat (8081) and Angular SSR (4001/9871) on the public
interface. Docker-published ports bypass the host's iptables INPUT rules,
so the bind address was the only protection.

- .env.example: HOST_IP=127.0.0.1, and correct the comment that claimed
  0.0.0.0 was required.
- docker-compose.override.yml: replace the dspace port list (!override)
  so only the native Handle port 2641 tcp/udp binds to 0.0.0.0; the
  REST API and other ports stay on 127.0.0.1 behind nginx.
@simongray
simongray merged commit 09c935a into clarin-dk-v7 Nov 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant