Skip to content

← All questions

What does ${DEMO_SHOP_PASSWORD:-secret_sauce} mean, and how does it get past the secret check?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

The demo staging file ships with this:

yaml
vars:
  standardPassword: "${DEMO_SHOP_PASSWORD:-secret_sauce}"

Two questions. What is the :- part, and why is a key called standardPassword allowed to carry a literal password as a fallback when a plain password: secret_sauce is rejected?

1 answer

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related