-
Notifications
You must be signed in to change notification settings - Fork 38
ENT-11481: Removed web server redirect from http to https #1953
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
Conversation
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 am not sure about this. It doesn't seem right.
Maybe it would be better to just not support the redirection.
yes, at least not in httpd config.. I will re-do this one and open additional in the MP. |
HTTP_HOST can be manipulated via Host header and for this reason http to https redirect will be handled on the UI. Ticket: ENT-11481 Signed-off-by: Ihor Aleksandrychiev <ihor.aleksandrychiev@northern.tech>
8b52ad5
to
ac7b17c
Compare
@nickanderson I changed this one and added https://github.com/cfengine/mission-portal/pull/2906 |
# Force https with redirection | ||
RewriteCond %{HTTPS} off | ||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | ||
|
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.
So this drops all http -> https redirection from apache directly. Seems OK i guess as long as we prevent login and stuff on http.
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.
It will be a HTML (JavaScript) redirect instead.
HTTP_HOST can be manipulated via Host header and for this reason http to https redirect will be handled on the UI.
Ticket: ENT-11481
Signed-off-by: Ihor Aleksandrychiev ihor.aleksandrychiev@northern.tech
together: https://github.com/cfengine/mission-portal/pull/2906