permission-manager
permission-manager copied to clipboard
User settings window hangs
k8s: v1.22.2 permission-manager: v1.7.1-rc1
Error process:
- Create a user and give rights to namespace
- Remove namespace
- Open the user for editing
- The endless process of "... loading" and the out of memory error
Found error correction process:
- Remove CustomResourceDefinitions
- Create user again
Hi @Gyzes ! Thanks for reporting this issue. I can replicate the bug. The frontend hangs, backend seems to be OK though.
The same here. It seems all versions starting from 1.5.1 are affected. However, the workaround mentioned by @Gyzes worked out.
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:
- older versions (up to 1.6.0) create
permissionmanager.user.<username>
— check out here - latest versions create
permissionmanagerusers.permissionmanager.user.<username>
— this is set byResourcePrefix
variable here, variable itselft is defined here
So when, e.g., one
- deploys an older version of PM
- creates users
- upgrades the version of PM
- deletes a previously created user,
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.
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 ✌🏽