mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
5f6060197e
Adds a top-level `logs:all` flag (default `true`) so self-hosted and local setups can hide the logs pages in Studio when Logflare isn't configured — no separate Studio build required. The flag itself works everywhere; the additional `ENABLED_FEATURES_LOGS_ALL` env-var override (from FE-3036) is the self-hosted escape hatch so deployers can flip it without a custom build — that part is a no-op on `IS_PLATFORM` because hosted feature gating flows through `profile.disabled_features` instead. Addresses [COM-205](https://linear.app/supabase/issue/COM-205/add-feature-flag-to-disable-all-logs-in-studio). **Added:** - `logs:all` feature flag in `enabled-features.json` + schema **Changed:** - Sidebar "Logs" nav entry is hidden when `logs:all` is off (same pattern as `reports:all` / `billing:all`) - Cmd-K "Logs Explorer" / "Auth Logs" / etc. routes are hidden when the flag is off - `LogsLayout` renders `<UnknownInterface />` (soft-404) when the flag is off — covers all ~18 logs pages in one spot - `/logs/index.tsx` applies the same soft-404 for the unified-logs entry point ## To test Needs to be tested locally (preview doesn't let you flip the flag — hosted gating is profile-driven, not env-driven). Two ways: - Temporarily edit `"logs:all": false` in `packages/common/enabled-features/enabled-features.json` and run `pnpm dev:studio`, or - Run Studio locally with `ENABLED_FEATURES_LOGS_ALL=false` (env-var path, same as how self-hosted deployers would use it) With the flag **off**: - Sidebar "Logs" entry is hidden - Cmd-K search for "Logs" / "Auth Logs" / "Postgres Logs" etc. returns nothing - Direct navigation to `/project/<ref>/logs`, `/project/<ref>/logs/explorer`, `/project/<ref>/logs/auth-logs`, `/project/<ref>/logs/postgres-logs` (etc.) all render the "Looking for something?" soft-404 with a Head back button With the flag **on** (default): everything works as it does today. **Check on the preview deploy too** — nothing should change, no behaviour difference on hosted. Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
132 lines
3.7 KiB
JSON
132 lines
3.7 KiB
JSON
{
|
|
"$schema": "./enabled-features.schema.json",
|
|
|
|
"account:show_security_settings": true,
|
|
|
|
"ai:opt_in_level_disabled": true,
|
|
"ai:opt_in_level_schema": true,
|
|
"ai:opt_in_level_schema_and_log": true,
|
|
"ai:opt_in_level_schema_and_log_and_data": true,
|
|
|
|
"authentication:sign_in_providers": true,
|
|
"authentication:third_party_auth": true,
|
|
"authentication:rate_limits": true,
|
|
"authentication:emails": true,
|
|
"authentication:multi_factor": true,
|
|
"authentication:attack_protection": true,
|
|
"authentication:performance": true,
|
|
|
|
"authentication:show_email_phone_columns": true,
|
|
"authentication:show_manual_linking": true,
|
|
"authentication:show_provider_filter": true,
|
|
"authentication:show_providers": true,
|
|
"authentication:show_custom_providers": true,
|
|
"authentication:show_send_invitation": true,
|
|
"authentication:show_sort_by_email": true,
|
|
"authentication:show_sort_by_phone": true,
|
|
"authentication:show_user_type_filter": true,
|
|
|
|
"billing:all": true,
|
|
|
|
"branding:large_logo": false,
|
|
|
|
"cli:disable_custom_profiles": true,
|
|
|
|
"dashboard_auth:sign_up": true,
|
|
"dashboard_auth:sign_in_with_github": true,
|
|
"dashboard_auth:sign_in_with_sso": true,
|
|
"dashboard_auth:sign_in_with_email": true,
|
|
"dashboard_auth:show_testimonial": true,
|
|
"dashboard_auth:show_tos": true,
|
|
|
|
"database:replication": true,
|
|
"database:roles": true,
|
|
"database:restore_to_new_project": true,
|
|
"database:network_restrictions": true,
|
|
|
|
"docs:auth_architecture": true,
|
|
"docs:auth_configuration": true,
|
|
"docs:auth_flows": true,
|
|
"docs:auth_full_security": true,
|
|
"docs:auth_troubleshooting": true,
|
|
"docs:compliance": true,
|
|
"docs:contribution": true,
|
|
"docs:fdw": true,
|
|
"docs:footer": true,
|
|
"docs:navigation_dropdown_links_home": true,
|
|
"docs:self-hosting": true,
|
|
"docs:framework_quickstarts": true,
|
|
"docs:full_getting_started": true,
|
|
"docs:full_platform": true,
|
|
"docs:hide_cli_profiles": true,
|
|
"docs:local_development": true,
|
|
"docs:mobile_tutorials": true,
|
|
"docs:pgtap": true,
|
|
"docs:production_checklist": true,
|
|
"docs:web_apps": true,
|
|
|
|
"edge_functions:show_stripe_example": true,
|
|
"edge_functions:show_all_edge_function_invocation_examples": true,
|
|
|
|
"feedback:docs": true,
|
|
|
|
"integrations:partners": true,
|
|
"integrations:wrappers": true,
|
|
"integrations:vercel": true,
|
|
"integrations:aws_private_link": true,
|
|
|
|
"infrastructure:read_replicas": true,
|
|
|
|
"logs:all": true,
|
|
"logs:templates": true,
|
|
"logs:collections": true,
|
|
"logs:metadata": true,
|
|
"logs:show_metadata_ip_template": true,
|
|
|
|
"organization:show_sso_settings": true,
|
|
"organization:show_security_settings": true,
|
|
"organization:show_legal_documents": true,
|
|
|
|
"profile:show_email": true,
|
|
"profile:show_information": true,
|
|
"profile:show_analytics_and_marketing": true,
|
|
"profile:show_account_deletion": true,
|
|
|
|
"project_connection:show_app_frameworks": true,
|
|
"project_connection:show_mobile_frameworks": true,
|
|
"project_connection:show_orms": true,
|
|
|
|
"project_creation:show_advanced_config": true,
|
|
|
|
"project_homepage:show_instance_size": true,
|
|
"project_homepage:show_examples": true,
|
|
|
|
"project_addons:dedicated_ipv4_address": true,
|
|
"project_addons:show_compute_price": true,
|
|
|
|
"project_settings:custom_domains": true,
|
|
"project_settings:show_disable_legacy_api_keys": true,
|
|
"project_settings:legacy_jwt_keys": true,
|
|
"project_settings:log_drains": true,
|
|
"project_settings:database_upgrades": true,
|
|
"project_settings:restart_project": true,
|
|
|
|
"quickstarts:hide_nimbus": true,
|
|
|
|
"reports:all": true,
|
|
|
|
"sdk:auth": true,
|
|
"sdk:csharp": true,
|
|
"sdk:dart": true,
|
|
"sdk:kotlin": true,
|
|
"sdk:python": true,
|
|
"sdk:swift": true,
|
|
|
|
"storage:analytics": true,
|
|
"storage:vectors": true,
|
|
|
|
"search:fullIndex": true,
|
|
|
|
"support:show_client_libraries": true
|
|
}
|