big-lizard-68492
07/03/2022, 2:05 PMpulumi stack select <stack>
successfully with my passphrase but when trying to run a pulumi preview
command it is throwing the following error: error: getting secrets manager: incorrect passphrase
This error is different from the error I would usually get if my passphrase is wrong for 2 reasons:
1. when the passphrase is wrong I usually can't even select the stack successfully
2. the usual error string i am getting for the wrong passphrase is: error: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase or set PULUMI_CONFIG_PASSPHRASE_FILE to a file containing the passphrase
Issue 2:
A stack passphrase became unknown, is there a way to fix the current stack manually if I have access to the stack JSON file? some workaround I can perform in order to change the passphrase from within the stack file?echoing-dinner-19531
07/03/2022, 2:55 PMstack select
actually validates the passphrase is correct, so might just be you've got a typo that only preview is catching.
For issue two you might be able to export the state and remove and secret objects (they have a key "4dabf18193072939515e22adb298388d" with value "1b47061264138c4ac30d75fd1eb44270") and remove the password config and salt from the stack config. But I'd take backups of state and config before trying that.big-lizard-68492
07/03/2022, 3:04 PMstack select
actually does validate. it fails when performing it with a different passphrase. In addition, when failing regarding the passphrase I usually get a different error msg.
regarding issue number two - great, this is one of the workarounds I had in mind. Thank you🙏!echoing-dinner-19531
07/03/2022, 3:06 PMbig-lizard-68492
07/03/2022, 3:33 PMechoing-dinner-19531
07/05/2022, 7:59 PM