Skip to content

← All questions

Secret literal at "env.vars.password" — I want the password in the env file, why is that refused?

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.

Put the login password straight into projects/demo-shop/envs/staging.yaml so the data-driven login scenarios can pick it up:

yaml
vars:
  defaultProduct: Sauce Labs Backpack
  password: hunter2

Every command now refuses to start:

text
✖ CONFIG_SECRET_LITERAL: Secret literal at "env.vars.password". Use ${VAR} and put the value in .env.<env>.
  hint: Replace the value with "${PASSWORD}" and add PASSWORD=... to your .env file.
  docs: https://docs.sdods.com/docs/guides/configuration

This is a throwaway demo account. Is there a way to say "yes I meant it"?

2 answers

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