Skip to content

ENG-2368 Revoke write privileges on the my_spaces and my_accounts views - #1522

Merged
mdroidian merged 1 commit into
mainfrom
eng-2368-revoke-write-privileges-on-the-my_spaces-and-my_accounts
Oct 7, 2026
Merged

mdroidian merged 1 commit into
mainfrom
eng-2368-revoke-write-privileges-on-the-my_spaces-and-my_accounts

Conversation

@maparent

@maparent maparent commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

https://entire.io/gh/DiscourseGraphs/discourse-graph/trails/70

Reviewer brief

  • Review focus: only my_spaces and my_accounts get the revoke. Checking information_schema.views found them as the only automatically updatable views in public besides my_concepts, which was already revoked. The other six views keep their default write grants but cannot be written through. ENG-2359 adds the revoke for (actually three of) its four views when its rewrite makes them updatable.
  • Risk or follow-up: the production grants check happens after deploy.

Verification

  • Cucumber: 27/27 scenarios pass, including features/readOnlyViews.feature (insert, update and delete through each view fail with 42501; reads still return rows).
  • Local grants query: no INSERT, UPDATE, DELETE or TRUNCATE for anon or authenticated on any updatable view in public.
  • pnpm ci:validate passes.

Loom video

https://www.loom.com/share/ff0770ca9b484183960f04a67a39f4c3

Scope check

  • Ran $scope-check against the ENG ticket and final diff.
  • Scope beyond Done When: None

Standards check

  • Ran $dg-pr-adherence-check against the final diff and PR metadata.

Local delegated full review

  • Ran a comprehensive review of the entire final diff in a subagent with a fresh context. Use $dg-delegated-full-review when no other full-review workflow is available.

https://linear.app/discourse-graphs/issue/ENG-2368/revoke-write-privileges-on-the-my-spaces-and-my-accounts-views


Devin Review

@linear-code

linear-code Bot commented Oct 6, 2026

Copy link
Copy Markdown

ENG-2368

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
discourse-graph Ready Ready Preview Oct 6, 2026 1:44am UTC

Request Review

@supabase

supabase Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Updates to Preview Branch (eng-2368-revoke-write-privileges-on-the-my_spaces-and-my_accounts) ↗︎

Deployments Status Updated
Database ✅ Tue, 06 Oct 2026 01:42:49 UTC
Services ✅ Tue, 06 Oct 2026 01:42:49 UTC
APIs ✅ Tue, 06 Oct 2026 01:42:49 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations ✅ Tue, 06 Oct 2026 01:42:56 UTC
Migrations ✅ Tue, 06 Oct 2026 01:42:59 UTC
Seeding ✅ Tue, 06 Oct 2026 01:43:02 UTC
Edge Functions ✅ Tue, 06 Oct 2026 01:43:05 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@mdroidian
mdroidian merged commit 5e74ae9 into main Oct 7, 2026
12 checks passed
@mdroidian
mdroidian deleted the eng-2368-revoke-write-privileges-on-the-my_spaces-and-my_accounts branch October 7, 2026 14:41

This branch was successfully deployed

1 active deployment
Preview — 7411c3fb Deployed Oct 6, 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.

2 participants