Commit Graph

5671 Commits

Author SHA1 Message Date
João Pereira
7f2dad4420
Fixed data race in TestSchedule test (#4647) 2025-08-11 23:25:37 +01:00
Milos Gajdos
7d74ee7186
Fix S3 driver loglevel param (#4617) 2025-08-11 14:27:41 +01:00
Milos Gajdos
0966daece7
docs: Add OpenTelemetry links to quickstart docs (#4270) (#4640) 2025-08-11 14:25:47 +01:00
Wang Yan
c54bcb3770
s3-aws: fix build for 386 (#4642) 2025-08-11 14:14:53 +08:00
Wang Yan
f6e54e6189
refactor: replace map iteration with maps.Copy/Clone (#4632) 2025-08-11 13:28:07 +08:00
Milos Gajdos
f9fa205992
Switch UUIDs to UUIDv7 (#4666) 2025-08-08 19:11:24 +01:00
Raj Siva-Rajah
b559f27a08 Switch to UUIDv7
Signed-off-by: Raj Siva-Rajah <raj@zapzap.cloud>
2025-07-31 06:54:27 +00:00
Milos Gajdos
e7b4fa06f2
Fix markdown syntax for OTEL traces link in docs (#4676) 2025-07-22 18:45:15 +01:00
Shan Desai
b39441b1e6
Fix markdown syntax for OTEL traces link in docs
square brackets and the respective parentheses for a markdown link were falsely typed in causing readability issues.  This commit fixes the markdown syntax for the same

Signed-off-by: Shan Desai <shantanoo.desai@gmail.com>
2025-07-22 12:28:31 +02:00
Milos Gajdos
c9760ebe95
fix: set OTEL traces to disabled by default (#4671) 2025-07-10 07:44:49 -07:00
Pat Riehecky
53dde7fc86
fix: set OTEL traces to disabled by default
If you want to enable traces, you can still set the env to your
collector.

Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
2025-07-09 13:54:43 -05:00
Milos Gajdos
17dc6f9cda
docs: Add note about OTEL_TRACES_EXPORTER (#4669) 2025-07-09 11:27:44 -07:00
Pat Riehecky
68cd681bad
docs: Add note about OTEL_TRACES_EXPORTER
Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
2025-07-09 10:42:32 -05:00
Artem Khoroshev
bb278c2be6
fix: fixed data race in TestSchedule test
Signed-off-by: Artem Khoroshev <horoshev.artem@yandex.ru>
2025-06-06 20:12:59 +03:00
Milos Gajdos
da404778ed
build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 (#4645) 2025-06-02 07:46:14 -07:00
dependabot[bot]
b09be3d605
build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](f49aabe0b5...05b42c6244)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 01:26:19 +00:00
Chen Qi
6970080b10 s3-aws: fix build for 386
When building for 386, we got the following build error:

  registry/storage/driver/s3-aws/s3.go:312:99: cannot use
  maxChunkSize (untyped int constant 5368709120) as int value
  in argument to getParameterAsInteger (overflows)

This is because the s3_64bit.go is used. Adjust the build tag matching
in s3_32bit.go and s3_64bit.go to fix this issue.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2025-05-29 11:35:59 +08:00
Dane Wagner
e629f88670 docs: Add OpenTelemetry links to quickstart docs (#4270)
Signed-off-by: Dane Wagner <dane.wagner@gmail.com>
2025-05-23 12:02:47 -05:00
Milos Gajdos
97495e5397
Fix: resolve issue #4478 by using a temporary file for non-append writes (#4624) 2025-05-19 07:37:07 -07:00
Oded Porat
dde1e49f23 Changes:
Append a UUID to ensure uniqueness
Join delete error

Signed-off-by: Oded Porat <onporat@gmail.com>
2025-05-04 10:43:19 +03:00
whosehang
fea3638384 refactor: replace map iteration with maps.Copy/Clone
Signed-off-by: whosehang <whosehang@outlook.com>
2025-05-03 09:24:10 +08:00
Milos Gajdos
95647cba1d
feat: extract redis config to separate struct (#4620) 2025-04-29 06:21:55 -07:00
Milos Gajdos
45e5f78dd9
fix: Annotate code block from validation.indexes configuration docs (#4629) 2025-04-28 06:48:17 -07:00
Anže Luzar
c460aa63e1
fix: Annotate code block from validation.indexes docs
Signed-off-by: Anže Luzar <aluzarwork@gmail.com>
2025-04-28 13:23:56 +02:00
Milos Gajdos
e827ce2772
fix: implement JWK thumbprint for Ed25519 public keys (#4626) 2025-04-23 08:28:25 -07:00
Oded Porat
a5a6f1ba3d To address the issue where empty files are created when the write process is interrupted, the solution involves writing to a temporary file first and then atomically renaming it to the target file. This ensures that the target file is only updated if the write completes successfully, preventing empty or partially written files.
**Explanation:**

1. **Temporary File Creation:** The content is first written to a temporary file (appending `.tmp` to the original path). This ensures that the original file remains intact until the write is complete.

2. **Write to Temporary File:** Using the existing `Writer` with truncation (`false`), the content is written to the temporary file. If the write fails, the temporary file is closed and deleted.

3. **Commit and Rename:** After successfully writing to the temporary file, it is committed. Then, the temporary file is atomically renamed to the target path using `Move`, which is handled by the filesystem's rename operation (atomic on most systems).

4. **Cleanup on Failure:** If any step fails, the temporary file is cleaned up to avoid leaving orphaned files.

Signed-off-by: Oded Porat <onporat@gmail.com>
2025-04-23 11:37:55 +03:00
Youfu Zhang
4aab88fede fix: implement JWK thumbprint for Ed25519 public keys
Signed-off-by: Youfu Zhang <zhangyoufu@gmail.com>
2025-04-23 13:30:18 +08:00
Milos Gajdos
e016d9595f
build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in the go_modules group across 1 directory (#4625) 2025-04-17 07:45:13 +01:00
dependabot[bot]
5a71303e59
build(deps): bump golang.org/x/net
Bumps the go_modules group with 1 update in the / directory: [golang.org/x/net](https://github.com/golang/net).


Updates `golang.org/x/net` from 0.37.0 to 0.38.0
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: direct:production
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 23:33:39 +00:00
Oded Porat
78456caf46 Fix: resolve issue #4478 by using a temporary file for non-append writes
To address the issue where a failed write operation results in an empty file, we can use a temporary file for non-append writes. This ensures that the original file is only replaced once the new content is fully written and committed.

**Key Changes:**

1. **Temporary File Handling:**
   - For non-append writes, a temporary file is created in the same directory as the target file.
   - All write operations are performed on the temporary file first.

2. **Atomic Commit:**
   - The temporary file is only renamed to the target path during `Commit()`, ensuring atomic replacement.
   - If `Commit()` fails, the temporary file is cleaned up.

3. **Error Handling:**
   - `Cancel()` properly removes temporary files if the operation is aborted.
   - `Close()` is made idempotent to handle multiple calls safely.

4. **Data Integrity:**
   - Directory sync after rename ensures metadata persistence.
   - Proper file flushing and syncing before rename operations.

Signed-off-by: Oded Porat <onporat@gmail.com>
2025-04-16 10:30:20 +03:00
Milos Gajdos
523791cb5f
chore: make function comment match function name (#4622) 2025-04-13 07:10:22 -07:00
closeobserve
a6ce1a7995 chore: make function comment match function name
Signed-off-by: closeobserve <pingcap@yahoo.com>
2025-04-13 17:40:27 +08:00
Mateusz Urbanek
fcb2deac0b
feat: extract redis config to separate struct
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
2025-04-10 16:53:45 +02:00
Milos Gajdos
e028a30ecd
Fix default_credentials in azure storage provider (#4619) 2025-04-08 22:09:57 -07:00
Lucas Melchior
ea6ab3652c fix newClient in azure storage provider
it can now return a client using default azure credentials
updated docs to include information on Azure Workload Identity

Signed-off-by: Lucas Melchior <lucasmelchior@flywheel.io>

fix anchor link in docs

Signed-off-by: Lucas Melchior <lucasmelchior@flywheel.io>
2025-04-08 10:22:34 -05:00
Milos Gajdos
dbca4995c8
docs: Update to refer to new image tag v3 (#4373) 2025-04-03 12:04:00 -07:00
Milos Gajdos
9ed95e7365
Prep for v3 release (#4613) 2025-04-01 22:54:38 -07:00
Milos Gajdos
369663e4be
Fix S3 driver loglevel param
Unfortunately YAML struck us hard in this one.
It interprets "off" as a truthy value so setting loglevel to off sets it
to false.

This commit makes sure we set the loglevel to off if the param is
marshalled into false and if it's not a string.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-04-01 08:15:26 -07:00
Milos Gajdos
ceafb0414d
Update releases/v3.0.0.toml
Co-authored-by: Benjamin Schanzel <b.schanzel@gmail.com>
Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com>
2025-04-01 15:03:09 +01:00
Milos Gajdos
6266adaa96
Prep for v3 release
This is a prep for the first stable v3 release of registry.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-03-30 19:46:34 -07:00
Justin Cormack
2e63da9977
Fix golangci-lint config (#4612) 2025-03-30 20:18:20 +01:00
Milos Gajdos
fd14cf1933
Vrify the linter config first before running it
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-03-30 07:17:22 -07:00
Milos Gajdos
3a33ba12ad
Fix golangci-lint config
There was a typo and non-existent config option in the linter config.

Because we don't verify the config it's easy to miss it.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-03-29 20:42:18 -07:00
Milos Gajdos
75f32197b6
Bump Azure deps (#4611) 2025-03-28 08:39:27 -07:00
Milos Gajdos
52f0f6c45d
Bump Azure deps
This pulls in go-redis update as well.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-03-27 22:44:26 -07:00
Milos Gajdos
ef21149b49
build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 in the go_modules group across 1 directory (#4608) 2025-03-23 09:33:00 -07:00
Milos Gajdos
af047722af
Prep for v3-rc.4 release (#4606) 2025-03-22 06:38:52 -07:00
dependabot[bot]
05b308bc42
build(deps): bump github.com/golang-jwt/jwt/v5
Bumps the go_modules group with 1 update in the / directory: [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt).


Updates `github.com/golang-jwt/jwt/v5` from 5.2.1 to 5.2.2
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-21 22:28:21 +00:00
Milos Gajdos
be2025a833
Prep for v3-rc.4 release
* Created a changelog file
* Updated version
* Updated AUTHORS
* Updated .mailmap

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2025-03-20 21:41:10 -07:00
Milos Gajdos
c6d55cb1a9
Fix potential resource leak by ensuring the response body is closed in HTTPReadSeeker (#4605) 2025-03-20 13:02:42 -07:00