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

Cockpit UI: Integration of Granular Permissions through Polkit #19433

Closed
kubiakszymonp opened this issue Oct 4, 2023 · 1 comment
Closed

Comments

@kubiakszymonp
Copy link

I'm reaching out to discuss an issue regarding the Cockpit UI and its interaction with Polkit for managing granular permissions. The detailed context of this query can be associated with issue #17346.

At present, managing various settings through the Cockpit UI, requires superuser status. Some parts of UI are invisible if superuser.allowed is set to false. This behavior persists even if Polkit rules permit the user to perform the relevant actions.

Desired state will be to check if user has the ability to make this action through Polkit - if not logged as superuser. And then show or hide the UI parts respectively.

Is there anything being done currently about supporting Polkit on the frontend side?

Are there any plans on implementing it?

I have some ideas how to implement it on the UI side, using custom react hooks. Personally i think that this feature will be really useful and will make the UI more compatible with the backend.

Thanks in advance.

@martinpitt
Copy link
Member

Our team does not currently work on this. It's purely a capacity and priority issue -- we actually want this, but implementing it is a lot of work. Fortunately it can be done step by step. If you want to look into this, that'd be appreciated of course! Please contact us (Matrix, GitHub) first though, so that we can discuss and agree on an implementation strategy.

Closing as duplicate of #11033.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants