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

Do not ask for admin password for upgrade --check #4971

Open
mcrha opened this issue May 21, 2024 · 0 comments
Open

Do not ask for admin password for upgrade --check #4971

mcrha opened this issue May 21, 2024 · 0 comments

Comments

@mcrha
Copy link
Contributor

mcrha commented May 21, 2024

Describe the bug

When calling rpm-ostree upgrade --check I'm asked for the root/admin password with an explanation "Authentication is required to update software`, but I'm not updating the software, I'm only checking what updates are available. It can modify some internal states, like the CachedUpdates, but, I think, it's not really needed to ask for the root/admin password in this case.

This applies also to the D-Bus interface.

Similarly when issuing AutomaticUpdateTrigger with mode=check over D-Bus.

Rationale: this provides bad user experience for the users of the gnome-software, because it's checked for updates shortly after the app is started (around a minute), thus after the user logs in. The sudden out of blue password prompt is disturbing and confusing.

Reproduction steps

run rpm-ostree upgrade --check

Expected behavior

No root/admin password

Actual behavior

Asks for root/admin password

System details

rpm-ostree-2024.5-2.fc40.x86_64

rpm-ostree:
 Version: '2024.5'
 Git: 4479e824f94b09ec3f6c34f15b08f3813644fff6
 Features:
  - rust
  - compose
  - container
  - fedora-integration

Additional information

No response

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

No branches or pull requests

1 participant