Skip to content

[ACR] az acr task logs: Enable TLS certificate validation when streaming task and run logs#33486

Merged
yanzhudd merged 2 commits into
Azure:devfrom
yuehaoliang:yuehaoliang/acr/msrc-119481
Jun 9, 2026
Merged

[ACR] az acr task logs: Enable TLS certificate validation when streaming task and run logs#33486
yanzhudd merged 2 commits into
Azure:devfrom
yuehaoliang:yuehaoliang/acr/msrc-119481

Conversation

@yuehaoliang

@yuehaoliang yuehaoliang commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Related command

az acr task logs, az acr run, az acr build, az acr pack build

Description

Aligns ACR log streaming with the rest of azure-cli by relying on the default TLS behavior
of requests in _stream_artifact_logs()
(src/azure-cli/azure/cli/command_modules/acr/_stream_utils.py).

No impact on normal users. Users behind a TLS-intercepting corporate proxy can use the
standard REQUESTS_CA_BUNDLE / CURL_CA_BUNDLE env vars or install the proxy CA into the
system trust store — the same configuration already required by other az commands.

Testing Guide

  1. Activate the dev virtualenv and confirm the editable build is in use:

    .\env\Scripts\Activate.ps1
    az version

Expected output includes "azure-cli": "2.86.0".

  1. Run the ACR unit tests:

    python -m pytest src\azure-cli\azure\cli\command_modules\acr\tests\latest -k "stream or task_logs or run" -q

Expected: all selected tests pass.

  1. End-to-end smoke test against a real registry:

    az login
    az acr task logs -r --run-id

Expected: logs stream successfully.

History Notes

[ACR] az acr task logs: Align log streaming with the default TLS behavior used by the rest of Azure CLI commands
[ACR] az acr run/build: Align log streaming with the default TLS behavior used by the rest of Azure CLI commands


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

Copilot AI review requested due to automatic review settings June 3, 2026 03:40
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 3, 2026

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

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 3, 2026

Copy link
Copy Markdown
️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes insecure TLS configuration from ACR log streaming requests to ensure HTTPS certificate verification is performed.

Changes:

  • Dropped verify=False from the requests.get(...) call used to stream artifact logs.

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

@yonzhan

yonzhan commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

acr

@yuehaoliang yuehaoliang changed the title fix(acr): enable TLS certificate validation when streaming task logs [ACR] Fix MSRC-119481: az acr task logs: Enable TLS certificate validation when streaming task and run logs Jun 3, 2026
@yuehaoliang yuehaoliang changed the title [ACR] Fix MSRC-119481: az acr task logs: Enable TLS certificate validation when streaming task and run logs [ACR] Fix: az acr task logs: Enable TLS certificate validation when streaming task and run logs Jun 3, 2026

@northtyphoon northtyphoon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@yuehaoliang

Copy link
Copy Markdown
Contributor Author

Hi @yanzhudd
Could you please review the PR when you have a chance?
I’ve updated the title per guidelines. Could you also rerun the checks to confirm everything passes?
Thank you!

@yanzhudd

yanzhudd commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@yanzhudd yanzhudd changed the title [ACR] Fix: az acr task logs: Enable TLS certificate validation when streaming task and run logs [ACR] az acr task logs: Enable TLS certificate validation when streaming task and run logs Jun 9, 2026
@yanzhudd yanzhudd merged commit 334162c into Azure:dev Jun 9, 2026
50 checks passed
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.

5 participants