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!: Usage of trusted_proxies is mandatory for Decision API to accept X-Forwarded-* headers #111

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

dadrus
Copy link
Owner

@dadrus dadrus commented Jul 26, 2022

closes #95

This is already the default behavior for the proxy mode. With this PR it is also true for the decision operation mode

@dadrus dadrus changed the title feat!: Make usage of trusted_proxies mandatory to accept X-Forwarded-* headers feat!: Usage of trusted_proxies is mandatory to accept X-Forwarded-* headers Jul 26, 2022
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #111 (9b7cc66) into main (0436a52) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   85.55%   85.50%   -0.06%     
==========================================
  Files         146      146              
  Lines        5449     5449              
==========================================
- Hits         4662     4659       -3     
- Misses        668      670       +2     
- Partials      119      120       +1     
Impacted Files Coverage Δ
internal/handler/decision/module.go 41.37% <100.00%> (ø)
...l/pipeline/errorhandlers/matcher/header_matcher.go 81.25% <0.00%> (-18.75%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@dadrus dadrus changed the title feat!: Usage of trusted_proxies is mandatory to accept X-Forwarded-* headers feat!: Usage of trusted_proxies is mandatory for Decision API to accept X-Forwarded-* headers Jul 26, 2022
@dadrus dadrus merged commit 438932b into main Jul 26, 2022
@dadrus dadrus deleted the mandatory_trusted_proxies branch July 26, 2022 15:54
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.

Make usage of trusted_proxies mandatory to enable usage of "X-Forwarded-*" and "Farwarded" headers
1 participant