Skip to content

pass thru upstream error code - #4917

Merged
joaodrp merged 2 commits into
distribution:mainfrom
darshanime:err
Jul 23, 2026
Merged

joaodrp merged 2 commits into
distribution:mainfrom
darshanime:err

Conversation

@darshanime

Copy link
Copy Markdown
Contributor

fixes #3842

Comment thread registry/handlers/helpers.go Resolved
@darshanime

Copy link
Copy Markdown
Contributor Author

thanks for the review!
any eta on the merge? would it be possible to cut a release post merge please?

@joaodrp
joaodrp merged commit 652f981 into distribution:main Jul 23, 2026
21 checks passed
temeraire-cx pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Aug 28, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44058>
temeraire-cx pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Aug 28, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44058>
(cherry picked from commit 1a47641)
temeraire-cx pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Sep 1, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44058>
(cherry picked from commit 1a47641)
temeraire-cx pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Sep 2, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44058>
(cherry picked from commit 1a47641)
temeraire-cx pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Sep 2, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
(cherry picked from commit 1a47641)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44168>
joshuaswarren pushed a commit to joshuaswarren/mesa-1 that referenced this pull request Sep 21, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44058>
joshuaswarren pushed a commit to joshuaswarren/mesa-1 that referenced this pull request Sep 21, 2026
As discovered by @mupuf, the `registry` caching proxy from the
distribution[1] project has a buggy implementation of `ping` which
answers for itself instead of forwarding it to the real registry that it
backs, resulting in an incorrect reply claiming no authentication is
required, resulting in the actual `pull` that comes after to fail with
`unauthorized: authentication required` (which until a recent fix [2]
was also incorrectly reported as a 500).

This was not an issue until now, but GitLab has recently started tagging
even public images as requiring authentication, which now breaks all the
jobs on all the CI-tron instances. LAVA is unaffected because it doesn't
use that caching proxy.

@mupuf will try to fix the upstream bug, but in the meantime, re-enable
the farms with a hack to bypass the faulty component, at the cost of
wasting a lot of bandwidth (each job will now re-download all of these
images).

All CI-tron farm admins need to add these domains to their mars_db
config; the easiest way is to run the following command on your gateway:
$ yq --inplace '.jobs.proxy.allowed_endpoints |= (. + ["registry.freedesktop.org:443", "gitlab.freedesktop.org:443", "eu-central.object.fastlystorage.app:443"] | unique)' /config/mars_db.yaml

[1]: https://github.com/distribution/distribution
[2]: distribution/distribution#4917

Backport-to: *
(cherry picked from commit 1a47641)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44168>
renovate Bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Oct 5, 2026
…3.1.2

##### [\`3.1.2\`](https://github.com/distribution/distribution/releases/tag/v3.1.2)

Welcome to the `v3.1.2` release of registry!

*This is a stable release*

This patch release includes security fixes, storage and pagination fixes, and dependency updates.

Please try out the release binaries and report any issues at
<https://github.com/distribution/distribution/issues>.

##### Notable Changes

- Verify manifest and blob content against the requested digest in the registry client, protecting digest-pinned requests and pull-through caches (CVE-2026-85747 / GHSA-685w-q87j-wqw3).
- Update security-sensitive dependencies, including gRPC, OpenTelemetry, and golang.org/x/crypto ([#4912](distribution/distribution#4912), [#4963](distribution/distribution#4963), [#4965](distribution/distribution#4965), [#4968](distribution/distribution#4968)). The OTLP gRPC log exporter now honors TLS certificates configured through environment variables.
- Fix S3 tag pagination and catalog listing when one name is a prefix of another ([#4898](distribution/distribution#4898), [#4904](distribution/distribution#4904)), and return an empty tag array after the final pagination marker ([#4931](distribution/distribution#4931)).
- Fix Azure blob type migration and a concurrent append-write race ([#4871](distribution/distribution#4871), [#4888](distribution/distribution#4888)).
- Check the storage backend directly when writing blobs to avoid stale descriptor-cache entries ([#4868](distribution/distribution#4868)).
- Reject malformed manifest digests and out-of-order final upload chunks correctly ([#4945](distribution/distribution#4945)), accept unknown total sizes in Content-Range ([#4892](distribution/distribution#4892)), and preserve upstream error codes ([#4917](distribution/distribution#4917)).
- Stop the upload purger during registry shutdown ([#4956](distribution/distribution#4956)).
- Validate S3 redirect endpoints at driver initialization ([#4870](distribution/distribution#4870)).
- Remove the logrus-logstash-hook dependency while retaining the logstash formatter option ([#4970](distribution/distribution#4970)).

##### Build Updates

- Building from source now requires Go 1.26 or newer ([#4961](distribution/distribution#4961)).
- Container images now use Alpine Linux 3.24 ([#4966](distribution/distribution#4966)).

See the changelog below for the full list of changes.

#### What's Changed

- build(deps): bump github/codeql-action from 4.35.1 to 4.35.2 by [@dependabot](https://github.com/dependabot)\[bot] in [#4861](distribution/distribution#4861)
- build(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4859](distribution/distribution#4859)
- build(deps): bump github/codeql-action from 4.35.2 to 4.35.3 by [@dependabot](https://github.com/dependabot)\[bot] in [#4865](distribution/distribution#4865)
- build(deps): bump github/codeql-action from 4.35.3 to 4.35.4 by [@dependabot](https://github.com/dependabot)\[bot] in [#4867](distribution/distribution#4867)
- chore: smol go fix changes by [@milosgajdos](https://github.com/milosgajdos) in [#4876](distribution/distribution#4876)
- build(deps): bump codecov/codecov-action from 6.0.0 to 6.0.1 by [@dependabot](https://github.com/dependabot)\[bot] in [#4877](distribution/distribution#4877)
- build(deps): bump github/codeql-action from 4.35.4 to 4.35.5 by [@dependabot](https://github.com/dependabot)\[bot] in [#4874](distribution/distribution#4874)
- build(deps): bump docker/bake-action from 7.1.0 to 7.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4879](distribution/distribution#4879)
- fix(storage): Fix blob type migration in the azure driver by [@DMarby](https://github.com/DMarby) in [#4871](distribution/distribution#4871)
- fix: report error in `DeleteManifest` when `Delete` returns `ErrDigestUnsupported` by [@joonas](https://github.com/joonas) in [#4802](distribution/distribution#4802)
- feat(s3): parse and strictly validate redirectendpoint on driver initialization by [@DARSHANR007](https://github.com/DARSHANR007) in [#4870](distribution/distribution#4870)
- azure: fix race condition in PutContent causing duplicate append writes by [@Fricounet](https://github.com/Fricounet) in [#4888](distribution/distribution#4888)
- fix(s3): tags/list drops tags that are a lexical prefix of another tag by [@milosgajdos](https://github.com/milosgajdos) in [#4898](distribution/distribution#4898)
- fix contentRangeRegexp to accept unknown total size by [@alhudz](https://github.com/alhudz) in [#4892](distribution/distribution#4892)
- fix: check backend directly in blobStore.Put to avoid stale cache by [@chenhuiluo](https://github.com/chenhuiluo) in [#4868](distribution/distribution#4868)
- fix(security): fix CVE-2026-46595 by bumping golang.org/x/crypto by [@milosgajdos](https://github.com/milosgajdos) in [#4912](distribution/distribution#4912)
- docs: document catalog.maxentries configuration by [@tokuhirom](https://github.com/tokuhirom) in [#4911](distribution/distribution#4911)
- build(deps): bump actions/labeler from 6.0.1 to 6.1.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4866](distribution/distribution#4866)
- build(deps): bump github/codeql-action from 4.35.5 to 4.36.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4881](distribution/distribution#4881)
- build(deps): bump docker/metadata-action from 6.0.0 to 6.1.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4882](distribution/distribution#4882)
- build(deps): bump docker/login-action from 4.1.0 to 4.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4880](distribution/distribution#4880)
- pass thru upstream error code by [@darshanime](https://github.com/darshanime) in [#4917](distribution/distribution#4917)
- fix(storage): don't drop catalog repos that prefix another name by [@mrnicegyu11](https://github.com/mrnicegyu11) in [#4904](distribution/distribution#4904)
- build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1 in the go_modules group across 1 directory by [@dependabot](https://github.com/dependabot)\[bot] in [#4922](distribution/distribution#4922)
- fix(tags): return empty array after final pagination marker by [@joonas](https://github.com/joonas) in [#4931](distribution/distribution#4931)
- docs: fix CloudFront Origin Path guidance for S3 driver by [@VedantMadane](https://github.com/VedantMadane) in [#4936](distribution/distribution#4936)
- chore(deps): github.com/docker/go-metrics v0.1.0 by [@thaJeztah](https://github.com/thaJeztah) in [#4941](distribution/distribution#4941)
- chore: update testify, logrus, and migrate to go.yaml.in/yaml/v2 by [@thaJeztah](https://github.com/thaJeztah) in [#4940](distribution/distribution#4940)
- test: use ephemeral ports for registry listen tests by [@locker95](https://github.com/locker95) in [#4929](distribution/distribution#4929)
- Fix 500s from malformed manifest digests and out-of-order final chunk PUTs by [@tianon](https://github.com/tianon) in [#4945](distribution/distribution#4945)
- fix(ci): fix broken minio image by [@milosgajdos](https://github.com/milosgajdos) in [#4960](distribution/distribution#4960)
- fix(s3): use path.Dir instead of filepath.Dir in directoryDiff by [@pujitha24](https://github.com/pujitha24) in [#4950](distribution/distribution#4950)
- docs: fix 'allows to rewrite' grammar in rewrite storage middleware by [@mrchatam](https://github.com/mrchatam) in [#4955](distribution/distribution#4955)
- chore(build): Bump Go version to latest 1.26 by [@milosgajdos](https://github.com/milosgajdos) in [#4961](distribution/distribution#4961)
- fix(handlers): cancel context on Shutdown to stop upload purger goroutine by [@Tyagiquamar](https://github.com/Tyagiquamar) in [#4956](distribution/distribution#4956)
- fix(deps): bump grpc dep to fix sec vuln by [@milosgajdos](https://github.com/milosgajdos) in [#4963](distribution/distribution#4963)
- docs: explain Redis Sentinel configuration by [@git-jxj](https://github.com/git-jxj) in [#4964](distribution/distribution#4964)
- fix(deps): update deps to fix security vulns by [@milosgajdos](https://github.com/milosgajdos) in [#4965](distribution/distribution#4965)
- chore(ci): bump alpine image version by [@milosgajdos](https://github.com/milosgajdos) in [#4966](distribution/distribution#4966)
- chore(deps): bump oltp version by [@milosgajdos](https://github.com/milosgajdos) in [#4968](distribution/distribution#4968)
- build(deps): bump docker/metadata-action from 6.1.0 to 6.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4915](distribution/distribution#4915)
- chore(docs): fix build status badge by [@milosgajdos](https://github.com/milosgajdos) in [#4969](distribution/distribution#4969)
- registry: remove logrus-logstash-hook dependency by [@thaJeztah](https://github.com/thaJeztah) in [#4970](distribution/distribution#4970)
- ci: dependabot: group CodeQL and Docker action updates by [@thaJeztah](https://github.com/thaJeztah) in [#4975](distribution/distribution#4975)
- build(deps): bump actions/deploy-pages from 5.0.0 to 5.0.1 by [@dependabot](https://github.com/dependabot)\[bot] in [#4979](distribution/distribution#4979)
- build(deps): bump the codeql-actions group with 4 updates by [@dependabot](https://github.com/dependabot)\[bot] in [#4977](distribution/distribution#4977)
- build(deps): bump actions/setup-go from 6.4.0 to 7.0.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4982](distribution/distribution#4982)
- build(deps): bump the docker-actions group across 1 directory with 3 updates by [@dependabot](https://github.com/dependabot)\[bot] in [#4978](distribution/distribution#4978)
- chore(release): prepare for v3.1.2 release by [@milosgajdos](https://github.com/milosgajdos) in [#4981](distribution/distribution#4981)

#### New Contributors

- [@DMarby](https://github.com/DMarby) made their first contribution in [#4871](distribution/distribution#4871)
- [@DARSHANR007](https://github.com/DARSHANR007) made their first contribution in [#4870](distribution/distribution#4870)
- [@Fricounet](https://github.com/Fricounet) made their first contribution in [#4888](distribution/distribution#4888)
- [@alhudz](https://github.com/alhudz) made their first contribution in [#4892](distribution/distribution#4892)
- [@chenhuiluo](https://github.com/chenhuiluo) made their first contribution in [#4868](distribution/distribution#4868)
- [@tokuhirom](https://github.com/tokuhirom) made their first contribution in [#4911](distribution/distribution#4911)
- [@darshanime](https://github.com/darshanime) made their first contribution in [#4917](distribution/distribution#4917)
- [@mrnicegyu11](https://github.com/mrnicegyu11) made their first contribution in [#4904](distribution/distribution#4904)
- [@VedantMadane](https://github.com/VedantMadane) made their first contribution in [#4936](distribution/distribution#4936)
- [@locker95](https://github.com/locker95) made their first contribution in [#4929](distribution/distribution#4929)
- [@pujitha24](https://github.com/pujitha24) made their first contribution in [#4950](distribution/distribution#4950)
- [@mrchatam](https://github.com/mrchatam) made their first contribution in [#4955](distribution/distribution#4955)
- [@Tyagiquamar](https://github.com/Tyagiquamar) made their first contribution in [#4956](distribution/distribution#4956)
- [@git-jxj](https://github.com/git-jxj) made their first contribution in [#4964](distribution/distribution#4964)

**Full Changelog**: <distribution/distribution@v3.1.1...v3.1.2>
sdwilsh pushed a commit to sdwilsh/ansible-playbooks that referenced this pull request Oct 7, 2026
…3.1.2 (#1926)

##### [\`3.1.2\`](https://github.com/distribution/distribution/releases/tag/v3.1.2)

Welcome to the `v3.1.2` release of registry!

*This is a stable release*

This patch release includes security fixes, storage and pagination fixes, and dependency updates.

Please try out the release binaries and report any issues at
<https://github.com/distribution/distribution/issues>.

##### Notable Changes

- Verify manifest and blob content against the requested digest in the registry client, protecting digest-pinned requests and pull-through caches (CVE-2026-85747 / GHSA-685w-q87j-wqw3).
- Update security-sensitive dependencies, including gRPC, OpenTelemetry, and golang.org/x/crypto ([#4912](distribution/distribution#4912), [#4963](distribution/distribution#4963), [#4965](distribution/distribution#4965), [#4968](distribution/distribution#4968)). The OTLP gRPC log exporter now honors TLS certificates configured through environment variables.
- Fix S3 tag pagination and catalog listing when one name is a prefix of another ([#4898](distribution/distribution#4898), [#4904](distribution/distribution#4904)), and return an empty tag array after the final pagination marker ([#4931](distribution/distribution#4931)).
- Fix Azure blob type migration and a concurrent append-write race ([#4871](distribution/distribution#4871), [#4888](distribution/distribution#4888)).
- Check the storage backend directly when writing blobs to avoid stale descriptor-cache entries ([#4868](distribution/distribution#4868)).
- Reject malformed manifest digests and out-of-order final upload chunks correctly ([#4945](distribution/distribution#4945)), accept unknown total sizes in Content-Range ([#4892](distribution/distribution#4892)), and preserve upstream error codes ([#4917](distribution/distribution#4917)).
- Stop the upload purger during registry shutdown ([#4956](distribution/distribution#4956)).
- Validate S3 redirect endpoints at driver initialization ([#4870](distribution/distribution#4870)).
- Remove the logrus-logstash-hook dependency while retaining the logstash formatter option ([#4970](distribution/distribution#4970)).

##### Build Updates

- Building from source now requires Go 1.26 or newer ([#4961](distribution/distribution#4961)).
- Container images now use Alpine Linux 3.24 ([#4966](distribution/distribution#4966)).

See the changelog below for the full list of changes.

#### What's Changed

- build(deps): bump github/codeql-action from 4.35.1 to 4.35.2 by [@dependabot](https://github.com/dependabot)\[bot] in [#4861](distribution/distribution#4861)
- build(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4859](distribution/distribution#4859)
- build(deps): bump github/codeql-action from 4.35.2 to 4.35.3 by [@dependabot](https://github.com/dependabot)\[bot] in [#4865](distribution/distribution#4865)
- build(deps): bump github/codeql-action from 4.35.3 to 4.35.4 by [@dependabot](https://github.com/dependabot)\[bot] in [#4867](distribution/distribution#4867)
- chore: smol go fix changes by [@milosgajdos](https://github.com/milosgajdos) in [#4876](distribution/distribution#4876)
- build(deps): bump codecov/codecov-action from 6.0.0 to 6.0.1 by [@dependabot](https://github.com/dependabot)\[bot] in [#4877](distribution/distribution#4877)
- build(deps): bump github/codeql-action from 4.35.4 to 4.35.5 by [@dependabot](https://github.com/dependabot)\[bot] in [#4874](distribution/distribution#4874)
- build(deps): bump docker/bake-action from 7.1.0 to 7.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4879](distribution/distribution#4879)
- fix(storage): Fix blob type migration in the azure driver by [@DMarby](https://github.com/DMarby) in [#4871](distribution/distribution#4871)
- fix: report error in `DeleteManifest` when `Delete` returns `ErrDigestUnsupported` by [@joonas](https://github.com/joonas) in [#4802](distribution/distribution#4802)
- feat(s3): parse and strictly validate redirectendpoint on driver initialization by [@DARSHANR007](https://github.com/DARSHANR007) in [#4870](distribution/distribution#4870)
- azure: fix race condition in PutContent causing duplicate append writes by [@Fricounet](https://github.com/Fricounet) in [#4888](distribution/distribution#4888)
- fix(s3): tags/list drops tags that are a lexical prefix of another tag by [@milosgajdos](https://github.com/milosgajdos) in [#4898](distribution/distribution#4898)
- fix contentRangeRegexp to accept unknown total size by [@alhudz](https://github.com/alhudz) in [#4892](distribution/distribution#4892)
- fix: check backend directly in blobStore.Put to avoid stale cache by [@chenhuiluo](https://github.com/chenhuiluo) in [#4868](distribution/distribution#4868)
- fix(security): fix CVE-2026-46595 by bumping golang.org/x/crypto by [@milosgajdos](https://github.com/milosgajdos) in [#4912](distribution/distribution#4912)
- docs: document catalog.maxentries configuration by [@tokuhirom](https://github.com/tokuhirom) in [#4911](distribution/distribution#4911)
- build(deps): bump actions/labeler from 6.0.1 to 6.1.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4866](distribution/distribution#4866)
- build(deps): bump github/codeql-action from 4.35.5 to 4.36.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4881](distribution/distribution#4881)
- build(deps): bump docker/metadata-action from 6.0.0 to 6.1.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4882](distribution/distribution#4882)
- build(deps): bump docker/login-action from 4.1.0 to 4.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4880](distribution/distribution#4880)
- pass thru upstream error code by [@darshanime](https://github.com/darshanime) in [#4917](distribution/distribution#4917)
- fix(storage): don't drop catalog repos that prefix another name by [@mrnicegyu11](https://github.com/mrnicegyu11) in [#4904](distribution/distribution#4904)
- build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1 in the go_modules group across 1 directory by [@dependabot](https://github.com/dependabot)\[bot] in [#4922](distribution/distribution#4922)
- fix(tags): return empty array after final pagination marker by [@joonas](https://github.com/joonas) in [#4931](distribution/distribution#4931)
- docs: fix CloudFront Origin Path guidance for S3 driver by [@VedantMadane](https://github.com/VedantMadane) in [#4936](distribution/distribution#4936)
- chore(deps): github.com/docker/go-metrics v0.1.0 by [@thaJeztah](https://github.com/thaJeztah) in [#4941](distribution/distribution#4941)
- chore: update testify, logrus, and migrate to go.yaml.in/yaml/v2 by [@thaJeztah](https://github.com/thaJeztah) in [#4940](distribution/distribution#4940)
- test: use ephemeral ports for registry listen tests by [@locker95](https://github.com/locker95) in [#4929](distribution/distribution#4929)
- Fix 500s from malformed manifest digests and out-of-order final chunk PUTs by [@tianon](https://github.com/tianon) in [#4945](distribution/distribution#4945)
- fix(ci): fix broken minio image by [@milosgajdos](https://github.com/milosgajdos) in [#4960](distribution/distribution#4960)
- fix(s3): use path.Dir instead of filepath.Dir in directoryDiff by [@pujitha24](https://github.com/pujitha24) in [#4950](distribution/distribution#4950)
- docs: fix 'allows to rewrite' grammar in rewrite storage middleware by [@mrchatam](https://github.com/mrchatam) in [#4955](distribution/distribution#4955)
- chore(build): Bump Go version to latest 1.26 by [@milosgajdos](https://github.com/milosgajdos) in [#4961](distribution/distribution#4961)
- fix(handlers): cancel context on Shutdown to stop upload purger goroutine by [@Tyagiquamar](https://github.com/Tyagiquamar) in [#4956](distribution/distribution#4956)
- fix(deps): bump grpc dep to fix sec vuln by [@milosgajdos](https://github.com/milosgajdos) in [#4963](distribution/distribution#4963)
- docs: explain Redis Sentinel configuration by [@git-jxj](https://github.com/git-jxj) in [#4964](distribution/distribution#4964)
- fix(deps): update deps to fix security vulns by [@milosgajdos](https://github.com/milosgajdos) in [#4965](distribution/distribution#4965)
- chore(ci): bump alpine image version by [@milosgajdos](https://github.com/milosgajdos) in [#4966](distribution/distribution#4966)
- chore(deps): bump oltp version by [@milosgajdos](https://github.com/milosgajdos) in [#4968](distribution/distribution#4968)
- build(deps): bump docker/metadata-action from 6.1.0 to 6.2.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4915](distribution/distribution#4915)
- chore(docs): fix build status badge by [@milosgajdos](https://github.com/milosgajdos) in [#4969](distribution/distribution#4969)
- registry: remove logrus-logstash-hook dependency by [@thaJeztah](https://github.com/thaJeztah) in [#4970](distribution/distribution#4970)
- ci: dependabot: group CodeQL and Docker action updates by [@thaJeztah](https://github.com/thaJeztah) in [#4975](distribution/distribution#4975)
- build(deps): bump actions/deploy-pages from 5.0.0 to 5.0.1 by [@dependabot](https://github.com/dependabot)\[bot] in [#4979](distribution/distribution#4979)
- build(deps): bump the codeql-actions group with 4 updates by [@dependabot](https://github.com/dependabot)\[bot] in [#4977](distribution/distribution#4977)
- build(deps): bump actions/setup-go from 6.4.0 to 7.0.0 by [@dependabot](https://github.com/dependabot)\[bot] in [#4982](distribution/distribution#4982)
- build(deps): bump the docker-actions group across 1 directory with 3 updates by [@dependabot](https://github.com/dependabot)\[bot] in [#4978](distribution/distribution#4978)
- chore(release): prepare for v3.1.2 release by [@milosgajdos](https://github.com/milosgajdos) in [#4981](distribution/distribution#4981)

#### New Contributors

- [@DMarby](https://github.com/DMarby) made their first contribution in [#4871](distribution/distribution#4871)
- [@DARSHANR007](https://github.com/DARSHANR007) made their first contribution in [#4870](distribution/distribution#4870)
- [@Fricounet](https://github.com/Fricounet) made their first contribution in [#4888](distribution/distribution#4888)
- [@alhudz](https://github.com/alhudz) made their first contribution in [#4892](distribution/distribution#4892)
- [@chenhuiluo](https://github.com/chenhuiluo) made their first contribution in [#4868](distribution/distribution#4868)
- [@tokuhirom](https://github.com/tokuhirom) made their first contribution in [#4911](distribution/distribution#4911)
- [@darshanime](https://github.com/darshanime) made their first contribution in [#4917](distribution/distribution#4917)
- [@mrnicegyu11](https://github.com/mrnicegyu11) made their first contribution in [#4904](distribution/distribution#4904)
- [@VedantMadane](https://github.com/VedantMadane) made their first contribution in [#4936](distribution/distribution#4936)
- [@locker95](https://github.com/locker95) made their first contribution in [#4929](distribution/distribution#4929)
- [@pujitha24](https://github.com/pujitha24) made their first contribution in [#4950](distribution/distribution#4950)
- [@mrchatam](https://github.com/mrchatam) made their first contribution in [#4955](distribution/distribution#4955)
- [@Tyagiquamar](https://github.com/Tyagiquamar) made their first contribution in [#4956](distribution/distribution#4956)
- [@git-jxj](https://github.com/git-jxj) made their first contribution in [#4964](distribution/distribution#4964)

**Full Changelog**: <distribution/distribution@v3.1.1...v3.1.2>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proxy mode: error authentication required + http.response.status=500

3 participants