Skip to content

service/polkit: Expose the details of polkit authentication requests - #1570

Open
friedow wants to merge 1 commit into
quickshell-mirror:masterfrom
friedow:polkit-request-details
Open

friedow wants to merge 1 commit into
quickshell-mirror:masterfrom
friedow:polkit-request-details

Conversation

@friedow

@friedow friedow commented Nov 28, 2026 •

Copy link
Copy Markdown

Describe your changes

To show users which application is requesting superuser access and also to show which action the caller is trying to invoke with those access rights we need the details of polkit authentication requests to be exposed to client applications.

I've tried this patch locally and was able to build these neat little popups with it:

Password Security key
image image

Details and descisions

I've introduced a new read-only AuthFlow.details property holding the key-value pairs polkit sends with each request.

Open concerns

I don't think so, its a pretty small and straight forward change.

Participation

Pretty sad that this is necessary. Of course I'll follow up on this :).

To show users which application is requesting superuser access and also
to show which action the caller is trying to invoke with those access
rights we need the details of polkit authentication requests to be
exposed to client applications.
@poornan

poornan commented Dec 1, 2026 •

Copy link
Copy Markdown

Hi @friedow, I opened #1579 for the same change before I noticed yours, and have closed it as a duplicate of this one.

One part of mine might be useful here: an automated test for the details conversion (the polkit service has no tests yet). I tried it on top of your branch as it is and it builds and passes, also with ASan. It covers six cases: no details object, no keys, one key, several keys, an empty value, and non-ASCII text. It is three files under src/services/polkit/test/ plus four lines in the service's CMakeLists.txt.

If you want it, either way works for me:

  • I open a PR against your polkit-request-details branch, or
  • you cherry-pick the one commit, which sits directly on top of your current head (1a69d47): poornan@3171fcb0aecd

No problem at all if you or the maintainers would rather keep this PR as it is.

For transparency: the test was written with the help of Claude.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants