8000 Core pod showing "token signature is invalid: crypto/rsa: verification error" when logging in · Issue #22090 · goharbor/harbor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Core pod showing "token signature is invalid: crypto/rsa: verification error" when logging in #22090
Open
@d-m

Description

@d-m

I've deployed Harbor to Kubernetes, configured it to use LDAP authentication, and deployed it to two regions in AWS using the same IAC in Terraform. One region works correctly. However, in the other region, when logging in I receive the following error for both LDAP users and robot users:

$ docker login <registry url> -u <user>
Password: 
Error response from daemon: login attempt to https://<registry url>/v2/ failed with status: 401 Unauthorized

The core pod shows the following logs:

2025-06-16T18:04:18Z [ERROR] [/pkg/token/token.go:80]: parse token error, token signature is invalid: crypto/rsa: verification error
2025-06-16T18:04:18Z [WARNING] [/server/middleware/security/v2_token.go:59]: failed to decode bearer token: token signature is invalid: crypto/rsa: verification error
2025-06-16T18:04:18Z [DEBUG] [/server/middleware/log/log.go:36]: attach request id 7712e25b-228d-44c4-84d3-b3a561cedbc0 to the logger for the request GET /v2/
2025-06-16T18:04:18Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="7712e25b-228d-44c4-84d3-b3a561cedbc0" traceID="f95a4f374b701afb093c339df6a3f306"]: an unauthorized security context generated for request GET /v2/
2025-06-16T18:04:18Z [DEBUG] [/lib/http/error.go:63]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized: unauthorized"}]}

Any ideas where I could start troubleshooting?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0