Repository navigation
chore(lib): update the bundled XMF library to 1.3.3 and document proxy_trusted - #267
Merged
Merged
Conversation
Add a commented-out proxy_trusted entry next to proxy_env describing the trusted-proxy list that gates use of the proxy_env header. The bundled XMF does not read it yet; it takes effect once XMF is bumped to a release that includes XOOPS/xmf#197.
Brings the trusted-proxy gate for proxy_env (the proxy_trusted setting documented in xoopsconfig.dist.php in the previous commit), RFC 7239 Forwarded parsing, the SendmailRunner delivery timeout, and the Tables, Serializer and TokenReader fixes from XOOPS/xmf 1.3.3.
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the bundled XMF library from 1.3.2 to 1.3.3 with regenerated Composer metadata, bringing trusted-proxy and RFC 7239 handling, mail timeout and upstream fixes; documents the required proxy_trusted configuration and records the change for the unreleased 2.7.4 cycle. Sequence diagram for trusted proxy client IP resolutionsequenceDiagram
participant Client
participant Proxy
participant XOOPS
participant ProxyCheck
Client->>Proxy: HTTP request
Proxy->>XOOPS: Request with REMOTE_ADDR and proxy_env header
XOOPS->>ProxyCheck: getClientIp()
ProxyCheck->>ProxyCheck: isTrustedProxy(REMOTE_ADDR, proxy_trusted)
alt direct peer is trusted
ProxyCheck->>ProxyCheck: parse proxy_env
ProxyCheck-->>XOOPS: First untrusted client address
else direct peer is not trusted
ProxyCheck-->>XOOPS: REMOTE_ADDR
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #267 +/- ##
=========================================
Coverage 22.54% 22.54%
Complexity 8666 8666
=========================================
Files 685 685
Lines 46316 46316
=========================================
Hits 10444 10444
Misses 35872 35872 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xoops_lib/composer.dist.json,xoops_lib/vendor/xoops/xmf).proxy_trustedsetting besideproxy_envinxoops_data/configs/xoopsconfig.dist.php.XMF 1.3.3 (XOOPS/xmf#197) only honours the
proxy_envheader whenREMOTE_ADDRis listed in$xoopsConfig['proxy_trusted'](addresses or CIDR ranges, array or comma separated). Sites that setproxy_envmust addproxy_trusted; until then the peer address is used. The release also brings RFC 7239Forwardedparsing, a delivery timeout inXmf\Mail\SendmailRunner, and theTables,SerializerandTokenReaderfixes listed in the XMF changelog.Changelog entry added under 2.7.4 NOT RELEASED.
Verification
vendor/composer/installed.jsonreportsxoops/xmfv1.3.3;Xmf\ProxyCheck::TRUSTED_PROXIES_VARIABLEresolves through the bundled autoloader; the classmap is unchanged.composer update xoops/xmf --no-dev -aagainstcomposer.dist.json).Summary by Sourcery
Update the bundled XMF library to 1.3.3 and document trusted proxy configuration for forwarded client addresses.
New Features:
Bug Fixes:
Build:
Documentation:
Summary by CodeRabbit
Forwardedheaders and client IP detection.