Replies: 1 comment
|
Hi @lstr168, You are correct that the "Enable Data API" toggle (which controls the underlying PostgREST service) is currently a UI-only feature in the dashboard and is not yet explicitly exposed as a boolean property in the Management API or the Terraform provider. However, you can achieve the same security hardening and environment consistency in your IaC using the following workarounds:
hcl Setting db_schemas to an empty list or a private-onlyschema effectively disables the REST API exposure.api = jsonencode({ db_schemas: What schemas are exposed. Summary for your Security Hardening: Restrict db_schemas to a schema that contains no tables (via Terraform). |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I’m new to Supabase and I’m using it mainly as a managed Postgres database behind my own backend API, so I don’t need the Data API exposure.
In the dashboard, I can see the Enable Data API toggle, but I couldn’t find a way to control this setting via:
Is disabling Enable Data API currently supported through Terraform/API and I’m missing it, or is this not exposed yet?
If not exposed yet, is this planned for future support?
I’d like to fully automate this in my IaC for environment consistency and security hardening.
All reactions