Delegate Privileged Mode authentication to sudo/PAM without corrupting the TUI #3
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: phg/hosts#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When entering Privileged Mode without cached sudo authorization,
hostscollects a password in its own modal and passes it tosudo -S -v. This assumes password-only authentication, prevents configured PAM methods such as Touch ID from owning the interaction, and can corrupt the Textual interface if interactive sudo is run without first releasing the terminal.Required behavior
hostsnever collects, stores, or pipes authentication credentials.sudo -n -vso cached authorization enters Privileged Mode without disturbing the TUI.sudo -vinvocation with inherited terminal input and output, then restore and redraw the TUI.sudo, unsupported suspension, failed permission validation, or failed backup creation.Acceptance evidence
Documentation impact
The existing glossary terms Privileged Mode, Read-only Mode, and Pre-edit Backup cover this behavior. No new glossary entry or ADR is needed.
sudo elevation does not check for alternative PAM methodsto Delegate Privileged Mode authentication to sudo/PAM without corrupting the TUIImplemented in commit
026bbc4(Delegate privileged authentication to sudo PAM). Cached sudo, foreground PAM authentication, TUI restoration, failure handling, tests, and documentation are complete.