Repository navigation
fix: TRUSTED_PROXY accepts hostnames like mod_remoteip (#9210) - #9289
jabrailkhalil wants to merge 9 commits into
Conversation
|
Now that #9301 is merged, could you please check whether the current PR might be adjusted? |
4f18465 to
68408bf
Compare
|
Adjusted after #9301 in |
Recreate the existing implementation from PR FreshRSS#9289 as a GitHub-verified commit to satisfy the signed-commit requirement. File contents are unchanged from 3d4ce5d.
Recreate the existing PR FreshRSS#9289 tests as a GitHub-verified commit. The final tree must match 3d4ce5d exactly; no behavior or test assertions change.
3d4ce5d to
4ee0318
Compare
|
The signed-commit blocker is now addressed: both commits on the current head 4ee0318 are GitHub-verified. I recreated the existing implementation and tests through the GitHub editor, then verified that the entire Git tree is exactly identical to the previous head 3d4ce5d (tree e4cc2677f53fd74f795b0b15c610a37585d1fe63). No source code, assertions, or behavior changed. PHP syntax checks pass for both files; the full test suite was not rerun for this signature-only history replacement. The merge panel no longer reports the unsigned-commit requirement. The required tests and maintainer review are still pending. |
|
I updated the branch from |
|
The previously pending workflows have now run successfully on |
Preserve trusted-source hostname and upstream NAT64 regression tests.
|
I merged current Validation on Linux/PHP 8.3.6: all 758 tests and 1,429 assertions pass, including 45 focused HTTP utility tests. PHP/PHTML syntax checks, PHPCS, PHPStan and XML configuration checks also pass. The existing DNS cache lifetime remains one PHP execution, as discussed in the earlier review. Fresh upstream CI is now required on this merge commit. Current-head upstream CI is awaiting maintainer approval: Automated tests and Zizmor CI both report |
|
Integrated current Fresh Windows PHP 8.4.26 validation passes all 45 httpUtilTest cases, changed-file PHPCS and PHPStan with the repository configuration. Full PHPUnit executes 754 tests / 39 failures, versus 744 tests / the same 39 failing test identities on clean current edge in the same environment; baseline source import was checked explicitly. The Windows-wide failures remain outside this PR and were not hidden or patched. This does not claim a green Linux suite, DNS behavior on every host, or the full make test-all matrix. The hostname regression assertions and current-edge HTTP fetching changes are preserved. Could a maintainer approve the current-head workflows and review the integration? This update does not bypass any CI or review requirement. |
|
I integrated Could a maintainer approve the pending workflow runs for this head? |
Accept IP addresses, CIDR ranges and hostnames in trusted proxy entries. Resolve hostname IPv4/IPv6 addresses and cache them only within the current PHP execution: one HTTP request under Apache/PHP-FPM, or one CLI invocation. Empty, invalid and unresolved sources do not match.
Current-main integration
Current head:
2a73b211eace5d2b6ef70bde1639c9dabef7fa10; integratededge44fe0d8248f5ee7d096ec7c78550e5a74d4c2722by a normal, conflict-free merge. The trusted-proxy change and regression expectations are preserved while both files incorporate new edge context. The net PR remains limited to 2 file(s).Validation
Fresh isolated Linux validation passes PHP 8.3.6 dependency installation, full PHP/PHTML syntax checks, 781 PHPUnit tests / 1,523 assertions, full PHPCS, PHPStan and pinned typos. Separate Node 24.22.1 validation passes dependency installation plus the complete frontend ESLint, CSS Stylelint and Markdownlint checks (113 Markdown files). Tracked source remains unchanged after both environments.
Both trusted-proxy files incorporate the new edge context without a code conflict; the net PR remains limited to those two files. PHPCS was run outside /tmp so the repository temporary-directory exclusion cannot make the check vacuous. No rules, assertions or scope were relaxed. This does not claim every deployment DNS configuration or Apache/PHP-FPM integration was exercised.
These local checks are separate from current-head upstream CI authorization and maintainer review.