Skip to content

security: define and verify release provenance before package updates #67

Closed

Description

@abruption

Verified trust boundary

The v0.7.0 release has eight assets including SHA256SUMS and source-manifest.json, and explicitly states checksums are not independent publisher-signature authentication. Release metadata and manifest loading restrict repository URLs, schema and sizes; update preparation validates matching source hashes. These checks establish consistency within the same GitHub release trust boundary, not authenticated build provenance.

No attestation-verification step exists in the updater source or the three current workflows. This does not prove that no attestation exists elsewhere; nor would a GitHub-issued attestation alone protect against every repository/workflow/account compromise. #30/#42 deliberately documented the checksum trust limit; this issue tracks the additional provenance design.

Scope and acceptance

  • Document a precise threat model, trust roots, authorized repository/workflow identities and build source/ref binding before selecting artifact attestations or signatures.
  • Produce verifiable provenance for the exact manifest and distributed source bytes; verify it before any candidate code execution or installed-file replacement.
  • Specify compatibility/bootstrap policy for existing unsigned releases and offline bundles. No silent fallback from required verification to hash-only success.
  • Isolated tests reject modified bytes, wrong publisher/workflow/source binding, missing/invalid evidence and replay outside the explicit version policy; valid authorized evidence succeeds.
  • Keep current bounded downloads, manifest checks, recovery-terminal requirement and transaction safeguards.
  • Document residual trust limits; do not claim independent protection from all GitHub account takeover scenarios.

Verification boundary

Read-only source/API review on 2026-10-29 at main 2dc8d703abdd932b395e2f08c31e10723caed103. The Claude Code report was treated as a hypothesis, not test evidence. No production scripts, tests, services, deployment, keys or repository settings were changed. Existing open and closed issues and PRs were searched before filing; this is a new, bounded hardening task, not a confirmed compromise.

Completion

Implemented by merged PR #74 and version-preparation PR #76. The real v0.8.0 signing candidate, independent consumer verification, content audit and negative checks are recorded in the completion comment. GitHub Release publication and operating deployment remain withheld.

Activity

  1. added this to the v0.8.0 milestone on Oct 29, 2026
  2. added
    enhancement
    priority: high
    security
    on Oct 29, 2026
  3. self-assigned this
    on Oct 29, 2026
  4. abruption commented on Oct 29, 2026

    @abruption
    OwnerAuthor

    Development implementation is available in PR #74: #74

    The candidate enforces authenticated original-manifest provenance before candidate execution, isolates trusted verifier/root inputs, and separates validation from privileged signing. This issue stays OPEN: own-publisher stable-tag evidence, independent verification of the distributed bytes and the v0.7.1 bootstrap gate have not occurred. Upstream signed fixtures and synthetic parser-positive cases are explicitly distinguished.

    The reviewed runtime candidate passed Linux core CI on Python 3.11/3.13 (541 tests each, zero skipped), plus the scoped independent Claude/Codex review process. Exact revisions, research checks, fixture limits and remaining gates: https://github.com/abruption/dots-tailscale/blob/feat/v080/docs/validation/v0.8.0-development-review.md

    PR-head checks are recorded on #74. No merge, tag/release or operating deployment is included in this development update.

  5. abruption commented on Oct 30, 2026

    @abruption
    OwnerAuthor

    Completed using actual tag-bound publisher evidence, before public GitHub Release publication or operating deployment.

    Source and producer

    Independent consumer verification

    Outside the producing job, trusted preinstalled GitHub CLI 2.103.3 verified all three original subjects using the portable bundle and independently retrieved custom trust roots. The command pinned repository, exact signing workflow/ref, source and signer commit, OIDC issuer, GitHub-hosted runners and SLSA provenance v1. No authenticated user configuration or candidate-supplied verifier was used. The already-reviewed updater's additional certificate/statement policy parser, loaded from prior trusted merge a9d9063, accepted the real verified output without mocking gh success, including the fixed numeric repository/owner identities and source/ref bindings.

    Original subject SHA-256
    source-manifest.json 33e2a38cf58d40586039f70c7117d3435adda1b6ce6bc269d1fff9ba5ee6e2f4
    dots-tailscale-0.8.0.tar.gz 6d4f60e36bba8e07f33fe11b8084471e0e02cb31d655ad06e17d1fda03b36b39
    dots-tailscale-0.8.0.zip 43fd5dff2b32abab87e337638349f36f83c75d26edbbc44623cd9a35ee8f096c

    The independently retrieved public root set has SHA-256 65ca537f6ed8a47fd0e560c421baa1f6c1efb8b25fc200d8c5c02c0e92eb2b9c. This records the verification input, not permission to trust a root supplied by a future candidate.

    A separate content audit found exactly ten regular files and nine valid non-self checksums. The manifest's four source hashes match the original bytes. Each named archive has 175 files and 14 directories; every file byte and executable mode matches the exact Git source commit. No symlinks, traversal, private/untracked paths or the local untitled.md were included. The original candidate was retained unchanged for later publication; it must not be rebuilt or confused with GitHub's automatically generated source-archive downloads.

    Negative and compatibility checks

    Real gh verification returned exit 1 for each of: modified manifest bytes, wrong repository, wrong signing workflow, wrong source digest, wrong source ref and a modified signature. The trusted updater's guards over actual downloaded bytes additionally rejected missing evidence, a mismatched selection tag, changed source bytes and an attempt to apply the unsigned-legacy exception to this new release.

    Actual v0.7.1 source bytes remained rejected by default (legacy_operator_review_required); explicit manual selection returned legacy_operator_review, never authenticated provenance. The documented first-upgrade procedure independently verifies evidence and all four source hashes before executing any candidate helper. Historical unsigned releases are not retroactively signed.

    Boundary

    This was the independent manual-bootstrap consumer path plus the real updater certificate-policy checks. It was not a live update/apply, operating-file replacement or new Dots fault experiment. Protected-path/process/transaction behavior retains the separately recorded CI evidence. No downloaded candidate code was executed, no operating state/keys/policies/claims/subscriptions were changed, and no GitHub Release was published. The documented residual trust in the maintainer, reviewed workflow, trusted verifier and roots still applies; this is not universal protection from account/workflow compromise or a fresh revocation check.

    Timing correction

    I included a GitHub automatic-closing keyword in a negated PR #76 description. It unintentionally closed this issue at the preparation merge (2026-10-30 00:56:06 UTC), before the signing/consumer checks above completed. The description is corrected. The independent checks were still carried out and recorded before declaring this gate fulfilled; the current closed state is supported by that evidence. No public GitHub Release or operating rollout was triggered from the premature issue state.

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

Metadata

Metadata

Assignees

Labels

enhancementpriority: highsecurity

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions