mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-21 16:02:20 +00:00
fix(settings): pass the host-boundary guard and follow the default keys
The passphrase box checks which key file is on this machine with std::fs::metadata, which the host-boundary guard rejected; allowlist it beside the existing std::fs::read entry for the same client-side key. An empty key field now resolves to the ~/.ssh defaults build_spec_inner offers, so a default encrypted key can be given a passphrase from the form. The key is also re-resolved when host or user change, since they fill %h/%r in the path. Drop the unused SettingsForget string.
This commit is contained in:
@@ -59,6 +59,9 @@ src/ui/app.rs|std::fs::create_dir_all
|
||||
src/ui/ssh_prompt.rs|std::fs::read
|
||||
src/ui/ssh_connect.rs|std::fs::read
|
||||
src/ui/settings.rs|std::fs::read
|
||||
# The host editor asking which of those keys is on this machine before it offers
|
||||
# a passphrase box for one — the same client-side key, never a workspace path.
|
||||
src/ui/settings.rs|std::fs::metadata
|
||||
|
||||
# Shell history lives in the local user's home (`~/.zsh_history` &co.) and backs
|
||||
# this app's own history search. A remote pane's history is the remote shell's
|
||||
|
||||
Reference in New Issue
Block a user