Skip to content

Apply the swap_daily_query reader grant after the worker deploy - #224

Merged
Kenbak merged 2 commits into
mainfrom
new/swaps-grant-order
Nov 2, 2026
Merged

Kenbak merged 2 commits into
mainfrom
new/swaps-grant-order

Conversation

@Kenbak

@Kenbak Kenbak commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Batch 4 step 2 shipped GRANT SELECT ON analytics_public.swap_daily_query TO ask_public_reader inside swaps-v1.sql. The deployed worker (built before batch 4) does not list that view in coreViews, so its guard (only_public_view) refused every research query until the grant was revoked on the host on 2026-11-02.

  • Moves the grant to swaps-grant-v1.sql, applied at runbook step 7 after the new worker runs.
  • Runbook: revoke first in rollback; step 7 checks a live blocks query after the grant.
  • Tests: the migration no longer touches ask_public_reader; logical-sync applies the grant file before reader assertions.

🤖 Generated with Claude Code

The running worker's guard refuses every query while ask_public_reader can
select a view it does not list. Shipping the grant inside swaps-v1.sql took
research offline at rollout step 2; it now lives in swaps-grant-v1.sql, applied
at step 7 after the new worker is running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zecblock Ready Ready Preview Nov 2, 2026 9:09pm UTC
2 Skipped Deployments
Project Deployment Actions Updated
zecblock-crosslink Ignored Ignored Preview Nov 2, 2026 9:09pm UTC
zecblock-testnet Ignored Ignored Preview Nov 2, 2026 9:09pm UTC

Request Review

@Kenbak
Kenbak merged commit 116b8a7 into main Nov 2, 2026
30 checks passed

This branch was successfully deployed

1 active deployment
Preview – zecblock — b08c6908 Deployed Nov 2, 2026 by vercel[bot]
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