Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Exposure is ignored in local Supabase / Local Dev / CLI #26194

Closed
activenode opened this issue May 12, 2024 · 1 comment
Closed

Schema Exposure is ignored in local Supabase / Local Dev / CLI #26194

activenode opened this issue May 12, 2024 · 1 comment
Labels
bug Something isn't working frontend Related to supabase dashboard postgREST related to PostgREST self-hosted Issues related to self hosting

Comments

@activenode
Copy link
Contributor

Bug report

Describe the bug

Change [api].schemas to be without public, same for extra_search_path.
After a completely fresh startup (deleted previous volume etc) it will not respect that setting and still expose the schema as part of running opening the REST API: http://127.0.0.1:54321/rest/v1/

Expected behavior

When the public schema is removedfrom the exposed API schemas, REST API should not list data bout it anymore.

Screenshots

image

/comments shouldn't be here.

System information

  • macOS
  • CLI Version 1.165.0
@activenode activenode added the bug Something isn't working label May 12, 2024
@encima encima added frontend Related to supabase dashboard postgREST related to PostgREST self-hosted Issues related to self hosting labels May 13, 2024
@encima
Copy link
Contributor

encima commented May 17, 2024

Hi there, thanks for opening!

The docs here may not be super clear but the summary of this is:

  • public and storage are always included (even when the config is set)
  • This config parameter is for exposing additional schemas

If you would like to open a PR to make this clearer in the docs, please do!
Or anyone can start a discussion to see if this is something we could support in the self-hosted version.

@encima encima closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Related to supabase dashboard postgREST related to PostgREST self-hosted Issues related to self hosting
Projects
Development

No branches or pull requests

2 participants