harbor/src
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
..
cmd log: change log level to reduce the noise logs (#19146) 2023-08-17 11:11:04 +08:00
common [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
controller Log ensureArtifact ConflictErr (#19294) 2024-01-15 18:39:01 +08:00
core [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
jobservice feat: volc cr adapter (#19456) 2024-01-19 14:15:49 +08:00
lib remove the log for ScannerSkipUpdatePullTime (#19845) 2024-01-15 17:47:16 +08:00
migration remove the legacy migration (#18754) 2023-05-30 15:17:24 +08:00
pkg [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
portal Updated internationalisation : fr-fr (#19915) 2024-02-11 14:21:10 +00:00
registryctl registryctl/api/registry/blob: fix dropped test error (#19721) 2024-01-09 12:45:24 +00:00
server [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
testing Feature: GDPR compliant audit logs (#17396) 2023-11-20 21:31:22 +01:00
.golangci.yaml add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
copyright.tmpl add goheader linter settings (#18503) 2023-04-25 11:18:42 +08:00
favicon.ico update icons (#18767) 2023-07-12 17:35:14 +03:00
go.mod [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00
go.sum [Token/JWT] Update to golang-jwt v5.2.0 (#19802) 2024-02-23 11:30:13 +08:00