Lock down IPFS dsms-node: close external port 5001 and add auth to dsms-gateway #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
docker-compose.ymlexposes IPFS Kubo API port 5001 on the host. This port allows reading and writing arbitrary IPFS blocks without authentication. The dsms-gateway (port 8082) also has no JWT validation on its HTTP endpoints.Required Actions
5001:5001mapping fromdsms-nodeindocker-compose.yml— the IPFS API should only be accessible within the Docker network, not from outside--api-addr /ip4/127.0.0.1/tcp/5001to Kubo configdsms-gatewayNode.js service — validateAuthorization: Beareron all routesAcceptance Criteria
curl http://<host>:5001/api/v0/idfrom outside Docker returns connection refused