Hands-on task
Remove the secret from the code
The deploy script /opt/app/run.sh has a hardcoded database password — it's surely already in the git history, but you have to start somewhere. Move the secret into /etc/app/env with 600 permissions, make the script read it from there, and the password string must no longer appear in run.sh. The script must keep working.
- security
- secrets
- chmod
- source
- environment variables