Skip to content

Verify preview migration source against GitHub and Git - #346

Merged
aRustyDev merged 1 commit into
mainfrom
codex/preview-source-authorization
Nov 22, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
codex/preview-source-authorization

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Verify preview migration artifacts against a successful source workflow, the current same-repository PR, and an independent extraction of the exact Git commit. The verifier emits regenerated bytes only after the complete downloaded artifact matches; a checksum supplied with the artifact is not treated as provenance.

Add a read-only workflow that exercises the checks after source preparation or for a manually selected source run. It fetches GitHub metadata, selects exactly one valid artifact, rechecks the PR after verification, and holds no deployment credentials. A later privileged caller must still fetch fresh metadata, recheck the PR and binding, and address the race after the check; this workflow does not authorize a later deployment.

Generated tests cover forged SQL with recomputed digests, changed or closed PRs, forged workflow/artifact metadata, duplicate artifacts, symlinks and size limits. Controls disabling the Git comparison and successful-run check caused the tests to fail. The complete local reconciliation test and workflow lint passed. A read-only live check accepted PR #338's then-current artifact, and rejected the same artifact after its head changed.

The plan records a read-only audit of the two existing preview roles: no elevated attributes, memberships, accessible cross-schema table privileges or non-system security-definer functions; connection limit 8; and zero database timeout defaults. Enforce resource limits and assess the preview role's ability to change its own password before accepting untrusted migrations.

@aRustyDev
aRustyDev temporarily deployed to preview-control-plane November 20, 2026 22:12 — with GitHub Actions Inactive
@aRustyDev
aRustyDev marked this pull request as ready for review November 20, 2026 22:16
@aRustyDev
aRustyDev merged commit cf05292 into main Nov 22, 2026
17 checks passed
@aRustyDev
aRustyDev deleted the codex/preview-source-authorization branch November 22, 2026 23:01
aRustyDev added a commit that referenced this pull request Nov 22, 2026

This branch was previously deployed

1 inactive deployment
preview-control-plane — fc44fd63 Deployed Nov 20, 2026 by aRustyDev via reconcile #417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant