Skip to content
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

Document openssh patches #16

Closed
marji opened this issue Mar 19, 2018 · 1 comment · Fixed by #26
Closed

Document openssh patches #16

marji opened this issue Mar 19, 2018 · 1 comment · Fixed by #26

Comments

@marji
Copy link
Contributor

marji commented Mar 19, 2018

There are quite a few patches in the Dockerfile applied to openssh before it is compiled.

Could these patches, their source and purpose be documented, please? As the bastion server security is very important, any changes to the openssh implementation should be documented so it can be audited.

Also, would the current patch set prevent upgrading the Dockerfile to use the current openssh version V_7_6_P1 instead of V_7_4_P1 which is used currently?

Thank you!

@osterman
Copy link
Member

osterman commented Mar 20, 2018

@marji good points. We should document what those are needed/wanted.

For now, here's an explanation.

We use this so we have SSH_ORIGINAL_COMMAND available during pam auth so we can send slack notifications.
https://github.com/cloudposse/bastion/blob/master/patches/openssh/original-command.diff

We use this to hide the SSH version so it's not announced to port-scanners.
https://github.com/cloudposse/bastion/blob/master/patches/openssh/obfuscate-version.diff

All the rest of the patches are from the original alpine image, here:
https://git.alpinelinux.org/cgit/aports/tree/main/openssh

Upgrading is hopefully straightforward, but we haven't tried yet. Patches might need to be regenerated. If you give it a go and submit PR, we'll gladly accept it! Thanks

-Erik

@osterman osterman self-assigned this Mar 20, 2018
@osterman osterman moved this from Backlog to Ready to Implement in Open Source Community Support Apr 20, 2018
@osterman osterman moved this from Ready to Implement to Backlog in Open Source Community Support Jun 6, 2018
Open Source Community Support automation moved this from Backlog to Completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants