Skip to content

{CI} Suppress dummy PostgreSQL service principal password - #34389

Merged
Naga Nandyala (naga-nandyala) merged 2 commits into
Azure:devfrom
naga-nandyala:fix/postgresql-credscan-placeholder
Nov 10, 2026
Merged

Naga Nandyala (naga-nandyala) merged 2 commits into
Azure:devfrom
naga-nandyala:fix/postgresql-credscan-placeholder

Conversation

@naga-nandyala

@naga-nandyala Naga Nandyala (naga-nandyala) commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
️✔️ None ️✔️ 130/130 ⚠️ 52 added

This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.

52 added suppressions
File Line Kind Code
scripts/ci/credscan/CredScanSuppressions.json 704 credential scan "placeholder": "unused",
scripts/ci/credscan/CredScanSuppressions.json 705 credential scan "_justification": "[PostgreSQL] Dummy service principal password returned by the create_service_principal_for_rbac mock…
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 27 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 53 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 85 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 106 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 128 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 184 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 211 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py 232 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 192 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 215 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 270 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 347 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 373 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 399 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 412 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 427 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 495 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 524 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 662 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 685 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 705 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2067 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2093 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2154 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2181 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2202 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2223 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 2272 skipped test @unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')

22 more not shown.

Description

Add a Credential Scanner placeholder suppression for unused, the dummy password returned by the create_service_principal_for_rbac mock in src/azure-cli/azure/cli/command_modules/postgresql/tests/unit/test_deploy_commands.py.

The fixture was introduced by #34308. Build 20261110.6 flags line 54 with CSCAN-GENERAL0060 (General Password). This is a mock value, not a real credential.

Follows the existing dummy-value suppression pattern in #33279 and #32847. Only the literal placeholder is added; the test file is not excluded, existing suppressions are unchanged, and no production code or tests are modified. Placeholder suppressions apply repository-wide to that dummy value, consistent with those precedents.

Validation

  • Parsed the suppression file as JSON.
  • Verified that exactly one expected entry was appended and all existing entries were preserved.
  • Verified the dummy password value in the test fixture and the pipeline suppression-file reference.
  • git diff --check passed.
  • Credential Scanner itself is not available locally; scanner validation remains for CI.

History Notes

CI-only change; no customer-facing behavior change.

Follow existing placeholder suppressions for the unused password returned by the PostgreSQL deployment unit-test mock. This addresses CSCAN-GENERAL0060 without excluding the test file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the dummy PostgreSQL password suppression.

No open issues 🎉

What changed in this PR

Adds a Credential Scanner suppression for the dummy PostgreSQL service principal password introduced in #34308, following the existing placeholder-suppression pattern.

Changes:

  • Suppresses the literal value unused repository-wide, with a justification identifying the test mock.
  • Preserves existing suppressions without excluding the test file or modifying production code or tests.
File Description
scripts/​ci/​credscan/​CredScanSuppressions.json Adds the unused placeholder suppression and its PostgreSQL test justification.

Review effort: Balanced

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

Skip the 51 recorded scenarios failing after .NET 8 and PowerShell 7.4 reached their recorded end-of-life date on 2026-11-10. Use existing method-level unittest.skip decorators and document that runtimes and recordings need updating before re-enabling the tests. Leave production EOL validation and all other tests unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@naga-nandyala

Copy link
Copy Markdown
Contributor Author

Cherry-picked the EOL test-skip commit from #34391 as 398fc9b so this branch can validate the credential-scanner suppression without the 51 unrelated App Service EOL failures blocking its test jobs. The three App Service test files match the original EOL fix exactly. No Backup fixes or unrelated changes were included. The EOL changes temporarily appear in this PR diff and should drop out once #34391 lands in dev. Pushing the commit requests fresh CI; unrelated failures may still require separate fixes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@naga-nandyala
Naga Nandyala (naga-nandyala) merged commit 7c1429d into Azure:dev Nov 10, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants