Azure / Azure/azure-cli-extensions

az artifacts universal download broken in CLI 2.46.0 due to upgrade to OpenSSL 3

Open
#5,979 6 comments 2 reactions 0 assignees View on GitHub
customer-reported DevOps needs-team-attention question Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Related command
```
az artifacts universal download \
--organization https://dev.azure.com/$myOrg/ \
--project $projectID --scope project --feed $myFeed \
--name $artifact --version $artifact_version \
--path /packages/
WARNING: Failed to parse structured output from Universal Packages tooling (ArtifactTool)
WARNING: Exception: Expecting value: line 1 column 1 (char 0)
WARNING: Log line: No usable version of libssl was found
```

### Extension name (the extension in question)
Azure DevOps Extension for Azure CLI

### Description of issue (in as much detail as possible)
Since version 2.46.0 of the Azure CLI extension and accompanied Docker image, the ADO extension fails to run within the Azure CLI container due to OpenSSL 1.x not being present any more - only OpenSSL 3.x.

The Azure DevOps extension seems incompatible with OpenSSL 3.

Related commit that introduced this breaking change: Azure/azure-cli@7739430eb080d3f6210fa7d5320df9b2f33695bd

---
This is a sketch of my Use Case:
```Dockerfile
FROM mcr.microsoft.com/azure-cli AS artifact_import

RUN set -ex \
&& az extension add --name azure-devops

RUN --mount=type=secret,id=PAT cat /run/secrets/PAT | az devops login --organization $ORGANIZATION \
&& set -ex \
&& az artifacts universal download \
--organization $ORGANIZATION \
--project $PROJECT \
--scope $SCOPE \
--feed $FEED \
--name $ARTIFACT \
--version $ARTIFACT_VERSION \
--path /packages/

FROM ubuntu AS my_tool

COPY --from=artifact_import /packages/${ARTIFACT}-${ARTIFACT_VERSION}.tar.gz /packages
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.