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

[BUG] Panic setting password to Azure AD (Entra ID) user #45451

Open
moio opened this issue May 13, 2024 · 0 comments
Open

[BUG] Panic setting password to Azure AD (Entra ID) user #45451

moio opened this issue May 13, 2024 · 0 comments
Labels
area/authentication kind/bug Issues that are defects reported by users or that we know have reached a real release team/collie the team that is responsible for auth and rbac within rancher
Milestone

Comments

@moio
Copy link
Contributor

moio commented May 13, 2024

Rancher Server Setup

  • Rancher version: 2.8.3
  • Installation option (Docker install/Helm Chart): Helm Chart on AKS

Information about the Cluster

  • Kubernetes version: AKS 1.27.7
  • Cluster Type (Local/Downstream): Local

User Information

  • What is the role of the user logged in? Admin

Describe the bug
Attempting to set a password for a user in the Azure AD authentication provider fails, a panic is produced in pod logs:


2024/05/13 12:15:57 [ERROR] Panic serving api request: 
goroutine 104951 [running]:
runtime/debug.Stack()
    /usr/lib64/go/1.21/src/runtime/debug/stack.go:24 +0x5e
github.com/rancher/norman/api.(*Server).ServeHTTP.func1()
    /go/pkg/mod/github.com/rancher/norman@v0.0.0-20240206180703-6eda4bc94b4c/api/server.go:175 +0x6d
panic({0x4150760?, 0xc0079a9350?})
    /usr/lib64/go/1.21/src/runtime/panic.go:914 +0x21f
github.com/rancher/rancher/pkg/auth/api/user.(*Handler).setPassword(0x7?, {0x4b0ef61?, 0x4?}, 0x0?, 0xc006c85560)
    /go/src/github.com/rancher/rancher/pkg/auth/api/user/user_actions.go:142 +0x4b9
github.com/rancher/rancher/pkg/auth/api/user.(*Handler).Actions(0x408ed00?, {0xc00afd9963?, 0x4b0f551?}, 0xc00226d0e0?, 0xc00456e450?)
    /go/src/github.com/rancher/rancher/pkg/auth/api/user/user_actions.go:48 +0x56
github.com/rancher/norman/api.handleAction(0xc006c85560?, 0xc006c85560?)
    /go/pkg/mod/github.com/rancher/norman@v0.0.0-20240206180703-6eda4bc94b4c/api/server.go:263 +0x77
github.com/rancher/norman/api.(*Server).handle(0xc000bc0c60, {0x55f4c80?, 0xc009e22220?}, 0xc003c5e9c0?)

To Reproduce

Result

Nondescriptive error in the UI:
image

Panic above in logs.

Expected Result

Operation success

Screenshots
See above

@moio moio added the kind/bug Issues that are defects reported by users or that we know have reached a real release label May 13, 2024
@samjustus samjustus added area/authentication team/collie the team that is responsible for auth and rbac within rancher labels May 13, 2024
@samjustus samjustus modified the milestones: v2.10-Next1, v2.9-Next1 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authentication kind/bug Issues that are defects reported by users or that we know have reached a real release team/collie the team that is responsible for auth and rbac within rancher
Projects
None yet
Development

No branches or pull requests

2 participants