Skip to content

fix(preview): refuse cross-schema migration grants - #353

Merged
aRustyDev merged 2 commits into
mainfrom
codex/preview-executor-sandbox
Nov 23, 2026
Merged

aRustyDev merged 2 commits into
mainfrom
codex/preview-executor-sandbox

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Summary:

Verification:

  • Full Docker-backed pg_adapter suite: 94 passed.
  • Focused real-Postgres identity test passed after rebase.
  • cargo fmt and targeted clippy passed.
  • Control: disabling the SECURITY DEFINER predicate made the grant matrix fail at GRANT EXECUTE ON FUNCTION preview_shared.elevated().
  • cargo mutants selected one mutation; it was unviable because replacing migrate_atomic_inner cannot return MigrateOutcome.

Relates to #57.

@aRustyDev
aRustyDev temporarily deployed to preview-control-plane November 23, 2026 01:29 — with GitHub Actions Inactive
@aRustyDev
aRustyDev temporarily deployed to preview-control-plane November 23, 2026 01:39 — with GitHub Actions Inactive
@aRustyDev
aRustyDev enabled auto-merge (squash) November 23, 2026 01:39
@aRustyDev
aRustyDev merged commit 27276c0 into main Nov 23, 2026
48 checks passed
@aRustyDev
aRustyDev deleted the codex/preview-executor-sandbox branch November 23, 2026 01:53
aRustyDev added a commit that referenced this pull request Nov 23, 2026
…k 89 s on main's run for #353)

#353 changed thrust-adapters-postgres, the crate of migrate, so the planner planned build / linux on its push to main: 89 seconds, warm, run 45097099843, gate green. It is the first real change after the stage merged, and 12 s under probe A's 101 s and the dispatch's 102 s (runners differ by about that much, so one run says little).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev added a commit that referenced this pull request Nov 23, 2026
…, the cache, and the probes that show it go red (#355)

* docs(plans): record stage 1 of the Build phase (linux): what it costs, the cache, and the probes that show it go red

Stage 1's section in phases/0004-build.md: the job is 134 s cold (the server's release build 86.5 s, migrate 21.7 s) and 101 to 102 s with the cache main saves (222.8 MB; a pull request's run restores it), off every critical path (a full run is 594 s and set by the e2e cell at 552 s; an affected-only run of a server change by mutants leg 0 at 309 s). The repository's release profile is the Worker's, so the native server it makes is 10.2 MB, dynamically linked and not stripped.

Two probes (#354, closed unmerged, branch deleted): a comment in the server crate plans linux on an affected-only run and passes; a compile_error! behind cfg(not(debug_assertions)) turns build / linux, build / verdict and gate red and nothing else (21 of 29 jobs green, 5 skipped), because every other job builds in debug. The survey of public solutions names two candidates for later stages (taiki-e/upload-rust-binary-action for Release, houseabsolute/actions-rust-cross for bsd) and the one hand-written line with its control. Passes 5 to 7 are recorded: the cache pays (-24%), and parallelising or sparing the job would save nothing that a critical path or a runner-second budget would notice.

running.md's runbook gets the measured time instead of a pointer. The plan's and the README's status lines say stage 1 is done and stage 2, wasm, is next.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* docs(plans): add the first real change to stage 1's record (linux took 89 s on main's run for #353)

#353 changed thrust-adapters-postgres, the crate of migrate, so the planner planned build / linux on its push to main: 89 seconds, warm, run 45097099843, gate green. It is the first real change after the stage merged, and 12 s under probe A's 101 s and the dispatch's 102 s (runners differ by about that much, so one run says little).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
preview-control-plane — 49d79836 Deployed Nov 23, 2026 by aRustyDev via reconcile #633
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