Repository navigation
Allow migration files to be borrowed from trusted inputs - #308
Merged
Merged
Conversation
aRustyDev
temporarily deployed
to
preview-control-plane
November 18, 2026 18:03 — with
GitHub Actions
Inactive
Merged
aRustyDev
added a commit
that referenced
this pull request
Nov 18, 2026
Main moved four commits while #310 was open (#307, #308, #309 and the lettre fix #312), and two files conflicted: - crates/adapters/postgres/src/lib.rs: #308 made `Migration` borrow its strings (`Migration<'a>`), and this branch added migration 0020 to the list. The list is `[Migration<'static>; 20]`: #308's type, this branch's twentieth entry. - docs/src/testing/status.md: #309 rewrote the G-46 row and this branch added G-47 after it. G-46 is main's row, byte for byte (compared with `diff`), and G-47 follows it. Merged, not rebased, because a force-push is blocked on this repository and #310 is already published. The lettre bump of #312 comes in with the merge, which is what turns the `security / deny` job green on this branch (it failed on lettre 0.11.23 alone). Checked on the merged tree before this commit: no conflict markers left, `scripts/check-contract-counts.sh` (74, 6; stage 2: 68, 4), `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings` and the wasm32 clippy of the Worker crates. The test batteries are re-run on the merge commit and listed in the pull request. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The migration runner currently requires embedded static SQL, preventing a trusted runner from accepting migration files supplied as data. Allow Migration to borrow its file name and SQL, keeping the embedded list static and the migration behavior unchanged. A generated test proves caller-owned input can be dropped after the ledger entries are built.
Validation: 165 Postgres crate tests passed; formatting, native clippy and the provisioner wasm build passed. The generated test fails to compile with the former static-only type. The Postgres integration binary compiled locally but the run could not find /var/run/docker.sock; automatic command review rejected specifying the existing OrbStack socket, so the Docker-backed CI job is required.