| The article has answers > It seems that the original author > - Briefly added the authorization token to their source code > - Ran the source code (Python script), which got compiled into a .pyc binary with the auth token > - Removed the authorization token from the source code, but didn’t clean the .pyc > - Pushed both the clean source code and the unclean .pyc binary into the docker image |
Oof.
Honestly, I can't blame the guy for a mistake like this, it's just so easy to make. But then again, deploying images built on a development laptop is generally an error-prone activity. This is why build and deployment servers exist.