You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move documentation for creating new schemas from "RestAPI" to "database" #39856
Is the documentation missing? Or is it confusing? Why is it confusing?
This documentation is unfortunately buried in the last place I would expect. Needing to grant access to the service_role in new schema is not necessarily obvious elsewhere in the platform. This may be obvious to folks more familiar working to PostgreSQL, however for me it took a couple hours to figure out. I'll also note the built-in "assistant" was not able to point me to the correct documentation either.
Describe the improvement
A clear and concise description of the improvement.
Places for improvement:
Add a section to the fundamentals about the concepts of "rights" to a schema or a brief note on security policies. This may fit better in its own section, but calling out its existence may help newer users to PostgreSQL.
Add a note about adding service_role permissions to new schemas under the hardening the API article. Currently only anon and authenticated are mentioned here.
Replicate the using-custom-schemas guide outside of the REST API documentation and add a section about custom-schemas on the database page either under "Configuration, optimization, and testing" or one of the "Working with your database."
Additional context
Add any other context or screenshots that help clarify your question.
Possibly a note near the secret keys might also be nice, I had been under the impression the grants for service_role would be handled "automatically" under new schemas and the secret keys were like an all access pass.
Activity
danishaft commentedon Oct 25, 2025
Hi, I'd like to work on this. Is it still open?
docs: improve discoverability of custom schemas documentation
fix(docs): add service_role to USAGE grant in hardening-data-api guide
fix(docs): add service_role to USAGE grant in hardening-data-api guide
docs: improve discoverability of custom schemas documentation (#42634)