Skip to content

registry: apply archive limits uniformly #4235

Closed

Description

Part of the 0.37 trust and integrity consistency hardening.

Registry archive extraction applies one set of archive limits to every accepted format (tar.gz and zip, per the amended spec in #4234), through one owner: uncompressed-size cap, entry-count cap, and refusal of path traversal, absolute paths, links and duplicate entries.

Ships with regression tests per format and limit, a closed-world guard and a mutation case.

Activity

  1. added
    status/accepted
    on Nov 20, 2026
  2. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Apply one set of archive limits to every registry archive format (tar.gz and zip) through a single archive-limits owner: an uncompressed-size cap and an entry-count cap with streamed counting, and refusal of path traversal, absolute paths, links and duplicate entries. Route every archive extraction site through that owner.
    Done when: Regression tests per format and per limit fail before and pass after. An installed-CLI test shows an over-limit archive is refused with nothing written and the lockfile unchanged. A closed-world guard with a registered rule id and a sorted mutation case is added, plus an owner-registry entry, a bug-ledger row and a CHANGELOG line. CI is green.
    Out of scope: The spec amendment itself (#4234); new archive formats; changing the limit values beyond aligning both formats.
    Review contact: Daniel Meppiel (@danielmeppiel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/accepted

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions