You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSPO policy commonly permits contributing to any open-source project carrying an approved license (e.g. MIT, Apache-2.0, BSD variants). Today, operators must enumerate every allowed repo slug explicitly in URL rules. For environments with hundreds of upstream FOSS dependencies this is unmaintainable — and misses new repos added over time.
Proposed behaviour
Add a license-aware dimension to URL allow rules. When a rule specifies a `license` condition, the proxy fetches (and caches) the upstream repo's LICENSE file at allow-rule evaluation time and checks the detected SPDX identifier against the configured list or group.
License detection should be cached (TTL configurable) to avoid hammering the upstream SCM API on every request.
Built-in groups should align with common OSPO/appsec vendor categorisations (FOSSA, Black Duck, Snyk defaults): `permissive`, `weak-copyleft`, `strong-copyleft`, `unknown`.
Problem
OSPO policy commonly permits contributing to any open-source project carrying an approved license (e.g. MIT, Apache-2.0, BSD variants). Today, operators must enumerate every allowed repo slug explicitly in URL rules. For environments with hundreds of upstream FOSS dependencies this is unmaintainable — and misses new repos added over time.
Proposed behaviour
Add a license-aware dimension to URL allow rules. When a rule specifies a `license` condition, the proxy fetches (and caches) the upstream repo's LICENSE file at allow-rule evaluation time and checks the detected SPDX identifier against the configured list or group.
Or with an explicit list:
Notes