Closed sicko583 closed 5 months ago
I just saw one similar issue https://github.com/goharbor/harbor/issues/15253 which was fix in v.28.0, is it related?
another error logs found when I tried to re-deploy harbor-helm with the same version:
2024-06-20T07:24:11Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:11Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="6bc792915459cba2cd8fee690c2dca39" traceID="438f2ecd2454ca03a45ae9e79b73871c"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:12Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:12Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="5e7147da3b401d907a82be7e654adffd" traceID="efac1860eea7b97998e55fbc45946f26"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:12Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:12Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="804fd458a0bb6d308526f7bffb21f27a" traceID="f07fdda0a4520138d704016416195806"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:13Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:13Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="b69126e2fbb8c21d398572afdcb80ee7" traceID="3c4a6c04af270d0370fda5598b60077c"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:13Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:13Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="e7d978e868b433cdcdef6ce8233b9d88" traceID="36949227711ca55fcae0d3cae6d4d267"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:13Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:13Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="1675bb80358656d63ce0225309f49147" traceID="688832c9b852594f388280d3c5f155d9"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:14Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:14Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="4bf97483eaee610d81cecdbc7376ea4e" traceID="5c866b21a984d4832f261376f17d6a58"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:16Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:16Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="3a19ce11c1ebdbe8ea4d55610270785f" traceID="18749ff015ec8f82e9874b7a3c9bd9d1"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:17Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:17Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="760fa9065279cc901b16a623b79f7b92" traceID="3acf97a45e8725565d550025d32e449d"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:18Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:18Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="42b249555f5c1cba7e50c1ae371ede57" traceID="68a9d1d09b6f9a59410146027433bb0a"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:24:18Z [ERROR] [/pkg/token/token.go:82]: parse token error, crypto/rsa: verification error
2024-06-20T07:24:18Z [WARNING] [/server/middleware/security/v2_token.go:67][requestID="ec1cdc29e47df0f0088c550a65e48362" traceID="3acf97a45e8725565d550025d32e449d"]: failed to decode bearer token: crypto/rsa: verification error
2024-06-20T07:25:45Z [INFO] [/lib/encrypt/encrypt.go:60]: the path of key used by key provider: /etc/core/key
And no errors when docker login with robot account:
2024-06-20T07:27:23Z [INFO] [/server/middleware/security/robot.go:71][requestID="9930899d4c802ed0ad94be0f6a9a9308"]: a robot security context generated for request GET /service/token
2024-06-20T07:28:02Z [INFO] [/server/middleware/security/robot.go:71][requestID="58ef3c80168928bb8a6f35787f4e1da2"]: a robot security context generated for request GET /service/token
I removed the configured credentials in value file and leave it blank, and it fixed. I will close this issue.
Hi team,
I upgrade Harbor from v 2.8.4 to v2.10.2 today, and I got some errors when testing:
Some logs shown:
docker login errors:
harbor-core logs:
pod logs:
In my situation I can login Harbor UI with OIDC user, and I can see/search images in projects as expected. Robot account can be created/removed/edited, but seems all operations with API calls would fail. I have searched quite a lot in issues but can not find the root cause. Can anyone Senior can help me on this? Thanks quite a lot for your help and time here.