-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow st2web container to be runable as Non-Root #66
base: master
Are you sure you want to change the base?
Conversation
75da552
to
9e9b36c
Compare
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.
Looking good. Just a couple qusetions.
9e9b36c
to
4d28a30
Compare
@cognifloyd I've hopefully actioned all your items - also added in some updates to the We probably want to pin the |
st2web/files/st2.conf-https.patch
Outdated
- proxy_pass http://127.0.0.1:9100/; | ||
+ proxy_pass ${ST2_AUTH_URL}; | ||
proxy_read_timeout 90; | ||
proxy_connect_timeout 90; | ||
proxy_redirect off; | ||
+ proxy_ssl_verify off; |
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.
What is the purpose of disabling this? disabling SSL verification is a last-resort--something to do when all other solutions (like regenerating the cert) have failed to fix an issue.
st2web/files/st2.conf-https.patch
Outdated
} | ||
-} | ||
+} | ||
\ No newline at end of file |
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.
Please re-add the NL at EOF
I don't like to manually pin versions most of the time because then someone has to manage that pin. Most of the time (in my experience at least) pins are not well documented, so no one dares to update it until there is a CVE or some other bug or missing feature that forces an update. So, I hesitate to add pinning here without a good plan for how we'll manage that. |
ef063d6
to
1dcab96
Compare
@cognifloyd that should be all the issues resolved |
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.
I have 2 comments left to address:
proxy_ssl_verify off
maybe this should be configurable? Or allow people to inject lines into the st2api, st2stream, and st2auth blocks?- re-add newline at end of file
Co-authored-by: Jacob Floyd <[email protected]>
1dcab96
to
754423c
Compare
It is good security practice to run containers without root and minimal privileges.
However, the st2web container attempts to expose on port 80 and 443, which are both <1000 privileged ports.
This PR changes the exposed ports to 8080 / 8443, non-privileged ports.
It also edits permissions on NGINX files, to allow nginx to run as the
nginx
user.