Skip to content

IBX-11181: Added trusted_proxies ACL to Varnish setup - #65

Merged
alongosz merged 2 commits into
4.6from
IBX-11181-Trusted_Proxies_is_not_set_on_Ibexa_Cloud
Oct 28, 2026
Merged

alongosz merged 2 commits into
4.6from
IBX-11181-Trusted_Proxies_is_not_set_on_Ibexa_Cloud

Conversation

@vidarl

@vidarl vidarl commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11181

Related PRs:

Description:

Supports the reverse proxy header filtering added in ibexa/http-cache#87.

varnish5/6/7.vcl now strip client supplied X-Forwarded-* and Forwarded headers unless the peer
is listed in a new trusted_proxies ACL. That ACL has to exist in parameters.vcl, since Varnish
resolves ACLs at VCL load time and otherwise refuses to load the configuration.

  • parameters.vcl gains the trusted_proxies ACL, holding localhost only. The Docker network is
    deliberately left out: nothing runs in front of Varnish in this setup, so every incoming request
    is treated as coming straight from a client.
  • entrypoint.sh gains --trusted-proxy-add, mirroring the existing --acl-add and
    --debug-acl-add flags.
  • varnish-trusted-proxy.yml is a new overlay that adds the app container to that ACL, for the
    Behat suite. It applies on top of any of varnish.yml,
    varnish7.yml or varnish9.yml, since they all define the same varnish service.

@sonarqubecloud

Copy link
Copy Markdown

@tomaszszopinski
tomaszszopinski self-requested a review October 5, 2026 09:31
@vidarl
vidarl force-pushed the IBX-11181-Trusted_Proxies_is_not_set_on_Ibexa_Cloud branch 5 times, most recently from 6c47271 to 8ae9f34 Compare October 14, 2026 10:35
@sonarqubecloud

Copy link
Copy Markdown

@alongosz
alongosz merged commit dc0f3be into 4.6 Oct 28, 2026
9 checks passed
@alongosz
alongosz deleted the IBX-11181-Trusted_Proxies_is_not_set_on_Ibexa_Cloud branch October 28, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants