Mask Secrets in the Job Log
The deploy job of data-pipeline pipes its output through scripts/mask.sh (in /home/student/repos/data-pipeline), which should replace the values of the secret variables named in MASK_VARS with ***. Yesterday the log showed the database password in clear text, and another job failed with sed: -e expression #1, char 16: unknown option to 's'.
Fix scripts/mask.sh so that it copies stdin to stdout and:
MASK_VARS (space-separated) with ***,/ . * & \ $ | @ and spaces, and text that merely looks similar must not be touched,***-extra leftovers),MASK_VARS is unset.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of CI/CD Pipelines in Practice. Next step: The Dangerous pull_request_target Pattern
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.