Skip to content

← All questions

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

Asked 7,690 views1 answer

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?

asked by Lars Vinter276 ·

1 answer

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related