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

Ensure https redirect happens before root redirect #1117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcmoraisjr
Copy link
Owner

app-root config key configures the root path redirect in haproxy frontend. https redirect however is configured in the backend. Because of that haproxy is redirecting from the root path to the application path in plain http, before redirecting to https. This is not a good approach because it makes security scanners infer that the application does not have a secure proxy.

This update adds a https redirect before the application redirect, in the case the root path of the host renders its ssl-redirect to true.

@jcmoraisjr
Copy link
Owner Author

#1067

@jcmoraisjr jcmoraisjr removed the v0.10 label May 4, 2024
app-root config key configures the root path redirect in haproxy
frontend. https redirect however is configured in the backend. Because
of that haproxy is redirecting from the root path to the application
path in plain http, before redirecting to https. This is not a good
approach because it makes security scanners infer that the application
does not have a secure proxy.

This update adds a https redirect before the application redirect, in
the case the root path of the host renders its ssl-redirect to true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant