harbor/src/server/middleware
Aaron Dewes caee762b51
Upgrade to distribution (registry) v3 alpha (#19784)
* registryctl/api/registry/blob: fix dropped test error (#19721)

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>

* Remove robot account update quota permission (#19819)

Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>

* Cache image list with digest key (#19801)

fixes #19429

Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: stonezdj <daojunz@vmware.com>

* Add quota permissions testcase (#19822)

Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>

* deprecate gosec in makefile (#19828)

remove the unused the part from makefile

Signed-off-by: wang yan <wangyan@vmware.com>

* Add verification that robot account duration is not 0 (#19829)

Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>

* fix artifact page bug (#19807)

* fix artifact page bug

* update testcase

* Upgrade to distribution (registry) v3 alpha

This includes all the benefits of the v3 distribution, but also all breaking changes.

Most notably, Image Manifest v2 Schema v1 support has been dropped, as well as the `oss` and `swift` storage drivers.

Currently, this still relies on v2's github.com/docker/distribution/registry/client/auth/challenge, because that code has been removed from the public API in v3.

Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com>

---------

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
Signed-off-by: stonezdj <daojunz@vmware.com>
Signed-off-by: wang yan <wangyan@vmware.com>
Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com>
Co-authored-by: Lars Lehtonen <lars.lehtonen@gmail.com>
Co-authored-by: Yang Jiao <72076317+YangJiao0817@users.noreply.github.com>
Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>
Co-authored-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Co-authored-by: stonezdj <daojunz@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
Co-authored-by: ShengqiWang <124650040+ShengqiWang@users.noreply.github.com>
2024-01-26 22:48:06 +01:00
..
apiversion lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
artifactinfo Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
blob add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
contenttrust fix signer name (#19001) 2023-07-25 21:30:32 +08:00
cosign Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
csrf add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
immutable add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
log feat: log with trace ID (#18181) 2023-04-17 15:03:00 +08:00
mergeslash add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
metric add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
notification feat: integrate CloudEvents to webhook (#18322) 2023-03-14 10:44:25 +08:00
orm bump beego (#17801) 2022-11-24 18:07:42 +08:00
quota Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
readonly fix: use ctx from http request for middlewares (#15523) 2021-09-02 19:05:35 +08:00
repoproxy bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
requestid feat: integrate CloudEvents to webhook (#18322) 2023-03-14 10:44:25 +08:00
security Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
session bump beego (#17801) 2022-11-24 18:07:42 +08:00
subject Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
trace Refactor trace code 2021-09-18 10:58:52 +00:00
transaction bump beego (#17801) 2022-11-24 18:07:42 +08:00
url add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
util fixes 19043 (#19054) 2023-07-31 15:11:21 +08:00
v2auth add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
vulnerable Upgrade to distribution (registry) v3 alpha (#19784) 2024-01-26 22:48:06 +01:00
middleware_test.go feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
middleware.go fix: refactor code for golangci-lint whitespace (#17005) 2022-06-16 17:42:46 +08:00
skipper_test.go feat(middleware): add transaction middleware for v2 and v2.0 APIs 2020-01-22 05:00:39 +00:00
skipper.go feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00