Files
supabase/apps/www/public/schemas/config/v1.json
supabase-cli-releaser[bot]andgithub-actions[bot] 8028b576ed chore: update cli config schemas (#54428)
Updates the published JSON Schemas from the supabase/cli release
workflow.

Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/cli/schemas`. Regenerate them in supabase/cli rather than editing
this folder.
Published versions below the current one are frozen and never rewritten.

Auto-merge is enabled: the PR squash-merges once a reviewer approves it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-12-02 09:20:05 +00:00

9447 lines
389 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://supabase.com/schemas/config/v1.json",
"title": "Supabase CLI config (CliConfig)",
"description": "The Supabase CLI's local project config document (supabase/config.toml or supabase/config.json).",
"allowTrailingCommas": true,
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The JSON Schema this file is validated against; editors use it for completion and validation.",
"examples": ["https://supabase.com/schemas/config/v1.json"]
},
"project_id": {
"type": "string",
"description": "A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`."
},
"analytics": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Logflare service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to the local Logflare service.",
"default": 54327,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"backend": {
"description": "Configure one of the supported backends:\n\n- `postgres`\n- `bigquery`",
"default": "postgres",
"anyOf": [
{
"type": "string",
"enum": ["postgres", "bigquery"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"vector_port": {
"description": "Port to the local syslog ingest service.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"gcp_project_id": {
"type": "string",
"description": "GCP project ID."
},
"gcp_project_number": {
"type": "string",
"description": "GCP project number."
},
"gcp_jwt_path": {
"type": "string",
"description": "Path to the GCP JWT file."
}
},
"additionalProperties": false
},
"api": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local PostgREST service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the API URL.",
"default": 54321,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"schemas": {
"default": ["public", "graphql_public"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Schemas to expose in your API. Tables, views and stored procedures in this schema will get API endpoints."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"extra_search_path": {
"default": ["public", "extensions"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Extra schemas to add to the search_path of every request."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_rows": {
"description": "The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests.",
"default": 1000,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"db_pool": {
"description": "Maximum number of connections in the local PostgREST database pool. Left unset, the default pool size is unchanged.",
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auto_expose_new_tables": {
"description": "Controls whether newly-created tables, views, sequences and functions in the `public` schema by `postgres` are reachable through the Data API roles (`anon`, `authenticated`, `service_role`) without explicit GRANTs. When unset, new entities are auto-exposed, matching the cloud default. Set to `false` to revoke the default Data API privileges so new entities require explicit GRANTs, matching a cloud project with the \"Default privileges for new entities\" toggle turned off.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"tls": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable HTTPS endpoints locally using a self-signed certificate.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"cert_path": {
"type": "string",
"description": "Path to the self-signed certificate."
},
"key_path": {
"type": "string",
"description": "Path to the self-signed certificate private key."
}
},
"additionalProperties": false
},
"external_url": {
"type": "string",
"description": "External URL for accessing the API server."
}
},
"additionalProperties": false
},
"auth": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local GoTrue service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"site_url": {
"type": "string",
"description": "The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails.",
"default": "http://127.0.0.1:3000"
},
"additional_redirect_urls": {
"description": "A list of exact URLs that auth providers are permitted to redirect to post authentication.",
"default": ["https://127.0.0.1:3000"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "A URL that auth providers are permitted to redirect to."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"jwt_expiry": {
"description": "How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week).",
"default": 3600,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"jwt_issuer": {
"type": "string",
"description": "JWT issuer URL."
},
"signing_keys_path": {
"type": "string",
"description": "Path to the JWT signing keys file."
},
"enable_refresh_token_rotation": {
"description": "If disabled, the refresh token will never expire.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"refresh_token_reuse_interval": {
"description": "Allows refresh tokens to be reused after expiry, up to the specified interval in seconds.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_manual_linking": {
"description": "Allow/disallow testing manual linking of accounts.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Allow/disallow new user signups to your project. Existing users can still sign in.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_anonymous_sign_ins": {
"description": "Allow/disallow anonymous sign-ins to your project.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"minimum_password_length": {
"description": "Passwords shorter than this value will be rejected as weak.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"password_requirements": {
"description": "Password character requirements.",
"default": "",
"anyOf": [
{
"type": "string",
"enum": [
"",
"letters_digits",
"lower_upper_letters_digits",
"lower_upper_letters_digits_symbols"
]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"publishable_key": {
"type": "string",
"description": "Publishable key override.",
"x-secret": true
},
"secret_key": {
"type": "string",
"description": "Secret key override.",
"x-secret": true
},
"jwt_secret": {
"type": "string",
"description": "JWT secret override.",
"x-secret": true
},
"anon_key": {
"type": "string",
"description": "Anon key override.",
"x-secret": true
},
"service_role_key": {
"type": "string",
"description": "Service role key override.",
"x-secret": true
},
"rate_limit": {
"type": "object",
"properties": {
"email_sent": {
"description": "Number of emails that can be sent per hour.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sms_sent": {
"description": "Number of SMS messages that can be sent per hour.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"anonymous_users": {
"description": "Number of anonymous sign-ins that can be made per hour per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"token_refresh": {
"description": "Number of sessions that can be refreshed in a 5 minute interval per IP address.",
"default": 150,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sign_in_sign_ups": {
"description": "Number of sign up and sign-in requests that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"token_verifications": {
"description": "Number of OTP or magic link verifications that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"web3": {
"description": "Number of Web3 logins that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"captcha": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable CAPTCHA verification.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"provider": {
"description": "CAPTCHA provider to use.",
"anyOf": [
{
"type": "string",
"enum": ["hcaptcha", "turnstile"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secret": {
"type": "string",
"description": "Secret key for the CAPTCHA provider.",
"x-secret": true
}
},
"additionalProperties": false
},
"hook": {
"type": "object",
"properties": {
"mfa_verification_attempt": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the mfa verification hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"password_verification_attempt": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the password verification hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"custom_access_token": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the custom access token hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"send_sms": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the send sms hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"send_email": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the send email hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"before_user_created": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the before user created hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"mfa": {
"type": "object",
"properties": {
"totp": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow TOTP enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow TOTP verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"phone": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow phone enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow phone verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_length": {
"description": "The length of the OTP code.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"template": {
"type": "string",
"description": "The template to use for the phone message.",
"default": "Your code is {{ .Code }}"
},
"max_frequency": {
"type": "string",
"description": "The maximum frequency of the phone messages.",
"default": "5s"
}
},
"additionalProperties": false
},
"web_authn": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow WebAuthn enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow WebAuthn verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"max_enrolled_factors": {
"description": "The maximum number of MFA factors a user can enroll in.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"sessions": {
"type": "object",
"properties": {
"timebox": {
"type": "string",
"description": "The timebox for the user session."
},
"inactivity_timeout": {
"type": "string",
"description": "The inactivity timeout for the user session."
}
},
"additionalProperties": false,
"default": {}
},
"email": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow/disallow the email provider. When false, users can't sign up or sign in with email (password, magic link or OTP); set `auth.enable_signup = false` to block new signups only.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Deprecated: use `auth.email.enabled` instead. Allow/disallow the email provider; when false, users can't sign up or sign in with email.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"double_confirm_changes": {
"description": "If enabled, a user will be required to confirm any email change on both the old and new email addresses.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_confirmations": {
"description": "If enabled, users need to confirm their email address before signing in.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secure_password_change": {
"description": "If enabled, users will need to reauthenticate or have logged in recently to change their password.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"require_current_password": {
"description": "If enabled, users will need to provide their current password to change their password, unless they signed in with a one-time password, magic link, or recovery link.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_frequency": {
"type": "string",
"description": "Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email.",
"default": "1s"
},
"otp_length": {
"description": "Number of characters used in the email OTP.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_expiry": {
"description": "Number of seconds before the email OTP expires.",
"default": 3600,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"smtp": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable SMTP for email delivery.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"host": {
"type": "string",
"description": "Hostname or IP address of the SMTP server."
},
"port": {
"description": "Port number of the SMTP server.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"user": {
"type": "string",
"description": "Username for authenticating with the SMTP server."
},
"pass": {
"type": "string",
"description": "Password for authenticating with the SMTP server.",
"x-secret": true
},
"admin_email": {
"type": "string",
"description": "Email used as the sender for emails sent from the application."
},
"sender_name": {
"type": "string",
"description": "Display name used as the sender for emails sent from the application."
}
},
"additionalProperties": false
},
"template": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"description": "Subject line for the email template.",
"default": ""
},
"content_path": {
"type": "string",
"description": "Path to the HTML template.",
"default": ""
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Custom email template configuration.",
"default": {}
},
{
"type": "null"
}
]
},
"notification": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"enabled": {
"description": "Enable the notification email.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"subject": {
"type": "string",
"description": "Subject line for the notification email.",
"default": ""
},
"content_path": {
"type": "string",
"description": "Path to the HTML notification template.",
"default": ""
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Notification email configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"sms": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow/disallow the phone provider. When false, users can't sign up or sign in with a phone number (password or SMS OTP); set `auth.enable_signup = false` to block new signups only.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Deprecated: use `auth.sms.enabled` instead. Allow/disallow the phone provider; when false, users can't sign up or sign in with a phone number.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_confirmations": {
"description": "If enabled, users need to confirm their phone number before signing in.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"template": {
"type": "string",
"description": "The template to use for the SMS message.",
"default": "Your code is {{ .Code }}"
},
"max_frequency": {
"type": "string",
"description": "Controls the minimum amount of time that must pass before sending another sms otp.",
"default": "5s"
},
"otp_length": {
"description": "Number of characters used in the SMS OTP.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_expiry": {
"description": "Number of seconds before the SMS OTP expires.",
"default": 60,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"twilio": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Twilio provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"account_sid": {
"type": "string",
"description": "The account SID for the Twilio API.",
"default": ""
},
"message_service_sid": {
"type": "string",
"description": "The message service SID for the Twilio API.",
"default": ""
},
"content_sid": {
"type": "string",
"description": "The content SID of a WhatsApp/Messaging Content Template for the Twilio API."
},
"auth_token": {
"type": "string",
"description": "The auth token for the Twilio API.",
"examples": ["env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)"],
"x-secret": true
}
},
"additionalProperties": false
},
"twilio_verify": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Twilio Verify provider for phone verification.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"account_sid": {
"type": "string",
"description": "The account SID for the Twilio API."
},
"message_service_sid": {
"type": "string",
"description": "The message service SID for the Twilio API."
},
"auth_token": {
"type": "string",
"description": "The auth token for the Twilio API.",
"x-secret": true
}
},
"additionalProperties": false
},
"messagebird": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable MessageBird provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"originator": {
"type": "string",
"description": "The originator of the SMS message."
},
"access_key": {
"type": "string",
"description": "The access key for the MessageBird API.",
"x-secret": true
}
},
"additionalProperties": false
},
"textlocal": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Textlocal provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sender": {
"type": "string",
"description": "The sender of the SMS message."
},
"api_key": {
"type": "string",
"description": "The API key for the Textlocal API.",
"x-secret": true
}
},
"additionalProperties": false
},
"vonage": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Vonage provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"from": {
"type": "string",
"description": "The sender of the SMS message."
},
"api_key": {
"type": "string",
"description": "The API key for the Vonage API."
},
"api_secret": {
"type": "string",
"description": "The API secret for the Vonage API.",
"x-secret": true
}
},
"additionalProperties": false
},
"test_otp": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Use pre-defined map of phone number to OTP for testing."
}
},
"additionalProperties": false
},
"external": {
"type": "object",
"properties": {
"apple": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Apple OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Apple OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Apple OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Apple OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Azure OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Azure OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Azure OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_AZURE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Azure OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"bitbucket": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Bitbucket OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Bitbucket OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Bitbucket OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_BITBUCKET_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Bitbucket OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"discord": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Discord OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Discord OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Discord OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_DISCORD_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Discord OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"facebook": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Facebook OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Facebook OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Facebook OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_FACEBOOK_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Facebook OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"figma": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Figma OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Figma OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Figma OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_FIGMA_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Figma OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"github": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the GitHub OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the GitHub OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the GitHub OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the GitHub OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"gitlab": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the GitLab OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the GitLab OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the GitLab OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GITLAB_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": "https://gitlab.com"
},
"redirect_uri": {
"type": "string",
"description": "The URI the GitLab OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"google": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Google OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Google OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Google OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Google OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"kakao": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Kakao OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Kakao OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Kakao OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_KAKAO_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Kakao OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"keycloak": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Keycloak OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Keycloak OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Keycloak OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_KEYCLOAK_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": "",
"examples": ["https://keycloak.example.com/realms/myrealm"]
},
"redirect_uri": {
"type": "string",
"description": "The URI the Keycloak OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"linkedin_oidc": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the LinkedIn OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the LinkedIn OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the LinkedIn OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_LINKEDIN_OIDC_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the LinkedIn OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"notion": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Notion OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Notion OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Notion OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_NOTION_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Notion OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"twitch": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Twitch OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Twitch OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Twitch OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_TWITCH_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Twitch OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"twitter": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Twitter OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Twitter OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Twitter OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_TWITTER_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Twitter OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"x": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the X OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the X OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the X OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_X_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the X OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"slack_oidc": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Slack OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Slack OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Slack OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_SLACK_OIDC_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Slack OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"spotify": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Spotify OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Spotify OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Spotify OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_SPOTIFY_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Spotify OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"workos": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the WorkOS OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the WorkOS OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the WorkOS OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_WORKOS_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the WorkOS OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"zoom": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Zoom OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Zoom OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Zoom OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_ZOOM_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Zoom OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"web3": {
"type": "object",
"properties": {
"solana": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this Web3 provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"ethereum": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this Web3 provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"oauth_server": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable OAuth server functionality.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"authorization_url_path": {
"type": "string",
"description": "Path for OAuth consent flow UI.",
"default": "/oauth/consent"
},
"allow_dynamic_registration": {
"description": "Allow dynamic client registration.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"third_party": {
"type": "object",
"properties": {
"firebase": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"project_id": {
"type": "string",
"description": "Firebase project ID."
}
},
"additionalProperties": false
},
"auth0": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"tenant": {
"type": "string",
"description": "Auth0 tenant."
},
"tenant_region": {
"type": "string",
"description": "Auth0 tenant region."
}
},
"additionalProperties": false
},
"aws_cognito": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"user_pool_id": {
"type": "string",
"description": "AWS Cognito user pool ID."
},
"user_pool_region": {
"type": "string",
"description": "AWS Cognito user pool region."
}
},
"additionalProperties": false
},
"clerk": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"domain": {
"type": "string",
"description": "Clerk domain."
}
},
"additionalProperties": false
},
"workos": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"issuer_url": {
"type": "string",
"description": "WorkOS issuer URL."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"db": {
"type": "object",
"properties": {
"port": {
"description": "Port to use for the local database URL.",
"default": 54322,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"shadow_port": {
"description": "Port used by db diff command to initialize the shadow database.",
"default": 54320,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"health_timeout": {
"type": "string",
"description": "Maximum amount of time to wait for health check when starting the local database.",
"default": "2m"
},
"major_version": {
"description": "The database major version to use. This has to be the same as your remote database's.",
"default": 17,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"orioledb_version": {
"type": "string",
"description": "OrioleDB version of the Postgres image to use for the local database. Requires `major_version` 15 or 17."
},
"pooler": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local PgBouncer service.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the local connection pooler.",
"default": 54329,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"pool_mode": {
"description": "Specifies when a server connection can be reused by other clients.",
"default": "transaction",
"anyOf": [
{
"type": "string",
"enum": ["transaction", "session"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"default_pool_size": {
"description": "How many server connections to allow per user/database pair.",
"default": 20,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_client_conn": {
"description": "Maximum number of client connections allowed.",
"default": 100,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"migrations": {
"type": "object",
"properties": {
"enabled": {
"description": "If disabled, migrations will be skipped during a db push or reset.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"schema_paths": {
"description": "Ordered list of schema files, directories, or glob patterns that describe your database.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Schema file path, directory, or glob relative to the supabase directory."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"checks": {
"type": "object",
"properties": {
"rls_disabled_in_public": {
"description": "Severity for rls_disabled_in_public: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_enabled_no_policy": {
"description": "Severity for rls_enabled_no_policy: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy_exists_rls_disabled": {
"description": "Severity for policy_exists_rls_disabled: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"security_definer_view": {
"description": "Severity for security_definer_view: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_policy_always_true": {
"description": "Severity for rls_policy_always_true: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sensitive_columns_exposed": {
"description": "Severity for sensitive_columns_exposed: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auth_users_exposed": {
"description": "Severity for auth_users_exposed: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"function_search_path_mutable": {
"description": "Severity for function_search_path_mutable: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_references_user_metadata": {
"description": "Severity for rls_references_user_metadata: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"exclude": {
"type": "object",
"properties": {
"rls_disabled_in_public": {
"description": "Objects rls_disabled_in_public skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_enabled_no_policy": {
"description": "Objects rls_enabled_no_policy skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy_exists_rls_disabled": {
"description": "Objects policy_exists_rls_disabled skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"security_definer_view": {
"description": "Objects security_definer_view skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_policy_always_true": {
"description": "Objects rls_policy_always_true skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sensitive_columns_exposed": {
"description": "Objects sensitive_columns_exposed skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auth_users_exposed": {
"description": "Objects auth_users_exposed skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"function_search_path_mutable": {
"description": "Objects function_search_path_mutable skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_references_user_metadata": {
"description": "Objects rls_references_user_metadata skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Objects each rule skips, keyed by rule."
}
},
"additionalProperties": false,
"description": "Security checks run on each migration. Each rule takes \"error\", \"warn\" or \"off\"; a rule left unset uses \"warn\". When migrations run against --db-url, this section is read only from the local config file."
}
},
"additionalProperties": false
},
"seed": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable seeding the database with SQL files.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sql_paths": {
"description": "Ordered list of seed files to load during db reset.",
"default": ["./seed.sql"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Path to a SQL file used to seed the database."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"effective_cache_size": {
"type": "string"
},
"logical_decoding_work_mem": {
"type": "string"
},
"maintenance_work_mem": {
"type": "string"
},
"max_connections": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_locks_per_transaction": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_maintenance_workers": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_workers": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_workers_per_gather": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_replication_slots": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_slot_wal_keep_size": {
"type": "string"
},
"max_standby_archive_delay": {
"type": "string"
},
"max_standby_streaming_delay": {
"type": "string"
},
"max_wal_size": {
"type": "string"
},
"max_wal_senders": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_worker_processes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"session_replication_role": {
"description": "Session replication role.",
"anyOf": [
{
"type": "string",
"enum": ["origin", "replica", "local"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"shared_buffers": {
"type": "string"
},
"statement_timeout": {
"type": "string"
},
"track_activity_query_size": {
"type": "string"
},
"track_commit_timestamp": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"wal_keep_size": {
"type": "string"
},
"wal_sender_timeout": {
"type": "string"
},
"work_mem": {
"type": "string"
}
},
"additionalProperties": false
},
"network_restrictions": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable management of network restrictions.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_cidrs": {
"description": "Allowed IPv4 CIDR blocks.",
"default": ["0.0.0.0/0"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_cidrs_v6": {
"description": "Allowed IPv6 CIDR blocks.",
"default": ["::/0"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"ssl_enforcement": {
"type": "object",
"properties": {
"enabled": {
"description": "Reject non-secure connections to the database.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"vault": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Vault secret value.",
"x-secret": true
},
"description": "Vault secrets."
}
},
"additionalProperties": false
},
"edge_runtime": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Edge Runtime service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy": {
"description": "Configure the supported request policy.",
"default": "per_worker",
"anyOf": [
{
"type": "string",
"enum": ["oneshot", "per_worker"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"inspector_port": {
"description": "Port to run the Edge Functions inspector on.",
"default": 8083,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"deno_version": {
"description": "The Deno major version to use.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secrets": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Secret value exposed to the edge runtime.",
"x-secret": true
},
"description": "Secrets exposed to the edge runtime."
}
},
"additionalProperties": false
},
"functions": {
"anyOf": [
{
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"anyOf": [
{
"type": "object",
"properties": {
"enabled": {
"description": "Controls whether a function is deployed or served.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_jwt": {
"description": "By default, deployed or locally served functions reject requests without a valid JWT.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"import_map": {
"type": "string",
"description": "Import map file to use for the Function.",
"default": ""
},
"entrypoint": {
"type": "string",
"description": "Entrypoint path to the Function. Defaults to \"functions/slug/index.ts\".",
"default": ""
},
"static_files": {
"description": "Static files to bundle with the function.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Static file glob for the function."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"env": {
"type": "object",
"patternProperties": {
"^[A-Z_][A-Z0-9_]*$": {
"type": "string",
"pattern": "^env\\((.*)\\)$",
"description": "Reference to a project environment variable available to the Function."
}
},
"description": "Environment variables from the project environment that this Function can access.",
"default": {}
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"description": "Function-specific configuration keyed by function slug.",
"default": {}
},
{
"type": "null"
}
]
},
"local_smtp": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local SMTP testing server.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the email testing server web interface.\n\nEmails sent with the local dev setup are monitored and available from the web interface.",
"default": 54324,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"smtp_port": {
"description": "Optional SMTP port to expose for local testing.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"pop3_port": {
"description": "Optional POP3 port to expose for local testing.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"admin_email": {
"type": "string",
"description": "Admin email address for test email sender metadata."
},
"sender_name": {
"type": "string",
"description": "Sender name for test email sender metadata."
}
},
"additionalProperties": false
},
"realtime": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Realtime service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"ip_version": {
"description": "Bind realtime via either IPv4 or IPv6.",
"default": "IPv4",
"anyOf": [
{
"type": "string",
"enum": ["IPv4", "IPv6"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_header_length": {
"description": "Maximum length of the HTTP header.",
"default": 4096,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"storage": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Storage service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"file_size_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"image_transformation": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable image transformation.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"buckets": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"public": {
"description": "Enable public access to the bucket.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"file_size_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_mime_types": {
"description": "The list of allowed MIME types for the bucket.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "A MIME type allowed for the bucket."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"objects_path": {
"type": "string",
"description": "The path to the objects in the bucket.",
"default": ""
},
"objects_metadata_path": {
"type": "string",
"description": "The path to a JSON file mapping object paths under `objects_path` (`/`-separated) to their user metadata. Applied by `start`, `db reset` and `seed buckets`, not by automatic preview branch seeding."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Storage buckets configuration."
},
"s3_protocol": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow connections via S3 compatible clients.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"analytics": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable analytics buckets.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_namespaces": {
"description": "Maximum number of analytics namespaces.",
"default": 5,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_tables": {
"description": "Maximum number of analytics tables.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_catalogs": {
"description": "Maximum number of analytics catalogs.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"buckets": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "object"
},
{
"type": "array"
}
]
},
{
"type": "null"
}
]
},
"description": "Analytics bucket configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"vector": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable vector buckets.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_buckets": {
"description": "Maximum number of vector buckets.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_indexes": {
"description": "Maximum number of vector indexes.",
"default": 5,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"buckets": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "object"
},
{
"type": "array"
}
]
},
{
"type": "null"
}
]
},
"description": "Vector bucket configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"studio": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Supabase Studio dashboard.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for Supabase Studio.",
"default": 54323,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"api_url": {
"type": "string",
"description": "External URL of the API server that frontend connects to.",
"default": "http://127.0.0.1"
},
"openai_api_key": {
"type": "string",
"description": "OpenAI API key to use for Supabase AI in the Supabase Studio.",
"examples": ["env(OPENAI_API_KEY)"],
"x-secret": true
}
},
"additionalProperties": false
},
"compute": {
"anyOf": [
{
"type": "object",
"patternProperties": {
"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$": {
"type": "object",
"properties": {
"runtime": {
"type": "string",
"description": "Runtime the compute is built on: `dockerfile` to build the directory's own\nDockerfile, or one of the catalog runtimes (`node`, `deno`). Guessed from\nmarker files when unset.",
"examples": ["node"]
},
"size": {
"type": "string",
"description": "Instance size, denominated by memory. Each size implies its own vCPU count,\nso it is the one dial rather than two.",
"examples": ["2gb"]
},
"exposure": {
"type": "string",
"description": "How the compute is reached: `public` gives it an internet-facing URL,\n`private` keeps it reachable only from inside the project. Every deploy\nsends a complete spec, so the value recorded here is what keeps a private\ncompute private; `--exposure` overrides it for one deploy. Defaults to\n`public`.",
"examples": ["private"]
},
"secrets_scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
],
"description": "controls whether secrets are available: `all` gives access to all defined secrets,\n`supabase` exposes only the `SUPABASE_*` defaults, `none` hides all\nsecrets, `string[]` gives only the secrets named in the list.",
"default": "all",
"examples": ["all", ["STRIPE_KEY", "LLM_APIKEY"]]
},
"instances": {
"description": "Number of instances to run. Every deploy sends a complete spec, so a count\nrecorded here is what keeps a scaled compute scaled; `--instances` overrides\nit for one deploy. Defaults to 1.",
"examples": [3],
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"source": {
"type": "string",
"description": "Directory holding the compute's code, relative to the project root, when it\ndoes not live at `supabase/compute/<name>/`.",
"examples": ["packages/api"]
},
"exclude": {
"description": "Patterns for paths to leave out of the uploaded build context, read the way\n`.gitignore` reads them: a pattern without `/` matches that name at any depth,\none with `/` is anchored at the compute's source directory, a trailing `/`\nmatches directories only, and `**` spans directories. Excluding a directory\nexcludes everything under it; re-inclusion (`!`) is not supported. Only the\npatterns recorded here are excluded, so a compute with no list uploads its source\ndirectory whole.",
"examples": [["node_modules", ".env"]],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"description": "Compute-specific configuration keyed by compute name.",
"default": {}
},
{
"type": "null"
}
]
},
"experimental": {
"type": "object",
"properties": {
"compute": {
"description": "Enable the experimental compute command family.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"warehouse": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the experimental warehouse command family.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"stack": {
"description": "Use the new local stack backend for start, stop, and status, and for --local targets of the db, migration, test db, gen types, inspect, and pull command families.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"orioledb_version": {
"type": "string",
"enum": [""],
"description": "Removed: use `db.orioledb_version` instead. Only an empty value is accepted, for older generated config files."
},
"s3_host": {
"type": "string",
"description": "S3 bucket URL.",
"examples": ["<bucket_name>.s3-<region>.amazonaws.com", "env(S3_HOST)"]
},
"s3_region": {
"type": "string",
"description": "S3 bucket region.",
"examples": ["us-east-1", "env(S3_REGION)"]
},
"s3_access_key": {
"type": "string",
"description": "S3 access key.",
"examples": ["env(S3_ACCESS_KEY)"],
"x-secret": true
},
"s3_secret_key": {
"type": "string",
"description": "S3 secret key.",
"examples": ["env(S3_SECRET_KEY)"],
"x-secret": true
},
"webhooks": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable experimental webhooks.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"pgdelta": {
"type": "object",
"properties": {
"enabled": {
"description": "Use pg-delta as the schema diff engine for db diff / db pull (the default). Set false to fall back to the legacy migra engine.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"declarative_schema_path": {
"type": "string",
"description": "Directory under supabase/ where declarative schema files are written.",
"examples": ["./schemas"]
},
"format_options": {
"type": "string",
"description": "JSON string passed through to pg-delta SQL formatting. When omitted, SQL is formatted with uppercase keywords, indent 2, max width 180, trailing commas, and column/key alignment. Set to \"null\" to emit raw, unformatted SQL.",
"examples": [
"{\"keywordCase\":\"upper\",\"indent\":2,\"maxWidth\":180,\"commaStyle\":\"trailing\"}"
]
}
},
"additionalProperties": false
},
"inspect": {
"type": "object",
"properties": {
"rules": {
"type": "array",
"description": "Inspection rules.",
"default": [],
"items": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Inspection query."
},
"name": {
"type": "string",
"description": "Inspection rule name."
},
"pass": {
"type": "string",
"description": "Success message."
},
"fail": {
"type": "string",
"description": "Failure message."
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"local": {
"type": "object",
"properties": {
"services": {
"type": "object",
"properties": {
"default": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier for every service without its own entry: `linked` (the linked project's version) or `bundled` (the version shipped with this CLI).",
"examples": ["bundled", "linked"]
}
},
"required": ["version"],
"additionalProperties": false
},
"database": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"auth": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"rest": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"realtime": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"storage": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"imgproxy": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"functions": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"studio": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"pgmeta": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"mail": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"analytics": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
},
"pooler": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Version specifier: `linked` (the linked project's version), `bundled` (the version shipped with this CLI), or an upstream version optionally followed by `-r<N>`. A `-orioledb` version is only valid for `database`.",
"examples": ["bundled", "v2.197.0", "v1.30.2-r1", "17.6.1.200-orioledb"]
},
"container": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "Memory limit for the service container, as a size such as `512MiB` or `1GiB` (1024-based, case-insensitive; a bare number is bytes). At least `6MiB`; swap is disabled.",
"examples": ["512MiB", "1GiB"]
},
"cpus": {
"description": "CPU limit for the service container, in CPUs; fractions down to `0.01` are allowed (for example `0.5`).",
"examples": [0.5, 1, 2],
"anyOf": [
{
"type": "number",
"minimum": 0.01
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Resource limits applied to the service container. Used only when the local stack runs in containers (Docker or Podman); the native runtime ignores this table."
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"description": "Per-service settings for the local stack, keyed by service: version specifiers and container resource limits."
}
},
"additionalProperties": false,
"description": "Local-stack-only settings; hosted commands never read this section."
},
"remotes": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"project_id": {
"type": "string",
"description": "Remote project reference.",
"default": ""
},
"analytics": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Logflare service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to the local Logflare service.",
"default": 54327,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"backend": {
"description": "Configure one of the supported backends:\n\n- `postgres`\n- `bigquery`",
"default": "postgres",
"anyOf": [
{
"type": "string",
"enum": ["postgres", "bigquery"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"vector_port": {
"description": "Port to the local syslog ingest service.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"gcp_project_id": {
"type": "string",
"description": "GCP project ID."
},
"gcp_project_number": {
"type": "string",
"description": "GCP project number."
},
"gcp_jwt_path": {
"type": "string",
"description": "Path to the GCP JWT file."
}
},
"additionalProperties": false
},
"api": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local PostgREST service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the API URL.",
"default": 54321,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"schemas": {
"default": ["public", "graphql_public"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Schemas to expose in your API. Tables, views and stored procedures in this schema will get API endpoints."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"extra_search_path": {
"default": ["public", "extensions"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Extra schemas to add to the search_path of every request."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_rows": {
"description": "The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests.",
"default": 1000,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"db_pool": {
"description": "Maximum number of connections in the local PostgREST database pool. Left unset, the default pool size is unchanged.",
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auto_expose_new_tables": {
"description": "Controls whether newly-created tables, views, sequences and functions in the `public` schema by `postgres` are reachable through the Data API roles (`anon`, `authenticated`, `service_role`) without explicit GRANTs. When unset, new entities are auto-exposed, matching the cloud default. Set to `false` to revoke the default Data API privileges so new entities require explicit GRANTs, matching a cloud project with the \"Default privileges for new entities\" toggle turned off.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"tls": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable HTTPS endpoints locally using a self-signed certificate.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"cert_path": {
"type": "string",
"description": "Path to the self-signed certificate."
},
"key_path": {
"type": "string",
"description": "Path to the self-signed certificate private key."
}
},
"additionalProperties": false
},
"external_url": {
"type": "string",
"description": "External URL for accessing the API server."
}
},
"additionalProperties": false
},
"auth": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local GoTrue service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"site_url": {
"type": "string",
"description": "The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails.",
"default": "http://127.0.0.1:3000"
},
"additional_redirect_urls": {
"description": "A list of exact URLs that auth providers are permitted to redirect to post authentication.",
"default": ["https://127.0.0.1:3000"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "A URL that auth providers are permitted to redirect to."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"jwt_expiry": {
"description": "How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week).",
"default": 3600,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"jwt_issuer": {
"type": "string",
"description": "JWT issuer URL."
},
"signing_keys_path": {
"type": "string",
"description": "Path to the JWT signing keys file."
},
"enable_refresh_token_rotation": {
"description": "If disabled, the refresh token will never expire.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"refresh_token_reuse_interval": {
"description": "Allows refresh tokens to be reused after expiry, up to the specified interval in seconds.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_manual_linking": {
"description": "Allow/disallow testing manual linking of accounts.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Allow/disallow new user signups to your project. Existing users can still sign in.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_anonymous_sign_ins": {
"description": "Allow/disallow anonymous sign-ins to your project.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"minimum_password_length": {
"description": "Passwords shorter than this value will be rejected as weak.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"password_requirements": {
"description": "Password character requirements.",
"default": "",
"anyOf": [
{
"type": "string",
"enum": [
"",
"letters_digits",
"lower_upper_letters_digits",
"lower_upper_letters_digits_symbols"
]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"publishable_key": {
"type": "string",
"description": "Publishable key override.",
"x-secret": true
},
"secret_key": {
"type": "string",
"description": "Secret key override.",
"x-secret": true
},
"jwt_secret": {
"type": "string",
"description": "JWT secret override.",
"x-secret": true
},
"anon_key": {
"type": "string",
"description": "Anon key override.",
"x-secret": true
},
"service_role_key": {
"type": "string",
"description": "Service role key override.",
"x-secret": true
},
"rate_limit": {
"type": "object",
"properties": {
"email_sent": {
"description": "Number of emails that can be sent per hour.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sms_sent": {
"description": "Number of SMS messages that can be sent per hour.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"anonymous_users": {
"description": "Number of anonymous sign-ins that can be made per hour per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"token_refresh": {
"description": "Number of sessions that can be refreshed in a 5 minute interval per IP address.",
"default": 150,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sign_in_sign_ups": {
"description": "Number of sign up and sign-in requests that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"token_verifications": {
"description": "Number of OTP or magic link verifications that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"web3": {
"description": "Number of Web3 logins that can be made in a 5 minute interval per IP address.",
"default": 30,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"captcha": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable CAPTCHA verification.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"provider": {
"description": "CAPTCHA provider to use.",
"anyOf": [
{
"type": "string",
"enum": ["hcaptcha", "turnstile"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secret": {
"type": "string",
"description": "Secret key for the CAPTCHA provider.",
"x-secret": true
}
},
"additionalProperties": false
},
"hook": {
"type": "object",
"properties": {
"mfa_verification_attempt": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the mfa verification hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"password_verification_attempt": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the password verification hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"custom_access_token": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the custom access token hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"send_sms": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the send sms hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"send_email": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the send email hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
},
"before_user_created": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable or disable the before user created hook.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"uri": {
"type": "string",
"description": "The URI of the postgres function or HTTP endpoint to call."
},
"secrets": {
"type": "string",
"description": "Secret value to pass to the function or endpoint.",
"x-secret": true
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"mfa": {
"type": "object",
"properties": {
"totp": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow TOTP enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow TOTP verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"phone": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow phone enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow phone verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_length": {
"description": "The length of the OTP code.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"template": {
"type": "string",
"description": "The template to use for the phone message.",
"default": "Your code is {{ .Code }}"
},
"max_frequency": {
"type": "string",
"description": "The maximum frequency of the phone messages.",
"default": "5s"
}
},
"additionalProperties": false
},
"web_authn": {
"type": "object",
"properties": {
"enroll_enabled": {
"description": "Allow/disallow WebAuthn enrollment for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_enabled": {
"description": "Allow/disallow WebAuthn verification for users.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"max_enrolled_factors": {
"description": "The maximum number of MFA factors a user can enroll in.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"sessions": {
"type": "object",
"properties": {
"timebox": {
"type": "string",
"description": "The timebox for the user session."
},
"inactivity_timeout": {
"type": "string",
"description": "The inactivity timeout for the user session."
}
},
"additionalProperties": false,
"default": {}
},
"email": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow/disallow the email provider. When false, users can't sign up or sign in with email (password, magic link or OTP); set `auth.enable_signup = false` to block new signups only.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Deprecated: use `auth.email.enabled` instead. Allow/disallow the email provider; when false, users can't sign up or sign in with email.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"double_confirm_changes": {
"description": "If enabled, a user will be required to confirm any email change on both the old and new email addresses.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_confirmations": {
"description": "If enabled, users need to confirm their email address before signing in.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secure_password_change": {
"description": "If enabled, users will need to reauthenticate or have logged in recently to change their password.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"require_current_password": {
"description": "If enabled, users will need to provide their current password to change their password, unless they signed in with a one-time password, magic link, or recovery link.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_frequency": {
"type": "string",
"description": "Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email.",
"default": "1s"
},
"otp_length": {
"description": "Number of characters used in the email OTP.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_expiry": {
"description": "Number of seconds before the email OTP expires.",
"default": 3600,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"smtp": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable SMTP for email delivery.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"host": {
"type": "string",
"description": "Hostname or IP address of the SMTP server."
},
"port": {
"description": "Port number of the SMTP server.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"user": {
"type": "string",
"description": "Username for authenticating with the SMTP server."
},
"pass": {
"type": "string",
"description": "Password for authenticating with the SMTP server.",
"x-secret": true
},
"admin_email": {
"type": "string",
"description": "Email used as the sender for emails sent from the application."
},
"sender_name": {
"type": "string",
"description": "Display name used as the sender for emails sent from the application."
}
},
"additionalProperties": false
},
"template": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"subject": {
"type": "string",
"description": "Subject line for the email template.",
"default": ""
},
"content_path": {
"type": "string",
"description": "Path to the HTML template.",
"default": ""
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Custom email template configuration.",
"default": {}
},
{
"type": "null"
}
]
},
"notification": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"enabled": {
"description": "Enable the notification email.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"subject": {
"type": "string",
"description": "Subject line for the notification email.",
"default": ""
},
"content_path": {
"type": "string",
"description": "Path to the HTML notification template.",
"default": ""
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Notification email configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"sms": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow/disallow the phone provider. When false, users can't sign up or sign in with a phone number (password or SMS OTP); set `auth.enable_signup = false` to block new signups only.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_signup": {
"description": "Deprecated: use `auth.sms.enabled` instead. Allow/disallow the phone provider; when false, users can't sign up or sign in with a phone number.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"enable_confirmations": {
"description": "If enabled, users need to confirm their phone number before signing in.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"template": {
"type": "string",
"description": "The template to use for the SMS message.",
"default": "Your code is {{ .Code }}"
},
"max_frequency": {
"type": "string",
"description": "Controls the minimum amount of time that must pass before sending another sms otp.",
"default": "5s"
},
"otp_length": {
"description": "Number of characters used in the SMS OTP.",
"default": 6,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"otp_expiry": {
"description": "Number of seconds before the SMS OTP expires.",
"default": 60,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"twilio": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Twilio provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"account_sid": {
"type": "string",
"description": "The account SID for the Twilio API.",
"default": ""
},
"message_service_sid": {
"type": "string",
"description": "The message service SID for the Twilio API.",
"default": ""
},
"content_sid": {
"type": "string",
"description": "The content SID of a WhatsApp/Messaging Content Template for the Twilio API."
},
"auth_token": {
"type": "string",
"description": "The auth token for the Twilio API.",
"examples": ["env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)"],
"x-secret": true
}
},
"additionalProperties": false
},
"twilio_verify": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Twilio Verify provider for phone verification.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"account_sid": {
"type": "string",
"description": "The account SID for the Twilio API."
},
"message_service_sid": {
"type": "string",
"description": "The message service SID for the Twilio API."
},
"auth_token": {
"type": "string",
"description": "The auth token for the Twilio API.",
"x-secret": true
}
},
"additionalProperties": false
},
"messagebird": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable MessageBird provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"originator": {
"type": "string",
"description": "The originator of the SMS message."
},
"access_key": {
"type": "string",
"description": "The access key for the MessageBird API.",
"x-secret": true
}
},
"additionalProperties": false
},
"textlocal": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Textlocal provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sender": {
"type": "string",
"description": "The sender of the SMS message."
},
"api_key": {
"type": "string",
"description": "The API key for the Textlocal API.",
"x-secret": true
}
},
"additionalProperties": false
},
"vonage": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable/disable Vonage provider for phone login.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"from": {
"type": "string",
"description": "The sender of the SMS message."
},
"api_key": {
"type": "string",
"description": "The API key for the Vonage API."
},
"api_secret": {
"type": "string",
"description": "The API secret for the Vonage API.",
"x-secret": true
}
},
"additionalProperties": false
},
"test_otp": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Use pre-defined map of phone number to OTP for testing."
}
},
"additionalProperties": false
},
"external": {
"type": "object",
"properties": {
"apple": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Apple OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Apple OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Apple OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Apple OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Azure OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Azure OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Azure OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_AZURE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Azure OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"bitbucket": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Bitbucket OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Bitbucket OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Bitbucket OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_BITBUCKET_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Bitbucket OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"discord": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Discord OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Discord OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Discord OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_DISCORD_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Discord OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"facebook": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Facebook OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Facebook OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Facebook OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_FACEBOOK_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Facebook OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"figma": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Figma OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Figma OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Figma OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_FIGMA_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Figma OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"github": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the GitHub OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the GitHub OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the GitHub OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the GitHub OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"gitlab": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the GitLab OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the GitLab OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the GitLab OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GITLAB_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": "https://gitlab.com"
},
"redirect_uri": {
"type": "string",
"description": "The URI the GitLab OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"google": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Google OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Google OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Google OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Google OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"kakao": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Kakao OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Kakao OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Kakao OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_KAKAO_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Kakao OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"keycloak": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Keycloak OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Keycloak OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Keycloak OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_KEYCLOAK_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": "",
"examples": ["https://keycloak.example.com/realms/myrealm"]
},
"redirect_uri": {
"type": "string",
"description": "The URI the Keycloak OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"linkedin_oidc": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the LinkedIn OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the LinkedIn OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the LinkedIn OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_LINKEDIN_OIDC_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the LinkedIn OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"notion": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Notion OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Notion OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Notion OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_NOTION_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Notion OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"twitch": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Twitch OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Twitch OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Twitch OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_TWITCH_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Twitch OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"twitter": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Twitter OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Twitter OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Twitter OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_TWITTER_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Twitter OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"x": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the X OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the X OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the X OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_X_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the X OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"slack_oidc": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Slack OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Slack OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Slack OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_SLACK_OIDC_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Slack OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"spotify": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Spotify OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Spotify OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Spotify OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_SPOTIFY_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Spotify OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"workos": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the WorkOS OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the WorkOS OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the WorkOS OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_WORKOS_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the WorkOS OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"zoom": {
"type": "object",
"properties": {
"enabled": {
"description": "Use the Zoom OAuth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"client_id": {
"type": "string",
"description": "Client ID for the Zoom OAuth provider.",
"default": ""
},
"secret": {
"type": "string",
"description": "Client secret for the Zoom OAuth provider.\n\nDO NOT commit your OAuth provider secret to git. Use environment variable substitution instead.",
"examples": ["env(SUPABASE_AUTH_EXTERNAL_ZOOM_SECRET)"],
"x-secret": true
},
"url": {
"type": "string",
"description": "The base URL used for constructing the URLs to request authorization and access tokens.",
"default": ""
},
"redirect_uri": {
"type": "string",
"description": "The URI the Zoom OAuth2 provider will redirect to with the code and state values.",
"default": ""
},
"skip_nonce_check": {
"description": "If true, the nonce check will be skipped.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"email_optional": {
"description": "If true, authentication succeeds when the provider does not return an email address.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"web3": {
"type": "object",
"properties": {
"solana": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this Web3 provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"ethereum": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this Web3 provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"oauth_server": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable OAuth server functionality.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"authorization_url_path": {
"type": "string",
"description": "Path for OAuth consent flow UI.",
"default": "/oauth/consent"
},
"allow_dynamic_registration": {
"description": "Allow dynamic client registration.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"third_party": {
"type": "object",
"properties": {
"firebase": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"project_id": {
"type": "string",
"description": "Firebase project ID."
}
},
"additionalProperties": false
},
"auth0": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"tenant": {
"type": "string",
"description": "Auth0 tenant."
},
"tenant_region": {
"type": "string",
"description": "Auth0 tenant region."
}
},
"additionalProperties": false
},
"aws_cognito": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"user_pool_id": {
"type": "string",
"description": "AWS Cognito user pool ID."
},
"user_pool_region": {
"type": "string",
"description": "AWS Cognito user pool region."
}
},
"additionalProperties": false
},
"clerk": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"domain": {
"type": "string",
"description": "Clerk domain."
}
},
"additionalProperties": false
},
"workos": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable this third-party auth provider.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"issuer_url": {
"type": "string",
"description": "WorkOS issuer URL."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"db": {
"type": "object",
"properties": {
"port": {
"description": "Port to use for the local database URL.",
"default": 54322,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"shadow_port": {
"description": "Port used by db diff command to initialize the shadow database.",
"default": 54320,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"health_timeout": {
"type": "string",
"description": "Maximum amount of time to wait for health check when starting the local database.",
"default": "2m"
},
"major_version": {
"description": "The database major version to use. This has to be the same as your remote database's.",
"default": 17,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"orioledb_version": {
"type": "string",
"description": "OrioleDB version of the Postgres image to use for the local database. Requires `major_version` 15 or 17."
},
"pooler": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local PgBouncer service.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the local connection pooler.",
"default": 54329,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"pool_mode": {
"description": "Specifies when a server connection can be reused by other clients.",
"default": "transaction",
"anyOf": [
{
"type": "string",
"enum": ["transaction", "session"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"default_pool_size": {
"description": "How many server connections to allow per user/database pair.",
"default": 20,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_client_conn": {
"description": "Maximum number of client connections allowed.",
"default": 100,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"migrations": {
"type": "object",
"properties": {
"enabled": {
"description": "If disabled, migrations will be skipped during a db push or reset.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"schema_paths": {
"description": "Ordered list of schema files, directories, or glob patterns that describe your database.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Schema file path, directory, or glob relative to the supabase directory."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"checks": {
"type": "object",
"properties": {
"rls_disabled_in_public": {
"description": "Severity for rls_disabled_in_public: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_enabled_no_policy": {
"description": "Severity for rls_enabled_no_policy: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy_exists_rls_disabled": {
"description": "Severity for policy_exists_rls_disabled: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"security_definer_view": {
"description": "Severity for security_definer_view: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_policy_always_true": {
"description": "Severity for rls_policy_always_true: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sensitive_columns_exposed": {
"description": "Severity for sensitive_columns_exposed: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auth_users_exposed": {
"description": "Severity for auth_users_exposed: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"function_search_path_mutable": {
"description": "Severity for function_search_path_mutable: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_references_user_metadata": {
"description": "Severity for rls_references_user_metadata: \"error\" will block the migration; until blocking ships it reports like \"warn\". \"warn\" reports it, \"off\" skips the rule.",
"default": "warn",
"anyOf": [
{
"type": "string",
"enum": ["error", "warn", "off"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"exclude": {
"type": "object",
"properties": {
"rls_disabled_in_public": {
"description": "Objects rls_disabled_in_public skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_enabled_no_policy": {
"description": "Objects rls_enabled_no_policy skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy_exists_rls_disabled": {
"description": "Objects policy_exists_rls_disabled skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"security_definer_view": {
"description": "Objects security_definer_view skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_policy_always_true": {
"description": "Objects rls_policy_always_true skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sensitive_columns_exposed": {
"description": "Objects sensitive_columns_exposed skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"auth_users_exposed": {
"description": "Objects auth_users_exposed skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"function_search_path_mutable": {
"description": "Objects function_search_path_mutable skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"rls_references_user_metadata": {
"description": "Objects rls_references_user_metadata skips, each written \"schema.name\", for example \"public.countries\". An entry like \"public.set_updated_at\" matches every overload of that function.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!\\s)[^.]*[^.\\s]\\.(?!\\s)[\\s\\S]*\\S(?![\\s\\S])"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false,
"description": "Objects each rule skips, keyed by rule."
}
},
"additionalProperties": false,
"description": "Security checks run on each migration. Each rule takes \"error\", \"warn\" or \"off\"; a rule left unset uses \"warn\". When migrations run against --db-url, this section is read only from the local config file."
}
},
"additionalProperties": false
},
"seed": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable seeding the database with SQL files.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"sql_paths": {
"description": "Ordered list of seed files to load during db reset.",
"default": ["./seed.sql"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Path to a SQL file used to seed the database."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"effective_cache_size": {
"type": "string"
},
"logical_decoding_work_mem": {
"type": "string"
},
"maintenance_work_mem": {
"type": "string"
},
"max_connections": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_locks_per_transaction": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_maintenance_workers": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_workers": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_parallel_workers_per_gather": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_replication_slots": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_slot_wal_keep_size": {
"type": "string"
},
"max_standby_archive_delay": {
"type": "string"
},
"max_standby_streaming_delay": {
"type": "string"
},
"max_wal_size": {
"type": "string"
},
"max_wal_senders": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_worker_processes": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"session_replication_role": {
"description": "Session replication role.",
"anyOf": [
{
"type": "string",
"enum": ["origin", "replica", "local"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"shared_buffers": {
"type": "string"
},
"statement_timeout": {
"type": "string"
},
"track_activity_query_size": {
"type": "string"
},
"track_commit_timestamp": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"wal_keep_size": {
"type": "string"
},
"wal_sender_timeout": {
"type": "string"
},
"work_mem": {
"type": "string"
}
},
"additionalProperties": false
},
"network_restrictions": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable management of network restrictions.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_cidrs": {
"description": "Allowed IPv4 CIDR blocks.",
"default": ["0.0.0.0/0"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_cidrs_v6": {
"description": "Allowed IPv6 CIDR blocks.",
"default": ["::/0"],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"ssl_enforcement": {
"type": "object",
"properties": {
"enabled": {
"description": "Reject non-secure connections to the database.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"vault": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Vault secret value.",
"x-secret": true
},
"description": "Vault secrets."
}
},
"additionalProperties": false
},
"edge_runtime": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Edge Runtime service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"policy": {
"description": "Configure the supported request policy.",
"default": "per_worker",
"anyOf": [
{
"type": "string",
"enum": ["oneshot", "per_worker"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"inspector_port": {
"description": "Port to run the Edge Functions inspector on.",
"default": 8083,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"deno_version": {
"description": "The Deno major version to use.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"secrets": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Secret value exposed to the edge runtime.",
"x-secret": true
},
"description": "Secrets exposed to the edge runtime."
}
},
"additionalProperties": false
},
"functions": {
"anyOf": [
{
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"anyOf": [
{
"type": "object",
"properties": {
"enabled": {
"description": "Controls whether a function is deployed or served.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"verify_jwt": {
"description": "By default, deployed or locally served functions reject requests without a valid JWT.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"import_map": {
"type": "string",
"description": "Import map file to use for the Function.",
"default": ""
},
"entrypoint": {
"type": "string",
"description": "Entrypoint path to the Function. Defaults to \"functions/slug/index.ts\".",
"default": ""
},
"static_files": {
"description": "Static files to bundle with the function.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "Static file glob for the function."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"env": {
"type": "object",
"patternProperties": {
"^[A-Z_][A-Z0-9_]*$": {
"type": "string",
"pattern": "^env\\((.*)\\)$",
"description": "Reference to a project environment variable available to the Function."
}
},
"description": "Environment variables from the project environment that this Function can access.",
"default": {}
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"description": "Function-specific configuration keyed by function slug.",
"default": {}
},
{
"type": "null"
}
]
},
"local_smtp": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local SMTP testing server.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for the email testing server web interface.\n\nEmails sent with the local dev setup are monitored and available from the web interface.",
"default": 54324,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"smtp_port": {
"description": "Optional SMTP port to expose for local testing.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"pop3_port": {
"description": "Optional POP3 port to expose for local testing.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"admin_email": {
"type": "string",
"description": "Admin email address for test email sender metadata."
},
"sender_name": {
"type": "string",
"description": "Sender name for test email sender metadata."
}
},
"additionalProperties": false
},
"realtime": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Realtime service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"ip_version": {
"description": "Bind realtime via either IPv4 or IPv6.",
"default": "IPv4",
"anyOf": [
{
"type": "string",
"enum": ["IPv4", "IPv6"]
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_header_length": {
"description": "Maximum length of the HTTP header.",
"default": 4096,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"storage": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Storage service.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"file_size_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"image_transformation": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable image transformation.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"buckets": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"properties": {
"public": {
"description": "Enable public access to the bucket.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"file_size_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"allowed_mime_types": {
"description": "The list of allowed MIME types for the bucket.",
"default": [],
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"description": "A MIME type allowed for the bucket."
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"objects_path": {
"type": "string",
"description": "The path to the objects in the bucket.",
"default": ""
},
"objects_metadata_path": {
"type": "string",
"description": "The path to a JSON file mapping object paths under `objects_path` (`/`-separated) to their user metadata. Applied by `start`, `db reset` and `seed buckets`, not by automatic preview branch seeding."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Storage buckets configuration."
},
"s3_protocol": {
"type": "object",
"properties": {
"enabled": {
"description": "Allow connections via S3 compatible clients.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"analytics": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable analytics buckets.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_namespaces": {
"description": "Maximum number of analytics namespaces.",
"default": 5,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_tables": {
"description": "Maximum number of analytics tables.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_catalogs": {
"description": "Maximum number of analytics catalogs.",
"default": 2,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"buckets": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "object"
},
{
"type": "array"
}
]
},
{
"type": "null"
}
]
},
"description": "Analytics bucket configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"vector": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable vector buckets.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_buckets": {
"description": "Maximum number of vector buckets.",
"default": 10,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"max_indexes": {
"description": "Maximum number of vector indexes.",
"default": 5,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"buckets": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"anyOf": [
{
"type": "object"
},
{
"type": "array"
}
]
},
{
"type": "null"
}
]
},
"description": "Vector bucket configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"studio": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the local Supabase Studio dashboard.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"port": {
"description": "Port to use for Supabase Studio.",
"default": 54323,
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"api_url": {
"type": "string",
"description": "External URL of the API server that frontend connects to.",
"default": "http://127.0.0.1"
},
"openai_api_key": {
"type": "string",
"description": "OpenAI API key to use for Supabase AI in the Supabase Studio.",
"examples": ["env(OPENAI_API_KEY)"],
"x-secret": true
}
},
"additionalProperties": false
},
"compute": {
"anyOf": [
{
"type": "object",
"patternProperties": {
"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$": {
"type": "object",
"properties": {
"runtime": {
"type": "string",
"description": "Runtime the compute is built on: `dockerfile` to build the directory's own\nDockerfile, or one of the catalog runtimes (`node`, `deno`). Guessed from\nmarker files when unset.",
"examples": ["node"]
},
"size": {
"type": "string",
"description": "Instance size, denominated by memory. Each size implies its own vCPU count,\nso it is the one dial rather than two.",
"examples": ["2gb"]
},
"exposure": {
"type": "string",
"description": "How the compute is reached: `public` gives it an internet-facing URL,\n`private` keeps it reachable only from inside the project. Every deploy\nsends a complete spec, so the value recorded here is what keeps a private\ncompute private; `--exposure` overrides it for one deploy. Defaults to\n`public`.",
"examples": ["private"]
},
"secrets_scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
],
"description": "controls whether secrets are available: `all` gives access to all defined secrets,\n`supabase` exposes only the `SUPABASE_*` defaults, `none` hides all\nsecrets, `string[]` gives only the secrets named in the list.",
"default": "all",
"examples": ["all", ["STRIPE_KEY", "LLM_APIKEY"]]
},
"instances": {
"description": "Number of instances to run. Every deploy sends a complete spec, so a count\nrecorded here is what keeps a scaled compute scaled; `--instances` overrides\nit for one deploy. Defaults to 1.",
"examples": [3],
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"source": {
"type": "string",
"description": "Directory holding the compute's code, relative to the project root, when it\ndoes not live at `supabase/compute/<name>/`.",
"examples": ["packages/api"]
},
"exclude": {
"description": "Patterns for paths to leave out of the uploaded build context, read the way\n`.gitignore` reads them: a pattern without `/` matches that name at any depth,\none with `/` is anchored at the compute's source directory, a trailing `/`\nmatches directories only, and `**` spans directories. Excluding a directory\nexcludes everything under it; re-inclusion (`!`) is not supported. Only the\npatterns recorded here are excluded, so a compute with no list uploads its source\ndirectory whole.",
"examples": [["node_modules", ".env"]],
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
}
},
"description": "Compute-specific configuration keyed by compute name.",
"default": {}
},
{
"type": "null"
}
]
},
"experimental": {
"type": "object",
"properties": {
"compute": {
"description": "Enable the experimental compute command family.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"warehouse": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable the experimental warehouse command family.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"stack": {
"description": "Use the new local stack backend for start, stop, and status, and for --local targets of the db, migration, test db, gen types, inspect, and pull command families.",
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"orioledb_version": {
"type": "string",
"enum": [""],
"description": "Removed: use `db.orioledb_version` instead. Only an empty value is accepted, for older generated config files."
},
"s3_host": {
"type": "string",
"description": "S3 bucket URL.",
"examples": ["<bucket_name>.s3-<region>.amazonaws.com", "env(S3_HOST)"]
},
"s3_region": {
"type": "string",
"description": "S3 bucket region.",
"examples": ["us-east-1", "env(S3_REGION)"]
},
"s3_access_key": {
"type": "string",
"description": "S3 access key.",
"examples": ["env(S3_ACCESS_KEY)"],
"x-secret": true
},
"s3_secret_key": {
"type": "string",
"description": "S3 secret key.",
"examples": ["env(S3_SECRET_KEY)"],
"x-secret": true
},
"webhooks": {
"type": "object",
"properties": {
"enabled": {
"description": "Enable experimental webhooks.",
"default": false,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
}
},
"additionalProperties": false
},
"pgdelta": {
"type": "object",
"properties": {
"enabled": {
"description": "Use pg-delta as the schema diff engine for db diff / db pull (the default). Set false to fall back to the legacy migra engine.",
"default": true,
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"pattern": "^env\\((.*)\\)$"
}
]
},
"declarative_schema_path": {
"type": "string",
"description": "Directory under supabase/ where declarative schema files are written.",
"examples": ["./schemas"]
},
"format_options": {
"type": "string",
"description": "JSON string passed through to pg-delta SQL formatting. When omitted, SQL is formatted with uppercase keywords, indent 2, max width 180, trailing commas, and column/key alignment. Set to \"null\" to emit raw, unformatted SQL.",
"examples": [
"{\"keywordCase\":\"upper\",\"indent\":2,\"maxWidth\":180,\"commaStyle\":\"trailing\"}"
]
}
},
"additionalProperties": false
},
"inspect": {
"type": "object",
"properties": {
"rules": {
"type": "array",
"description": "Inspection rules.",
"default": [],
"items": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Inspection query."
},
"name": {
"type": "string",
"description": "Inspection rule name."
},
"pass": {
"type": "string",
"description": "Success message."
},
"fail": {
"type": "string",
"description": "Failure message."
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"description": "Remote branch-specific project configuration.",
"default": {}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}