feat: enforce include_patterns on docker /v2/ proxy route #10

Merged
unkinben merged 1 commits from benvin/docker-include-patterns into master 2026-04-25 18:14:50 +10:00

1 Commits

Author SHA1 Message Date
unkinben 869a1f8c02 feat: enforce include_patterns on docker /v2/ proxy route
Adds pattern checking to docker_v2_proxy before any upstream fetch.
Patterns match against the full path and the image name (first two
path segments), bypassing the index-file exemption that check_artifact_patterns
applies — so restrictions apply equally to manifests, blobs, and tag lists.
Returns 403 when no pattern matches, consistent with the non-docker route.
2026-04-25 18:09:12 +10:00