Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin, error: failed to get oidc user info, error: <QuerySeter> no row found #21041

Open
kssanthoshselvaraj04 opened this issue Oct 14, 2024 · 2 comments · May be fixed by #21061
Open

Admin, error: failed to get oidc user info, error: <QuerySeter> no row found #21041

kssanthoshselvaraj04 opened this issue Oct 14, 2024 · 2 comments · May be fixed by #21061
Assignees
Labels
target/2.13.0 issues that are targeting v2.13.0

Comments

@kssanthoshselvaraj04
Copy link

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:
Getting frequent error on the harbor core container

Steps to reproduce the problem:
Please provide the steps to reproduce this problem.
Enable OIDC authentication
enable OIDC user login except admin user

Versions:
Please specify the versions of following systems.

  • harbor version: 2.11.1

Error Logs:
2024-09-19T16:56:12Z [ERROR] [/server/middleware/security/oidc_cli.go:68][requestID="242bf2db33e997bf2c69f93d81f51db8"]: failed to verify secret, username: admin, error: failed to get oidc user info, error: <QuerySeter> no row found 2024-09-19T16:56:42Z [ERROR] [/server/middleware/security/oidc_cli.go:68][requestID="fa0b94915681af7a535e11c2af207b0e"]: failed to verify secret, username: admin, error: failed to get oidc user info, error: <QuerySeter> no row found 2024-09-19T16:57:12Z [ERROR] [/server/middleware/security/oidc_cli.go:68][requestID="195ee11d4bd8ea0c39368145cf76c153"]: failed to verify secret, username: admin, error: failed to get oidc user info, error: <QuerySeter> no row found 2024-09-19T16:57:42Z [ERROR] [/server/middleware/security/oidc_cli.go:68][requestID="4539600fe12d22a94fd11623237bded8"]: failed to verify secret, username: admin, error: failed to get oidc user info, error: <QuerySeter> no row found

@kssanthoshselvaraj04
Copy link
Author

kssanthoshselvaraj04 commented Oct 16, 2024

@Vad1mo Please let me know is this a know bug.

@wy65701436
Copy link
Contributor

@kssanthoshselvaraj04 Did you notice any unexpected behavior on your end?

The error message indicates that the admin user is not registered on the OIDC server, but Harbor will continue to authenticate the admin through database authenticator.

This message is somewhat misleading as it pertains specifically to the admin login. I agree that the messaging should be improved to enhance clarity for users. Additionally, we might need to consider bypassing the admin user for all non-database authentication methods.

stonezdj added a commit to stonezdj/harbor that referenced this issue Oct 18, 2024
stonezdj added a commit to stonezdj/harbor that referenced this issue Oct 18, 2024
@reasonerjt reasonerjt added target/2.13.0 issues that are targeting v2.13.0 and removed candidate/2.13.0 labels Nov 12, 2024
stonezdj added a commit to stonezdj/harbor that referenced this issue Nov 19, 2024
stonezdj added a commit to stonezdj/harbor that referenced this issue Nov 19, 2024
stonezdj added a commit to stonezdj/harbor that referenced this issue Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/2.13.0 issues that are targeting v2.13.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants