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

Unable to enter password in GPG password prompt (pinentry) #3419

Open
dcchambers opened this issue Jun 13, 2024 · 0 comments
Open

Unable to enter password in GPG password prompt (pinentry) #3419

dcchambers opened this issue Jun 13, 2024 · 0 comments

Comments

@dcchambers
Copy link

Attempting to enter GPG password in the terminal (with the pinentry program) results in graphical errors (text pasting in the wrong place) in Zellij and inability to enter my GPG key secret. This ultimately ends in zellij behaving incorrectly/me needing to close it in order to regain proper control.

Issue description

I have GPG-signing enabled for git, so when I do a git commit I need to enter my password/GPG secret key in the pinentry program. This opens up a password prompt in the terminal which normally hides the password characters from view. When trying to run this in Zellij I am unable to enter my password at all - the text does not enter in the password prompt area in the terminal and characters appear unhidden.

image

Here's a couple of screenshots that run through the issue:

Before running git commit command which will prompt me to enter my GPG password:
image

The GPG password prompt popping up:
image

Graphical issues and inability to enter my password:
image

Minimal reproduction

Enable GPG signing in git and try to commit a code change causing the GPG password prompt to pop up

Other relevant information

Because this is...sort of a grapical issue I included some graphical info as well:

  • Terminal emulator: I can reproduce this in both Alacritty and Terminal.app
  • zellij --version: zellij 0.40.1
  • stty size: 22 x 90 (but reproducible at any size I tried)
  • uname -av or ver(Windows): Darwin QCM262HV7N 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64

Logs

Logs
INFO   |zellij_client            | 2024-06-13 09:27:49.211 [main      ] [zellij-client/src/lib.rs:178]: Starting Zellij client! 
INFO   |zellij_server            | 2024-06-13 09:27:49.226 [main      ] [zellij-server/src/lib.rs:284]: Starting Zellij server! 
INFO   |zellij_server            | 2024-06-13 09:27:49.283 [main      ] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2024-06-13 09:27:49.283 [wasm      ] [zellij-server/src/plugins/mod.rs:203]: Wasm main thread starts 
WARN   |zellij_utils::input::layo| 2024-06-13 09:27:49.284 [wasm      ] [zellij-utils/src/input/layout.rs:105]: Overriding plugin alias 
WARN   |zellij_utils::input::layo| 2024-06-13 09:27:49.284 [wasm      ] [zellij-utils/src/input/layout.rs:105]: Overriding plugin alias 
INFO   |zellij_server::plugins::p| 2024-06-13 09:27:49.291 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:533]: Loaded plugin 'tab-bar' from cache folder at '/Users/dchambers/Library/Caches/org.Zellij-Contributors.Zellij' in 2.413959ms 
INFO   |zellij_server            | 2024-06-13 09:27:49.291 [async-std/runti] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins::p| 2024-06-13 09:27:49.294 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:533]: Loaded plugin 'status-bar' from cache folder at '/Users/dchambers/Library/Caches/org.Zellij-Contributors.Zellij' in 5.251292ms 
INFO   |zellij_server            | 2024-06-13 09:27:49.294 [async-std/runti] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift 
INFO   |zellij_client            | 2024-06-13 09:30:04.378 [main      ] [zellij-client/src/lib.rs:533]: Bye from Zellij! 
INFO   |zellij_server::plugins   | 2024-06-13 09:30:04.378 [wasm      ] [zellij-server/src/plugins/mod.rs:745]: wasm main thread exits 
ERROR  |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen    ] [zellij-server/src/os_input_output.rs:915]: Failed to apply cached resizes: failed to send message to pty writer 
ERROR  |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen    ] [zellij-server/src/os_input_output.rs:904]: Failed to cache resizes: failed to send message to pty writer 
ERROR  |zellij_server::os_input_o| 2024-06-13 09:30:04.379 [screen    ] [zellij-server/src/os_input_output.rs:915]: Failed to apply cached resizes: failed to send message to pty writer 
INFO   |zellij_server::plugins::w| 2024-06-13 09:30:04.380 [wasm      ] [zellij-server/src/plugins/wasm_bridge.rs:287]: Bye from plugin 0 
INFO   |zellij_server::plugins::w| 2024-06-13 09:30:04.381 [wasm      ] [zellij-server/src/plugins/wasm_bridge.rs:287]: Bye from plugin 1 
✔ .bashrc loaded
�[?2004h�[0;35m09:27:49�[0m�[0;36m ~�[0m�[0;31m ❱❱ �[0msttuy��[K��[Ky sdize��[K��[K��[K��[Kize
�[?2004l
22 90
�[?2004h�[0;35m09:27:54�[0m�[0;36m ~�[0m�[0;31m ❱❱ �[0mcd Code/dotfiles/
�[?2004l
�[?2004h�[0;35m09:28:10�[0m�[0;36m ~/Code/dotfiles�[0m�[0;31m ❱❱ �[0mgit commit -m 'Add zed config'��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[KUpdate zede confi��[K��[K��[K��[K��[K��[K��[K��[Kd zco��[K��[K��[Kconfig'
�[?2004l
asoddfasflksferror: gpg failed to sign the data:
[GNUPG:] KEYEXPIRED 1708110492
[GNUPG:] KEYEXPIRED 1708110492
[GNUPG:] KEY_CONSIDERED AE7A7B8C84E669E74EDEF950D8DCF86968549629 2
[GNUPG:] BEGIN_SIGNING H8
[GNUPG:] PINENTRY_LAUNCHED 5490 curses 1.3.0 /dev/ttys000 xterm-256color - 20620/503/4 503/20 0
gpg: signing failed: Timeout
[GNUPG:] FAILURE sign 83886142
gpg: signing failed: Timeout

fatal: failed to write commit object
�[?2004h�[0;35m09:29:57�[0m�[0;36m ~/Code/dotfiles�[0m�[0;31m ❱❱ �[0masoddfasflksf�[?2004l
�[?2004h�[?2004l

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