Password manager: Conditionally broadcast password when input broadcasting is enabled
I use input broadcasting a lot when working with multiple servers which are not handled by some management software and would like to input my password from the password manager to all panes at the same time when invoking sudo, preferably via trigger.
Related issue #6294 is handled here, too.
Thanks for filing an issue! Please answer the questions below so I can help you.
Thanks for maintaining this great piece of software and for helping me!
- iTerm2 version: Build 3.3.12
- OS version: macOS Catalina (10.15.6)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
com.googlecode.iterm2.plist - Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
I don't think this is required to reproduce this issue but I will add it on request. - Attach a screen capture video if it would make the reproduction steps clearer.
I don't think this is required to reproduce this issue but I will add it on request.
Detailed steps to reproduce the problem:
- Open multiple panes
- Enable input broadcasting, e.g.
Shift+CMD+I
- Invoke the password manager, select an entry and hit "Enter Password".
What happened:
The password manager is broadcasting its output to the active pane only. To login in every pane, you need to switch to every single pane, open the password manager, select the account and click "Enter Password".
What should have happened:
When broadcasting is enabled I'd expect the following:
If iTerm detects password prompts (there is the key icon) in all panes, I'd expect iTerm to ask if I want to continue.
If iTerm detects no password prompts (there is the key icon), I'd expect iTerm to warn me about clear text and ask if I want to continue.
If iTerm detects a password prompt (there is the key icon) in at least one but not all panes, I'd expect iTerm to warn me and ask what to do (password prompts only, all or abort).
Each dialog should have a do-not-ask-me-again checkbox.
I'd expect this to work with triggers, too. Right now the password manager is triggered just once for the active pane. You have to switch to every single pane manually, invoke the password manager, select an account and click "Enter Password".