jsiebens / terraform-equinix-faasd

Terraform Module for how to deploy a faasd instance on Equinix Metal
MIT License
2 stars 1 forks source link

Using PWD has unintended consequences #5

Closed alexellis closed 3 years ago

alexellis commented 3 years ago

Using PWD has unintended consequences

    export PWD=$(terraform output -raw basic_auth_password)
    export OPENFAAS_URL=https://derek.example.com
    echo $PWD | faas-cli login -u admin --password-stdin

This changes my prompt to the password :)

alex@alex-nuc8:~$ pwd
/home/alex
alex@alex-nuc8:~$ export PWD="SECRETPASSWORD"
alex@alex-nuc8:SECRETPASSWORD$ 

I would suggest PASSWORD or PASSWD?

jsiebens commented 3 years ago

fixed in a2bd52f5cf5e9088da7fa6a8f5cfe3eec2c90702

alexellis commented 3 years ago

PASSWORD is the string we use in arkade and the docs, but OPENFAAS_PWD that you picked also can work.