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

enhancement: replace HOST_DOMAIN with BASE_URL #1069

Merged
merged 4 commits into from May 15, 2022

Conversation

goenning
Copy link
Member

HOST_DOMAIN was introduced to avoid host attack, where an attacked could intercept the request, modify the Host header and Fider would send an email with a link using the hijacked Host domain. But this variable introduce multiple problems, for one, it's difficult to use in Kubernetes or behind any cloud load balancer.

This PR replaces it with BASE_URL, which is used when sending emails, but does not have any interference with the HTTP pipeline, meaning that Fider can be hosted on ANY url/port.

@goenning goenning merged commit d5cc307 into main May 15, 2022
@goenning goenning deleted the go/host_domain_singlehost branch May 23, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant