Open athewsey opened 8 months ago
Recently, I'm finding that the above no longer works properly with password-protected GPG keys in SMStudio... Trying to git commit
produces:
error: gpg failed to sign the data
...and trying to gpg -s
just hangs without prompting for the key password. pinentry
seems to be installed fine, and killing gpg-agent
doesn't seem to help.
Finally found a workaround that seems to solve the pinentry failures (on SageMaker Distribution 1.7)... Run:
export GPG_TTY=$(tty)
For organizations that sign git commits with GPG, it would be helpful if GPG was installed in the SageMaker distribution by default?
For now, I've got it working by adding an entry to the SMStudio lifecycle configuration script like below, to install at run time: