Skip to content

Allow trusted proxies to be provided via TRUSTED_PROXIES env var or config option#2461

Merged
acelaya merged 4 commits into
shlinkio:developfrom
acelaya-forks:feature/trusted-proxies
Jul 18, 2025
Merged

Allow trusted proxies to be provided via TRUSTED_PROXIES env var or config option#2461
acelaya merged 4 commits into
shlinkio:developfrom
acelaya-forks:feature/trusted-proxies

Conversation

@acelaya

@acelaya acelaya commented Jul 18, 2025

Copy link
Copy Markdown
Member

Closes #2360

This PR allows trusted proxies to be defined, disabling the workaround introduced in #2359, and using the proper mechanisms supported by akrabat/ip-address-middleware instead.

This also deprecates the workaround, which will be removed in Shlink 5.0.0

@acelaya acelaya force-pushed the feature/trusted-proxies branch from 165e21e to 3318987 Compare July 18, 2025 06:25
@codecov

codecov Bot commented Jul 18, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.69%. Comparing base (c3d3cc6) to head (a68300f).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2461   +/-   ##
==========================================
  Coverage      93.69%   93.69%           
  Complexity      1744     1744           
==========================================
  Files            279      279           
  Lines           5948     5948           
==========================================
  Hits            5573     5573           
  Misses           375      375           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@acelaya acelaya merged commit 3a1ce40 into shlinkio:develop Jul 18, 2025
23 checks passed
@acelaya acelaya deleted the feature/trusted-proxies branch July 20, 2025 09:56
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.

Allow trusted proxies to be configured

1 participant