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

feat(http): allow trusted proxies to be defined #637

Merged
merged 2 commits into from
Aug 24, 2023
Merged

feat(http): allow trusted proxies to be defined #637

merged 2 commits into from
Aug 24, 2023

Conversation

m90
Copy link
Contributor

@m90 m90 commented Aug 23, 2023

After deploying #635 to staging I noticed links in pagination responses would be using the http protocol, when the application itself is served using https. This seems to be due to the fact that as configured, Laravel does not trust any proxies at all and will think the client is the ingress, which rewrites to http: https://github.com/wbstack/charts/blob/af3206a791b345a70dd8b1670e20ff3d4e30d57a/charts/api/templates/ingress.yaml#L26-L37

This PR introduces the possibility of configuring trusted proxies as documented here: https://laravel.com/docs/8.x/requests#configuring-trusted-proxies

@m90
Copy link
Contributor Author

m90 commented Aug 24, 2023

Chart PR here wbstack/charts#128

@m90 m90 merged commit 3b43459 into main Aug 24, 2023
5 checks passed
@m90 m90 deleted the fr/trust-proxies branch August 24, 2023 09:46
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.

2 participants