vetkit.compose.service.datastore-port-exposed
A Compose service publishes a database or cache port on all host interfaces. Anyone who can reach the machine can talk to the data store directly; this is fine on a developer laptop but dangerous on a server.
Last updated:
Suite: Security
yaml
A Compose service publishes a database or cache port on all host interfaces. Anyone who can reach the machine can talk to the data store directly; this is fine on a developer laptop but dangerous on a server.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Bind the published port to the loopback interface ("127.0.0.1:5432:5432") or remove the ports entry and let other services reach the data store over the Compose network.
References
Source: packages/engine/rules/sast/config.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.