Skip to content

Maven 3.9, unauthorized 401 when reaching MS AZURE repo with PAT #371

@pawel-ozog

Description

@pawel-ozog

Hello,

We are using maven docker image to build our app and deploy it as a docker image. Since 16.05.2023 we struggle with the following issue:
dockerfile:
FROM maven as app_builder --> so latest 3.9.x
{copy source files}
{copy settings.xml}
RUN mvn -s settings.xml clean package

We use MS AZURE for our jar repository. settings.xml contains its Personal Access Token auth credentials which is repo_id/token_name/token_value.

The outcome of this build is 401 Unauthorized once trying to download libs from the repo.

This is not the case when I am using:
FROM maven:3.8 as app_builder
or earlier.

This is not the case also when I am using my personal active directory credentials instead of PAT.

Building command:
podman build -t app:v1 -f ./Dockerfile

CentoOS 8 (curl is still <8)
podman v: 4.3.1
java 17.0.2

What might be the case here?
Is it related to the previous vulnerability: https://dso.docker.com/cve/CVE-2023-27536 I assume it is resolved in maven 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions