sighupio / permission-manager

Permission Manager is a project that brings sanity to Kubernetes RBAC and Users management, Web UI FTW
https://sighup.io/
BSD 3-Clause "New" or "Revised" License
1.31k stars 172 forks source link

User settings window hangs #94

Closed Gyzes closed 1 year ago

Gyzes commented 2 years ago

k8s: v1.22.2 permission-manager: v1.7.1-rc1

Error process:

  1. Create a user and give rights to namespace
  2. Remove namespace
  3. Open the user for editing
  4. The endless process of "... loading" and the out of memory error

image

Found error correction process:

  1. Remove CustomResourceDefinitions
  2. Create user again
ralgozino commented 2 years ago

Hi @Gyzes ! Thanks for reporting this issue. I can replicate the bug. The frontend hangs, backend seems to be OK though.

amoravek commented 2 years ago

The same here. It seems all versions starting from 1.5.1 are affected. However, the workaround mentioned by @Gyzes worked out.

bandikoot commented 1 year ago

I might add some clarity — we'd stumbled onto the same UI behavior & established that it is was caused when there was a change in naming pattern of permissionmanagerusers.permissionmanager.users resources:

So when, e.g., one

this user's page becomes inaccessible.

The workaround was to manually rename all permissionmanagerusers.permissionmanager.users resources to a pattern, suitable for the current permission-manager version.

So it's likely that user page starts to load endlessly whenever there's a 404 from k8s API.

luigibarbato commented 1 year ago

First of all, thank you for the issue and especially for waiting. We are back with active permission-manager development. I will take charge of the issue, maybe if we can release the fix for v1.8.0. Good catch ✌🏽