Reverse proxy gatekeeper for npm - blocks young packages to prevent supply-chain attacks
213
A reverse proxy gatekeeper for Nexus npm repositories that enforces a minimum package age policy. Packages younger than a configurable threshold are blocked, preventing supply-chain attacks via freshly published malicious packages.
docker run -d \
-p 8080:8080 \
-e NEXUS_URL=http://nexus:8081/repository/npm-proxy/ \
-e MIN_AGE_DAYS=7 \
satriller/epochgate
| Variable | Default | Description |
|---|---|---|
LISTEN_PORT | :8080 | Address and port to listen on |
NEXUS_URL | http://localhost:8081/repository/npm-proxy/ | Nexus npm proxy repository URL |
NPM_REGISTRY | https://registry.npmjs.org/ | Upstream npm registry for metadata |
MIN_AGE_DAYS | 7 | Minimum package age in days before allowing |
npm client → EpochGate → Nexus Registry → Upstream npm
↓
Checks package age
via registry.npmjs.org
MIN_AGE_DAYS, the request is blocked with 403 ForbiddenContent type
Image
Digest
sha256:b23da1e84…
Size
2.9 MB
Last updated
2 months ago
docker pull satriller/epochgate