Bug: Unable to add certain permissions to key without changing the role
Preliminary Checks
-
[x] I have reviewed the documentation: https://unkey.com/docs
-
[x] I have searched for existing issues: https://github.com/unkeyed/unkey/issues
-
[x] This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.
Reproduction / Replay Link (Optional)
No response
Issue Summary
Currently, the key details page has no way of just assigning permission to a key.
It currently lists all roles and the permissions of those roles, any changes done there will affect the whole role and not only the key.
https://github.com/user-attachments/assets/8e6ca603-9399-4176-b388-ccd5c5209353
Steps to Reproduce
Expected behavior
I would expect to be able to add roles to the key and permissions separately.
This could be done by showing all roles and having a checkbox for which roles should be attached to the key. Then, another menu could list all permissions currently linked to the key, either due to a linked role having this permission or the permission being directly attached to the key.
Other information
No response
Screenshots
No response
Version info
-
@chronark I would like to work on this. What will be the ideal flow? I am thinking the permissions section will still list out the roles and permissions but if you check directly on a permission. It attaches just that permission instead of the whole role to the key. Is that okay?
I'd hold off on this, as any fix will be shortlived before we redesign this page in march
Okay
Completed recently, Perms and Roles can be attached to a key separately