terraform-provider-pass
terraform-provider-pass copied to clipboard
decrypt pass once before running terraform plan/apply
When pass never has decrypted a given store, terraform plan fails with "failed to decrypt" error message. After manually doing a pass ls /path/to/key and enter the GPG password, it works fine.
Maybe a function should be implemented in the terraform data-source doing a pass ls command silently first to make GPG asking for a password once.
Any plans on this?
I can't reproduce this...
Maybe it's an OSX specific issue. I'll try to see if this behavior has changed already.
This might not be fixable within provider. I have a similar issue with other automation that uses pass (on linux). When I run this after logging in, it will fail with a message that a key is not present. For some reason gpg-agent thinks it has no console and refuses to run any form of pinentry. The only thing I can do at that point is stop gpg-agent and run pass from console at least once.
In my case it isn't about decrypting this or the other store, it's about gpg not seeing it's keys because it wasn't launched directly in terminal.
Closing this issue based on the last comment.