Skip to content

{Misc.} Port credscan false positive fix from release to dev#32881

Open
naga-nandyala wants to merge 1 commit intodevfrom
port-credscan-fix
Open

{Misc.} Port credscan false positive fix from release to dev#32881
naga-nandyala wants to merge 1 commit intodevfrom
port-credscan-fix

Conversation

@naga-nandyala
Copy link
Contributor

@naga-nandyala naga-nandyala commented Mar 2, 2026

Related command

Description

Cherry-pick of #32847 from release branch to dev.

This fix adds CredScan suppressions for ARO (Azure Red Hat OpenShift) dummy test values that were flagged as false positives:

  • asdfghjkl — dummy client_secret in test_validators.py
  • secret_123 — dummy client_secret in test_validators.py
  • client_id_456 — dummy client_id in test_validators.py

The original fix (#32847) was merged directly to release but was never ported back to dev. This PR brings dev in sync with release for the CredScan suppression file.

Testing Guide

History Notes


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Mar 2, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Mar 2, 2026

❌AzureCLI-BreakingChangeTest
❌appservice
rule cmd_name rule_message suggest_message
1007 - ParaRemove logicapp create cmd logicapp create removed parameter auto_generated_domain_name_label_scope please add back parameter auto_generated_domain_name_label_scope for cmd logicapp create

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 2, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@naga-nandyala naga-nandyala changed the title {Misc.} Fix up credscan false positive (#32847) [cherry-pick from rel… {Misc.} Port credscan false positive fix from release to dev Mar 2, 2026
@naga-nandyala naga-nandyala marked this pull request as ready for review March 3, 2026 04:03
Copilot AI review requested due to automatic review settings March 3, 2026 04:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ports CredScan false-positive suppressions from release to dev to unblock CI scans for ARO unit test dummy credential values.

Changes:

  • Add three new CredScan placeholder suppressions for ARO test dummy values (asdfghjkl, secret_123, client_id_456).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +687 to +695
{
"placeholder": "asdfghjkl",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "secret_123",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

These new suppressions are global placeholder matches, which can unintentionally suppress unrelated findings elsewhere in the repo. In particular, asdfghjkl also appears in src/azure-cli/azure/cli/command_modules/resource/tests/latest/test-largesize-parameters.json, so this suppression would hide any CredScan hits there too. Please scope the suppression to the specific ARO test file (or use a more specific placeholder string) so only the intended false positive is suppressed.

Suggested change
{
"placeholder": "asdfghjkl",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "secret_123",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
{
"file": [
"src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_validators.py"
],
"placeholder": "asdfghjkl",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"file": [
"src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_validators.py"
],
"placeholder": "secret_123",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"file": [
"src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_validators.py"
],

Copilot uses AI. Check for mistakes.
Comment on lines +688 to +697
"placeholder": "asdfghjkl",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "secret_123",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "client_id_456",
"_justification": "[ARO] Dummy client_id value in test_validators.py unit tests"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

For secret_123 and client_id_456, consider scoping the suppression to the specific aro/tests/latest/test_validators.py file (or a more specific placeholder string). Leaving these as global placeholders increases the chance of masking real findings if the same strings appear in other tests or fixtures later.

Suggested change
"placeholder": "asdfghjkl",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "secret_123",
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests"
},
{
"placeholder": "client_id_456",
"_justification": "[ARO] Dummy client_id value in test_validators.py unit tests"
"file": [
"src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py"
],
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests (asdfghjkl)"
},
{
"file": [
"src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py"
],
"_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests (secret_123)"
},
{
"file": [
"src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py"
],
"_justification": "[ARO] Dummy client_id value in test_validators.py unit tests (client_id_456)"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants