unkey icon indicating copy to clipboard operation
unkey copied to clipboard

Bug: Unable to add certain permissions to key without changing the role

Open Flo4604 opened this issue 10 months ago • 4 comments

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

-

Flo4604 avatar Feb 04 '25 22:02 Flo4604

@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?

Nelwhix avatar Feb 06 '25 21:02 Nelwhix

I'd hold off on this, as any fix will be shortlived before we redesign this page in march

chronark avatar Feb 10 '25 10:02 chronark

Okay

Nelwhix avatar Feb 10 '25 10:02 Nelwhix

Completed recently, Perms and Roles can be attached to a key separately

perkinsjr avatar Jul 03 '25 17:07 perkinsjr