brave-angle-33257
05/06/2022, 8:19 PMpassphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE
but when I print out the ENV vars above (running in docker) it's listed.// create (or select if one already exists) a stack that uses our inline program
const stack = await LocalWorkspace.createOrSelectStack(args, {
projectSettings: projectArgs,
envVars: { PULUMI_CONFIG_PASSPHRASE: "XXX", PULUMI_HOME: "/tmp/pulumi_home" },
});
bash-4.2# pulumi version
v3.32.1
bash-4.2# pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 4.24.1 286 MB n/a 5 minutes ago
docker resource 3.2.0 40 MB n/a 5 minutes ago
echoing-dinner-19531
05/06/2022, 9:13 PMbrave-angle-33257
05/07/2022, 3:46 AMPULUMI_CONFIG_PASSPHRASE=""
as a valid command.. maybe it's not "usual" but it's something that is pretty heavily ingrained in Pulumi world afaik.. I know it is for my org. The encryption of the stacks/passphrase should be optional imo, it's not something that is used very often in practice unless you are using secrets.PULUMI_CONFIG_PASSPHRASE_FILE
pointing to an empty file that I imagine I would need to touch
in order to achieve parity to where i was just a few days agoechoing-dinner-19531
05/07/2022, 8:00 AMThe encryption of the stacks/passphrase should be optional imo, it's not something that is used very often in practice unless you are using secrets. (edited)To be accurate setting it to "" isn't opting out of encryption, its just encrypting with an empty key. But we've seen enough cases of people doing this that reverting to allowing the envvar to be the empty string is an option we're looking at.
brave-angle-33257
05/07/2022, 3:39 PMechoing-dinner-19531
05/07/2022, 3:43 PMare there other security downsides besides being able to read their stack config secrets?That's a pretty big one alone. One of our main concerns is that it's currently easy to set an empty password, but we also tell people it's ok to commit their config to vcs because secrets are encrypted and it's a pretty easy failure pit to fall into if someone does both of these things.
brave-angle-33257
05/07/2022, 3:46 PMechoing-dinner-19531
05/11/2022, 3:57 PMbrave-angle-33257
05/11/2022, 4:02 PM