{
  "slug": "supabase-db-advisors-checks-database-security-and-performance-75b59c64d7be",
  "title": "supabase db advisors checks database security and performance",
  "tools": [
    "supabase"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-17T11:57:31.000Z",
  "announced_at": "2026-03-17T11:57:31.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When checking a Supabase database for security and performance issues, run `supabase db advisors`. To target a specific database, add `--db-url <percent-encoded-connection-string>`; the command defaults to the local database.",
    "examples": [
      "supabase db advisors",
      "supabase db advisors --db-url <percent-encoded-connection-string>"
    ],
    "gotchas": [
      "Version: v2.81.0",
      "--db-url <string>: Connection string for the database to check; it must be percent-encoded. Mutually exclusive with `--linked` and `--local`.",
      "--local: Check the local database; this is the default target.",
      "--linked: Check the linked project; requires CLI login and a linked project reference.",
      "--type <all|security|performance>: Choose advisor checks by type.",
      "--level <info|warn|error>: Set the minimum issue level to display.",
      "--fail-on <none|info|warn|error>: Set the issue level that causes a non-zero exit status.",
      "Prerequisite: Use Supabase CLI v2.81.0 or later for this command, introduced in v2.81.0.",
      "Prerequisite: For `--db-url`, provide a percent-encoded database connection string.",
      "Prerequisite: For `--linked`, authenticate with `supabase login` and have a linked project reference."
    ]
  },
  "why_it_matters": "Check a Supabase database for security and performance issues during repository maintenance.",
  "sources": [
    "https://github.com/supabase/cli/releases/tag/v2.81.0",
    "https://github.com/supabase/cli/blob/v2.81.0/cmd/db.go"
  ],
  "rank": 0.98044,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-2c67471e1b102a37-0:gate",
    "evidence_hash": "001cf2aa9b98da30394bdb446855fd702556a642a8fc2c2b86ffd087b1c97703"
  },
  "review": {
    "draft_hash": "e8798797402fabe15df75750da0308f27d13ba82b537e3641e1a8e5d62c7050b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
