Skip to content

Move documentation for creating new schemas from "RestAPI" to "database" #39856

Closed

Description

@Shahboy21

Improve documentation

Link

1. Link to current schema documentation

2. Documentation I found just now that I know what I'm looking for

Describe the problem

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

  1. added
    documentation
    on Oct 25, 2025
  2. added
    external-issue
    on Oct 25, 2025
  3. danishaft commented on Oct 25, 2025

    @danishaft

    Hi, I'd like to work on this. Is it still open?

  4. added a commit that references this issue on Feb 10, 2026
    c396851
  5. added a commit that references this issue on Jul 8, 2026
    c84d985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationexternal-issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions