Skip to main content
February 20, 2024
Question

`op run` can hang indefinitely when the subprocess includes waiting on user response

  • February 20, 2024
  • 0 replies
  • 54 views

So I'm trying to keep vulnerable keypair information behind an op run call with some relevant environment variables set to op://... values.

One of the commands involves using the solana CLI, which, as a reductive example, when called as

solana transfer -k "usb://ledger?key=0" $TO_ADDRESS $AMOUNT

will request approval/signing for the transaction on a Ledger device connected to the machine by USB. However if this command appears in script.sh, then op run -- ./script.sh will hang indefinitely on that step instead, and the intention to approve/sign never makes it to the device.

Is there a general solution to this problem?


1Password Version: 8.10.24
Extension Version: Not Provided
OS Version: macOS 14.4
Browser: Chrome