Bolt “database permissions error” on a new table: the October 30 private-by-default change

Short answer

Bolt's release notes say that starting 30 October 2026, Bolt database keeps tables private by default, and your app needs explicit permissions to read or write them. Fix: Check that it's a new table and which database you're on; Ask Bolt to fix the permissions, and only for that table; Check the policies Bolt wrote; Run the database security check; On a connected Supabase database, add the grants yourself; Test as a logged-out visitor.

You'll see:
  • Bolt shows a database permissions error after it adds a new table to your project
  • Data from a table created after 30 October 2026 won't load or save, while older tables still work
  • The preview or published site breaks right after you ask Bolt for a new feature that needs a new table

Why does this happen?

Bolt's release notes say that starting 30 October 2026, Bolt database keeps tables private by default, and your app needs explicit permissions to read or write them. It applies only to tables created after 30 October; existing databases aren't affected. Bolt should set up the right permissions when it creates a new table, and when it doesn't, the app gets a permissions error instead of the data. That's the safe way to fail: the table is closed, not exposed. Projects connected to your own Supabase database (Pro and Teams) are covered by Supabase's own 30 October grants change, which shows up as Postgres error 42501 “permission denied for table”.

How do you fix it?

  1. Check that it's a new table and which database you're on

    Open the database settings (database icon at the top center of the project) and look at the Tables page. If the failing table was created after 30 October and the tables your app used before still work, it's most likely this change. Bolt's troubleshooting page lists the same cause for a table permissions error. If the project uses a Supabase database you connected, jump to the Supabase step below.

  2. Ask Bolt to fix the permissions, and only for that table

    Bolt's documented fix is to ask Bolt to fix the table permissions. Name the table and say who should be able to do what, so the agent doesn't open more than it needs to. Our suggested prompt (not Bolt's wording):

    My app shows a database permissions error on the <table_name> table,
    which was created after October 30. Give the app only the read and write
    permissions this feature needs on that table. Signed-in users should only
    read and change their own rows. Don't make any other table public.
  3. Check the policies Bolt wrote

    Open the table and click View Policies. Bolt turns on row-level security (RLS) for the tables it creates, and its docs say a table without RLS can be read and changed by anyone. If your site has no sign-in, Bolt may write policies that let any visitor view, add, change and delete rows; the Security Audit tab flags those as “RLS Policy Always True”. That's fine only for data every visitor may edit. For private data (orders, messages, accounts), ask Bolt to add sign-in and limit the policies to signed-in owners.

  4. Run the database security check

    The Security Audit tab in database settings is available on all plans and uses the same checks as Supabase's Security Advisor. Click Ask Bolt to fix for anything it reports (the button appears only if you can edit the project). On paid plans you can also run a full project security audit from the Publish menu; Bolt says it doesn't use tokens and allows up to 30 audits a day, resetting at midnight UTC.

  5. On a connected Supabase database, add the grants yourself

    If the project uses your own Supabase database, new tables in public need explicit grants after Supabase's change. Grant each role only what it needs, then enable RLS and add policies. Don't paste grant all on all tables. Our Supabase 42501 guide (linked below) has a query to check whether your project has switched.

    grant select, insert, update, delete on table public.todos to authenticated;
    grant select, insert, update, delete on table public.todos to service_role;
    -- only if logged-out visitors must read it:
    -- grant select on table public.todos to anon;
    alter table public.todos enable row level security;
    create policy "Users read own todos"
    on public.todos for select
    to authenticated
    using ( (select auth.uid()) = user_id );
  6. Test as a logged-out visitor

    Open the published site in a private window, signed out, and confirm the feature works for the people it should and doesn't show other users' data. Rolling back won't undo a permission change: Bolt says restoring an earlier project version doesn't change your current Bolt or Supabase database, so describe the change you want in the chat instead.

Common questions

Are my existing Bolt tables affected?

No. Bolt says the change applies to tables created after 30 October 2026 and that existing databases aren't affected.

Is my data exposed because of this error?

Not because of this change. A private-by-default table refuses requests until the app has permission. The risk is the fix: a broad “make it public” rule or an “RLS Policy Always True” policy lets any visitor read or change that table, so check the policies after Bolt fixes it.

Is this the same as Supabase's October 30 change?

Bolt's release note doesn't say. Both changes take effect on 30 October 2026 and both close new tables until access is granted. Bolt's Security Audit uses Supabase's Security Advisor checks and a Bolt database can be claimed into Supabase, but Bolt doesn't document the role names or exact error text for its own database. On a Supabase database you connected yourself, the error is Postgres 42501 “permission denied for table”.

Can I fix it with SQL in Bolt's Query tab?

Bolt's Query editor can run any SQL, including statements that change data, but Bolt's documented fix for this error is to ask Bolt to fix the table permissions. Use the chat unless you know exactly which grants and policies the table needs.

Common with:

Related fixes

Related guides