harbor/src/pkg
Antoine Jouve 73c2884e58
[Token/JWT] Update to golang-jwt v5.2.0 (#19802)
* feat: update to golang-jwt v5.2.0

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: module issues and robot claims

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: add missing time import

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: set jwt validation leeway to 60s

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: update leeways that were still set to 10s

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: update go.sum

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: add two leeway related test cases

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: correct jwt audience validation

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* fix: gofmt v2_token.go

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: take into account review comments

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

* feat: use a common constant to store JWT leeway

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>

---------

Signed-off-by: Antoine Jouve <ant.jouve@gmail.com>
Signed-off-by: Antoine Jouve <an-toine@users.noreply.github.com>
Co-authored-by: MinerYang <yminer@vmware.com>
2024-02-23 11:30:13 +08:00
..
accessory support accessory in either order (#19375) 2023-09-23 02:42:58 +08:00
allowlist add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
artifact perf: optimize the performance of accessory query (#19557) 2023-11-22 02:11:11 +00:00
artifactrash add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
audit bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
authproxy add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
blob bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
cached bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
chart add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
clients/core remove chartmuseum backend (#18191) 2023-02-16 18:11:05 +08:00
config bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
distribution lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
exporter bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
immutable add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
joblog add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
jobmonitor bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
label deprecate resource label (#19349) 2023-09-14 01:25:52 +08:00
ldap bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
member bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
notification add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
notifier bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
oidc bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
p2p/preheat bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
permission bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
project bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
proxy/secret add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
queuestatus add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
quota bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
rbac add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
reg feat: volc cr adapter (#19456) 2024-01-19 14:15:49 +08:00
registry bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
replication bump beego (#17801) 2022-11-24 18:07:42 +08:00
repository bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
retention bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
robot add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
scan bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
scheduler bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
securityhub bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
systemartifact add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
systeminfo lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
tag bump beego (#17801) 2022-11-24 18:07:42 +08:00
task bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
token [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
user bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00
usergroup add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
version inject ldflags for harbor compiler and linker 2019-10-30 18:31:42 +08:00
factory_test.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
factory.go bump golang 1.21.5 & fix golangci-lint error (#19722) 2023-12-19 09:41:26 +08:00