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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
NuGet (C#) at /nuget/: nuget.org through SlowShield (docs/design/nuget.md, #38). Clients use a NuGet.Config with <clear/> and one source
named nuget.org at /nuget/v3/index.json. The Setup page has the file, a command for CI and images, and a Directory.Build.props that fails the build on NU1603 (a held version skipped for a higher one). The guide has
a page for C#: https://slowshield.org/docs/csharp/.
SlowShield writes the service index itself: the flat container, one SemVer 2 registration hive, vulnerability
data (NuGetAudit keeps working) and search. The upstream URLs come from [upstreams.nuget], so the hosts it may
reach stay fixed.
Versions younger than the delay or blocked are left out of the flat container, the registration pages
(recounted and rebounded, empty pages dropped) and search results. A download of one gets 425 Too Early
with Retry-After, or 451. A version's publish time is its registration published, never earlier than
first seen; an unlisted version that never had a real date is timed from when SlowShield first listed it.
A registration is kept as nuget.org sent it and a page decoded only to serve it, so the largest (Uno.WinUI,
5,451 versions, 115 MB) take about their size in memory; one over 256 MB is refused with a 503.
Every .nupkg is checked against the catalog's packageHash (SHA512) and its first fingerprint, and never
changed, so the repository signature stays valid. A package nuget.org signs again is refused as tampering, cached
or not.
Ids and versions use nuget.org's spellings (lower case, normalized: 1.0 and 1.0.0.0 are 1.0.0) in every
key, exceptions and blocks included; other spellings in a path are a 404. Malware from OSV NuGet and
GitHub nuget. fail_open is off, as for Maven and Cargo. SLOWSHIELD_NUGET_ENABLED, Helm ecosystems.nuget.enabled.
Changed
The shipped configs (Compose, Podman, Helm) leave default_delay_days, enforce_age_on_download and fail_open at
their defaults, commented out.
A sha512 mismatch is reported as "sha512 does not match the registry digest" (npm and NuGet), not as npm's dist.integrity.
Security
A file whose registry digest changed since it was first served (npm's dist.integrity, the sha256 on PyPI and
crates.io) is refused as tampering even when a verified copy is cached; before, the cached copy was served.
Fixed
Caddy capped npm audit requests at 16 KB instead of 10 MB: every matching request_body limit applied, the
catch-all's too.