1
0
mirror of https://github.com/distribution/distribution synced 2024-12-25 15:05:51 +01:00
Commit Graph

5569 Commits

Author SHA1 Message Date
Wang Yan
43291261fa
build(deps): bump actions/upload-artifact from 4.3.6 to 4.5.0 (#4538) 2024-12-23 12:43:19 +08:00
Milos Gajdos
f1e33060cb
Fix conformance upload issue:
We're trying to upload conformance test results from a hidden directory:

Version 4.4.0 introduced a breaking change:
https://github.com/actions/upload-artifact/releases/tag/v4.4.0

We can either set include-hidden-files: true or
ename the directory to e.g., out/ without a leading dot which is what
we do in this PR

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-12-20 06:32:18 +00:00
Milos Gajdos
4890d9e036
Prepare for rc2 release (#4539) v3.0.0-rc.2 2024-12-18 14:54:27 +00:00
Milos Gajdos
c4a604465f
Prepare for rc2 release
Seems like we havent done AUTHORS update in a while: this commit
rectififes that.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-12-18 08:17:36 +00:00
dependabot[bot]
d85819c08e
build(deps): bump actions/upload-artifact from 4.3.6 to 4.5.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.5.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.6...v4.5.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-18 01:26:29 +00:00
Milos Gajdos
1c62898144
feat(configuration): support mtls auth mod (#4537) 2024-12-17 14:00:36 +00:00
vitshev
41a906f0c6
fix(configuration): replace string literals with constants in tests
Signed-off-by: vitshev <vitshev@tracto.ai>
2024-12-16 22:34:26 +01:00
Vitshev
96c9a85b62
fix(configuration): replace string literals with constants in error
Co-authored-by: Milos Gajdos <milosgajdos83@gmail.com>
Signed-off-by: Vitshev <vitshev@tracto.ai>
2024-12-16 22:30:37 +01:00
vitshev
328f802b8e
fix(configuration): replace string literals with constants
Signed-off-by: vitshev <vitshev@tracto.ai>
2024-12-16 20:43:30 +01:00
vitshev
916bdeae94
feat(configuration): support mtls auth mod
Signed-off-by: vitshev <vitshev@tracto.ai>
2024-12-16 20:43:20 +01:00
Kyle Squizzato
258144d70f
Update squizzi maintainer email (#4530) 2024-12-13 15:49:57 -08:00
Wang Yan
3241bc213c
chore: Bump alpine image version (#4532) 2024-12-13 19:20:48 +08:00
Milos Gajdos
96a3daafe9
Move a direct dependency to direct deps required modules
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-12-12 11:34:21 +00:00
Milos Gajdos
fb3ba302d2
chore: Bump alpine and Go versions
3.20 had a minor security vulnerability. Let's bump it.

Related:
* https://github.com/distribution/distribution-library-image/issues/171
* https://github.com/distribution/distribution/pull/4527

Bump Go version
* CI
* go.mod

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-12-12 11:29:11 +00:00
Milos Gajdos
b2ae9e398c
update xx to v1.6.1 for compatibility with alpine 3.21 and file 5.46+ (#4527) 2024-12-12 10:55:20 +00:00
Milos Gajdos
61ee69943b
build(deps): bump golang.org/x/crypto from 0.28.0 to 0.31.0 (#4531) 2024-12-12 08:54:46 +00:00
dependabot[bot]
6eba54be60
build(deps): bump golang.org/x/crypto from 0.28.0 to 0.31.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 08:34:18 +00:00
Kyle Squizzato
183919cee5
Update squizzi maintainer email
Signed-off-by: Kyle Squizzato <kyle@replicated.com>
2024-12-11 12:08:38 -08:00
Sebastiaan van Stijn
179e902fe9
update xx to v1.6.1 for compatibility with alpine 3.21 and file 5.46+
This fixes compatibility with alpine 3.21 and file 5.46+

- Fix additional possible `xx-cc`/`xx-cargo` compatibility issue with Alpine 3.21
- Support for Alpine 3.21
- Fix `xx-verify` with `file` 5.46+
- Fix possible error taking lock in `xx-apk` in latest Alpine without `coreutils`

full diff: https://github.com/tonistiigi/xx/compare/v1.2.1...v1.6.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-12-10 10:40:30 +01:00
Milos Gajdos
f2658eeb0b
docs: Explain how to configure a list through env variables (#4522) 2024-12-03 17:57:32 +00:00
Victor Barbu
1d104a9399
[docs] Explain how to configure a list through env variables
Signed-off-by: Victor Barbu <git.zqk3n@vicb.cc>
2024-12-03 19:08:23 +02:00
Milos Gajdos
e3007cd2bc
Upgrade go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (#4507) 2024-11-20 11:23:40 +00:00
Wang Yan
a44f1fb058
build(deps): bump codecov/codecov-action from 4 to 5 (#4508) 2024-11-18 11:00:09 +08:00
dependabot[bot]
4dfab838b7
build(deps): bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 02:04:35 +00:00
krynju
abbe03efef
Upgrade go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
Signed-off-by: krynju <krystian.gulinski@juliahub.com>
2024-11-13 18:27:43 +01:00
Milos Gajdos
3ddd142339
Prep for v3-rc.1 release (#4502) v3.0.0-rc.1 2024-11-07 20:09:13 +00:00
Milos Gajdos
4118c80a99
Prep for v3-rc.1 release
* Created a changelog file
* Updated mailmap
* Updated version

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-11-06 15:37:11 +00:00
Milos Gajdos
d67b46a05b
Bump dependencies (#4498) 2024-11-06 10:52:35 +00:00
Milos Gajdos
f7236ab041
feat: support custom exec-based credential helper in proxy mode (#4438) 2024-11-05 11:48:33 +00:00
Milos Gajdos
099201adde
fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size (#4424) 2024-11-05 11:39:43 +00:00
Milos Gajdos
3ac2285631
Bump otel dependencies
We want to be consistent in our deps so tracking down issue does not end
up in a murder mystery hunt. This commit picks a specific otel versions
that are unified in this codebase.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-11-05 05:45:37 +00:00
Milos Gajdos
bd52394e81
Update lint.Dockerfile
Add a timeout to the lint:
By default it is set to 1m

Remove ARGs where not needed.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-11-05 05:31:45 +00:00
Milos Gajdos
85e99bce34
docs: update hugo and theme versions (#4499) 2024-11-01 12:45:02 +00:00
David Karlsson
da2f24e205 docs: update hugo and theme versions
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 10:03:17 +01:00
Thomas Way
5ee5aaa058
fix(registry/storage/driver/s3-aws): use a consistent multipart chunk size
Some S3 compatible object storage systems like R2 require that all
multipart chunks are the same size. This was mostly true before, except
the final chunk was larger than the requested chunk size which causes
uploads to fail.

In addition, the two byte slices have been replaced with a single
*bytes.Buffer and the surrounding code simplified significantly.

Fixes: #3873

Signed-off-by: Thomas Way <thomas@6f.io>
2024-10-30 21:46:36 +00:00
Milos Gajdos
3996413f46
Bump google storage module
Also bump the golangci version

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-26 18:19:46 +01:00
Milos Gajdos
1c26d98fbe
Bump dependencies
In preparation to the next release we're going to bump some deps such as
various cloud SDKs we can test i.e. AWS, Google Cloud, etc.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-26 17:52:35 +01:00
Milos Gajdos
c427f84503
ci: fix GHA CI build matrix (#4436) 2024-10-22 15:41:44 +01:00
Milos Gajdos
bce9fcd135
avoid appending directory as file path in s3 driver Walk (#4485) 2024-10-16 21:14:56 +01:00
Milos Gajdos
b9b96d9dfa
Bump Go version in Dockerfiles
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-15 10:55:17 +01:00
Milos Gajdos
6df0fd941c
Bump go version in go.mod
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-15 10:55:17 +01:00
Milos Gajdos
88579792f6
Fix a typo in GHA build workflow comment
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-15 10:55:17 +01:00
Milos Gajdos
be0051c452
Run vendor on 1.21
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-15 10:55:17 +01:00
Milos Gajdos
997c29dbda
ci: fix GHA CI build matrix
It would appear that requesting Go 1.21 in the build matrix has no
effect whatsoever on what go toolchain is actually used to build the
project.

Specifying 1.22.0 in the go.mod go directive forces the 1.22 toolchain
to be used for building Go source files, ignoring whatever Go version we
set in the GHA CI matrix.

Luckily we can enforce the right setting by setting GOTOOLCHAIN=local
which forces Go to use the locally available toolchain instead of
downloading the one requested by go.mod.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-10-15 10:55:17 +01:00
Flavian Missi
2e7482cb89 avoid appending directory as file path in s3 driver Walk
when a directory is empty, the s3 api lists it with a trailing slash.
this causes the path to be appended twice to the walkInfo slice, causing
purge uploads path transformations to panic when the `_uploads` is
emtpy.

this adds a check for file paths ending on slash, and do not append
those as regular files to the walkInfo slice.

fixes #4358

Signed-off-by: Flavian Missi <fmissi@redhat.com>
2024-10-14 14:53:31 +02:00
Flavian Missi
e44d9317d0 test s3 driver walk of empty dir
Signed-off-by: Flavian Missi <fmissi@redhat.com>
2024-10-14 14:53:26 +02:00
João Pereira
d0eebf3af4
ci: Add validation for api docs (#4481) 2024-10-10 09:18:11 +01:00
Pratik
3f4ec64f71 Add validate action to validate api docs
Signed-off-by: Pratik <pratikgparikh@gmail.com>
2024-10-08 22:07:01 +05:30
Pratik
5e59a64896 fix existing doc first
Signed-off-by: Pratik <pratikgparikh@gmail.com>
2024-10-08 22:06:38 +05:30
Wang Yan
0e850894d6
replace uses of Descriptor alias (#4479) 2024-10-08 14:49:11 +08:00