fix(artifacts/azure): upgrade SDK and add debug logging for OpenStream #15348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
Users configuring Argo Workflows to archive logs to Azure Blob Storage using Workload Identity (useSDKCreds: true) report
that logs are successfully written but cannot be read via the UI (the server returns size=0). Interestingly, switching to
shared key authentication (accountKeySecret) resolves the issue, suggesting a potential discrepancy in how the SDK handles
authentication during read/stream operations in specific environments.
Solution
This PR addresses the issue through a combination of dependency upgrades and enhanced observability:
github.com/Azure/azure-sdk-for-go/sdk/azidentity to the latest stable versions. This ensures compatibility with the
latest Azure Workload Identity features and includes potential fixes for stream handling in the SDK.
These logs will allow users and maintainers to see exactly what the Azure SDK is returning when the UI reports an empty
file, helping to narrow down if the issue is at the SDK, credential, or server logic level.
Verification Results