-
Notifications
You must be signed in to change notification settings - Fork 4
Dockerize #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
if matches: | ||
os.environ[matches.group(1)]=matches.group(2) | ||
SAFE_ENV[matches.group(1)]=matches.group(2) | ||
subprocess.check_call('ssh-add {}'.format(SSH_FILE_PATH), shell=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bandit: subprocess call with shell=True identified, security issue.
if TRUSTED: | ||
ssh_keygen() | ||
|
||
SSH_KEY_HASH = hashlib.md5() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bandit: Use of insecure MD2, MD4, or MD5 hash function.
ENV PATH /root/.pyenv/bin:$PATH | ||
RUN eval "$(pyenv init -)" | ||
RUN eval "$(pyenv virtualenv-init -)" | ||
RUN pyenv update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want the pyenv steps lower down in the dockerfile than the known hosts steps, since they're more likely to change. E.g. when you want to switch to a new python version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably. the pyenv stuff isn't even working yet anyway, it still seems to be using the system python.
Todo: