feat: Add sudo authentication screen and update authorization flow

- Introduced a new module for terminal presentation during sudo authentication.
- Updated the application to display a temporary authentication notice.
- Enhanced tests to cover the new sudo authentication flow and its edge cases.
This commit is contained in:
Philip Henning 2026-09-04 20:02:46 +02:00
parent 0b7b52521f
commit d5a143ee36
5 changed files with 206 additions and 15 deletions

View file

@ -186,10 +186,11 @@ reachable through the TUI. Editing them manually is not a supported workflow.
### Privileged Mode needs authentication
This is expected when no cached sudo authorization is available. `hosts` never
collects credentials; `sudo` and PAM present any configured authentication
method, such as Touch ID or a password prompt. Canceling authentication leaves
the application in Read-only Mode.
This is expected when no cached sudo authorization is available. `hosts` first
shows a temporary authentication notice, then `sudo` and PAM present any
configured authentication method, such as Touch ID or a password prompt.
`hosts` never collects credentials. Canceling authentication leaves the
application in Read-only Mode.
### Privileged Mode cannot be enabled