Running a docker login with python subprocess securely
Advertisements I want to run a docker login from python3 without asking for user input. I have three global variables REGISTRY_URL, USERNAME, PASSWORD. I want to run: os.system(f"echo ‘{PASSWORD}’ | docker login {REGISTRY_URL} -u {USERNAME} –password-stdin") The problem is that my three global variables are user controllable which can lead to Remote Code Execution. How… Read More Running a docker login with python subprocess securely