1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00
Commit Graph

5542 Commits

Author SHA1 Message Date
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
Sebastiaan van Stijn
0ab7f326e6
replace uses of Descriptor alias
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-07 13:07:47 +02:00
Milos Gajdos
740b31105e
Make Descriptor an alias for oci.Descriptor (#3888) 2024-10-07 11:36:47 +01:00
Sebastiaan van Stijn
92b483efca
Make Descriptor an alias for oci.Descriptor
With the removal of the Describable interface from this type, and
deprecation of the Versioned type, the Descriptor is now an exact
equivalent of the oci.Descriptor.

This patch makes Descriptor an alias for oci.Descriptor.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-03 20:00:11 +02:00
João Pereira
0bfa293eea
docs: removed description of ELB as an example of an not sophisticated Load Balancer (#4476) 2024-10-03 13:20:44 +01:00
Milos Gajdos
44be16a883
TestProxyManifestsMetrics: use actual size of manifest (#4467) 2024-10-03 10:02:30 +01:00
tomoya-kawaguchi
fdb5abb940
docs: removed description of ELB as an example of an not sophisticated Load Balancer
Signed-off-by: tomoya-kawaguchi <yamo7yamoto@gmail.com>
2024-10-03 09:00:15 +09:00
Milos Gajdos
2c7d93a0b6
fix: Add the token's rootcert public key to the list of known keys (#4471) 2024-10-02 18:51:54 +01:00
Jose D. Gomez R
b53946ded3
fix: Add the token's rootcert public key to the list of known keys
- Add Unit tests for `token.newAccessController`
  + Implemented swappable implementations for `token.getRootCerts` and
    `getJwks` to unit test their behavior over the accessController
    struct.

- Use RFC7638 [0] mechanics to compute the KeyID of the rootcertbundle
  provided in the token auth config.

- Extends token authentication docs:
  + Extend `jwt.md` write up on JWT headers & JWT Validation
  + Updated old reference to a draft that's now RFC7515.
  + Extended the JWT validation steps with the JWT Header validation.
  + Reference `jwt.md` in `token.md`

[0]: https://datatracker.ietf.org/doc/html/rfc7638#autoid-13

Signed-off-by: Jose D. Gomez R <jose.gomez@suse.com>
2024-10-02 11:58:41 +02:00
Milos Gajdos
b74618692d
Add a note regarding redirects to pre-signed URLs (#4466) 2024-09-19 20:13:26 +01:00
Mikhail f. Shiryaev
63cfb18729
Add a note regarding redirects to pre-signed URLs
Signed-off-by: Mikhail f. Shiryaev <mr.felixoid@gmail.com>
2024-09-19 18:23:56 +02:00
Sebastiaan van Stijn
4a0e027e4d
TestProxyManifestsMetrics: use actual size of manifest
This test was using a hard-coded value for the size of the manifest,
which made it difficult to correlate the tested value with what it
was testing.

This patch updates populateRepo to return the actual size when
serialized, and updates manifestStoreTestEnv to include the
size to test for.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-09-18 22:10:15 +02:00
Milos Gajdos
2314320a70
Remove deprecated version field (#4459) 2024-09-13 19:59:00 +01:00
Tibor
38553eaaf8
chang docker-compose to docker compose
Signed-off-by: Tibor <tiborcasteleijn@gmail.com>
2024-09-07 11:47:59 +02:00
Tibor
49fad51775
chang docker-compose to docker compose
Signed-off-by: Tibor <tiborcasteleijn@gmail.com>
2024-09-07 11:47:11 +02:00
Tibor
e41848cc97
chang docker-compose to docker compose
Signed-off-by: Tibor <tiborcasteleijn@gmail.com>
2024-09-07 11:46:28 +02:00
Tibor
4615d302df
Remove deprecated version field
https://www.docker.com/blog/new-docker-compose-v2-and-v1-deprecation/

Signed-off-by: Tibor <tiborcasteleijn@gmail.com>
2024-09-06 09:23:05 +02:00
João Pereira
93e6b90d29
chore: bump golangci-lint and fix govet issues (#4454) 2024-09-02 09:51:00 +01:00
Milos Gajdos
a940e61623
Fix silly testing format mistakes
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-08-30 11:18:18 +01:00
Milos Gajdos
170ac07a5e
chore: bump golangci-lint and fix govert issues
The latest golangci-lint spits out some govet issues.
This commit fixes them. We are also bumping the linter version.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2024-08-30 10:28:24 +01:00
João Pereira
ba2841b0ce
build(deps): bump github/codeql-action from 3.26.3 to 3.26.5 (#4446) 2024-08-28 23:19:24 +01:00
Milos Gajdos
6e56b3ae3c
Build artifacts and images for linux/riscv64 (#4444) 2024-08-28 07:56:03 +01:00
dependabot[bot]
44ddae31c0
build(deps): bump github/codeql-action from 3.26.3 to 3.26.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.3 to 3.26.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.26.3...v3.26.5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 01:28:27 +00:00
Matheus Macabu
b2626e0623 Build artifacts and images for linux/riscv64
Signed-off-by: Matheus Macabu <macabu.matheus@gmail.com>
2024-08-22 22:21:53 +02:00
Milos Gajdos
3da306340a
build(deps): bump github/codeql-action from 3.26.2 to 3.26.3 (#4441) 2024-08-20 09:56:25 +01:00
Milos Gajdos
f0826f5796
chore: fix typo in rewrite storage middleware init (#4435) 2024-08-20 09:55:43 +01:00
dependabot[bot]
aabceeb985
build(deps): bump github/codeql-action from 3.26.2 to 3.26.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.2 to 3.26.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.26.2...v3.26.3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 01:29:14 +00:00
Chun-Hung Hsiao
eed9400d26
feat: support custom exec-based credential helper in proxy mode
This change allows users to run the registry as a pull-through cache
that can use a credential helper to authenticate against the upstream
registry.

Signed-off-by: Chun-Hung Hsiao <chhsiao@google.com>
2024-08-16 19:42:51 -07:00