Skip to content

Enhance config.toml to support Saml 2 config #4423

Description

@IdrisCelik

The current GitHub integration for Supabase only supports deploying functions and migrations as code, but does not fully utilize the config.toml for the rest of the project configuration. This limits the ability to have the entire Supabase project configured as code, requiring additional manual or custom CI/CD setups.

Feature Request

Add options in the GitHub integration to selectively apply configuration categories from config.toml. This would allow users to manage and apply all relevant Supabase settings directly from their repository, enabling full configuration-as-code workflows.

Desired Behavior

  • Allow toggling which configuration sections from config.toml to apply during deployment, for example:

    • api (API exposure, ports, schemas, TLS)
    • db (database settings, pooling, migrations, network restrictions)
    • realtime (real-time settings)
    • storage (file storage, bucket limits/configuration)
    • auth (JWT expiry, signup rules, password policies, MFA, external providers)
    • functions (edge/serverless functions deployment, pruning) WITH --PRUNE (CLI OPTION) so that functions deleted in config also get deleted in the env, since the config.toml should be the source of truth
    • edge_runtime (runtime, debugging, versioning)
    • etc
  • When a commit or merge to the production branch happens, the integration should:

  • run supabase config push

Benefits

  • Enables full configuration as code for Supabase projects
  • Removes the need for custom CD pipelines to manage non-function/migration config (so i can get rid of the CD that does supabase config push)
  • Provides greater flexibility and control over project deployment via GitHub integration

Additional Notes

This enhancement would align the GitHub integration closer to a true "infrastructure as code" model, improving consistency and automation for Supabase users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions