OCPBUGS-74496: Add UserAgent to Azure SDK client telemetry options#208
OCPBUGS-74496: Add UserAgent to Azure SDK client telemetry options#208Nirshal wants to merge 1 commit intoopenshift:mainfrom
Conversation
Set policy.TelemetryOptions with ApplicationID using the existing UserAgent constant for ARM clients and Azure credential clients.
|
Skipping CI for Draft Pull Request. |
|
@Nirshal: This pull request references Jira Issue OCPBUGS-74496, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@Nirshal: This pull request references Jira Issue OCPBUGS-74496, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyrtapz, Nirshal The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@Nirshal: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
According to Claude e2e-analyze skill: "Here is the analysis: Error: Snyk security scan failed with 12 open issues (1 HIGH, 9 MEDIUM, 2 LOW) in vendored dependencies. Summary: The CI job Evidence: Additional evidence: |
|
/cc @wewang58 |
What this PR does / why we need it
The Cloud Network Config Controller (CNCC) is not setting the ApplicationID in the Azure SDK TelemetryOptions when creating Azure ARM SDK clients and credential clients. This means Azure
API requests from CNCC do not include proper application identification in the User-Agent header for request tracing and telemetry purposes.
Note: the
UserAgentconstant is already defined in the codebase (cloud-network-config-controller) but was only applied to GCP clients, not Azure clients.This PR adds
policy.TelemetryOptionswithApplicationIDto:VirtualMachinesClient,InterfacesClient,VirtualNetworksClient)UserAssignedIdentityCredential,WorkloadIdentityCredential,ClientSecretCredential)Which issue(s) this PR fixes
Fixes https://issues.redhat.com/browse/OCPBUGS-74496
Special notes for your reviewer
UserAgentconstant value iscloud-network-config-controller(31 characters), but the Azure SDK enforces a maximum of 24 characters with no spaces forApplicationIDand silently truncates it tocloud-network-config-con. This has been flagged in the Jira issue for discussion.Checklist