From time to time, an authentication dialog appears on my laptop running Linux Mint asking me to authorize some action. I've seen several different actions so far. This has been happening for many years and only occasionally. I have no reason to believe that these actions are not legitimate but I never authorize them out of principle.
You should not put your password in every dialog that appears out of nowhere, right?
Recently, it became more frequent after I added another user account. When switching between accounts I often encountered a request to authorize software update. The culprit is this flatpak action:
<action id="org.freedesktop.Flatpak.appstream-update">
...
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
An inactive user needs an admin password to perform the action. Why is the action not simply allowed or disallowed for inactive user?
This is a common trend in many polkit actions. Does this mean that it is an accepted behavior that when some background action needs authentication it can just pop up a dialog for the active user? Or am I missing something?