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

Merged
merged 1 commit into from
Jun 3, 2024

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.
@jcmoraisjr jcmoraisjr force-pushed the jm-https-before-root-ctx branch from af22965 to 4846c3c Compare May 4, 2024 14:17
@jcmoraisjr jcmoraisjr merged commit 5594eb9 into master Jun 3, 2024
2 checks passed
@jcmoraisjr jcmoraisjr deleted the jm-https-before-root-ctx branch June 3, 2024 12:07
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.

1 participant