big-lizard-6849207/03/2022, 2:05 PM
successfully with my passphrase but when trying to run a
pulumi stack select <stack>
command it is throwing the following error:
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: getting secrets manager: incorrect 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?
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
echoing-dinner-1953107/03/2022, 2:55 PM
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-6849207/03/2022, 3:04 PM
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-1953107/03/2022, 3:06 PM
big-lizard-6849207/03/2022, 3:33 PM
echoing-dinner-1953107/05/2022, 7:59 PM