Repository navigation
feat(sql-server): run the integration test against Azure SQL Database - #13129
Conversation
read-path.mjs takes --azure-server <server>.database.windows.net. It connects to an empty app database with an Azure CLI token as the server's Entra admin, creates contained read-only and write users with passwords generated for the run, and runs the same S1/S2, S4, S5, S6 and S7 checks. Azure SQL Database refuses cross-database names, so S5's three-part names are refused by the platform and no second database is needed. The per-target SQL lives in integration/target.mjs, tested without a database. Refs: #9905 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #13129 (head c267338)No security issues found. I read all 6 changed files in full: the changeset note, What I checked:
The PR changes no trusted paths. The PR context contains no embedded instructions. critical-findings: 0 |
|
claude-review reviewed Code review: PR #13129, run the sql-server integration test against Azure SQL DatabaseNo blocking or advisory findings. I read every hunk of all 6 changed files, and the head version of What I checked
Not verified
Scope notes
|
Refs: #9905
Summary
plugins/sql-server/integration/read-path.mjscould only run against the local container it starts, assa(#9905's Status comment). It now takes--azure-server <server>.database.windows.netand runs the same S1/S2, S4, S5, S6 and S7 checks against an existing, empty Azure SQL Database namedapp.Fix
integration/target.mjsholds what differs per target: argument parsing, the fixture batches, the fingerprint query and the expected out-of-scope refusal.appwith anAzureCliCredentialtoken as the server's Entra admin (no password of the caller's), and createsmcp_reader(db_datareader) andmcp_writeras contained users with passwords generated in-process. The plugin reaches them only through the config's env-variable references, as in local mode.appalone. One database is enough: the allow-list half of S5 refusesotherbefore connecting (src/tools.mjs).sais now namedadminin the code.reference/azure-sql-database.mddescribe the Azure mode; no workflow runs it.Verification
npm test --prefix plugins/sql-server: 216 pass, including 15 new tests fortarget.mjs(no database needed).node plugins/sql-server/integration/read-path.mjs(local container): PASS for S1/S2, S4, S5, S6 and S7.scripts/check-affected.sh --testson the committed head: green.c2673381f2: PASS for all five checks, then teardown withaz group existsfalse: feat: ship a safe, general-purpose SQL Server MCP server plugin #5940 (comment)Remaining on #9905
Refs:does not close it); its done-when items are met on feat: ship a safe, general-purpose SQL Server MCP server plugin #5940.Related
🤖 Generated with Claude Code