mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-30 16:11:55 +00:00
* feat: record the real client IP behind reverse proxies with no configuration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * docs: state why the login rate limit reads the attributed client ip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * chore: update ee-repo-ref to c17af04e6cc7eb26b85b4c0e1d7b949961dd394a This commit updates the EE repository reference after PR #1027 was merged in windmill-ee-private. Previous ee-repo-ref: e01d101e5429106d5bead38ec96d74a885561626 New ee-repo-ref: c17af04e6cc7eb26b85b4c0e1d7b949961dd394a Automated by sync-ee-ref workflow. * fix: take the client behind a cloudflare hop from cf-connecting-ip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * fix: keep cloudflare out of the address token allowlists check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * fix: a worker's own api believes no forwarding header Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * docs: steer cloudflare to TRUST_CLOUDFLARE, not TRUSTED_PROXIES Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * fix: never suggest a cloudflare edge for TRUSTED_PROXIES in the client ip page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * feat: token ip allowlists trust private proxies by default too, with a warning until TRUSTED_PROXIES is set Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * docs: record the default proxy trust as an accepted risk for reviewers and scanners Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * docs: state the registry limit without its history, document the warning cap, log both trust views Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w * docs: TRUSTED_PROXIES closes the gap only when it names the actual proxies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjsYvwtdVynwxvfCiCba4w --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
42 lines
1.5 KiB
Caddyfile
42 lines
1.5 KiB
Caddyfile
{
|
|
# Caddy replaces X-Forwarded-For with its own peer unless that peer is trusted. With a load
|
|
# balancer or Cloudflare in front of Caddy, list its ranges so the client address reaches
|
|
# Windmill. On windmill_server, add a balancer to TRUSTED_PROXIES, but for Cloudflare set
|
|
# TRUST_CLOUDFLARE=true rather than listing its ranges, which any Cloudflare Worker sends from:
|
|
# servers {
|
|
# trusted_proxies static private_ranges
|
|
# }
|
|
layer4 {
|
|
:25 {
|
|
route {
|
|
proxy {
|
|
upstream windmill_server:2525
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
{$BASE_URL} {
|
|
# Default to all interfaces (IPv4 + IPv6) when ADDRESS is unset. A bare
|
|
# `bind {$ADDRESS}` with an empty value makes Caddy >= 2.9 drop this whole
|
|
# site, silently disabling the HTTP proxy while the :25 layer4 listener stays up.
|
|
bind {$ADDRESS:0.0.0.0 ::}
|
|
|
|
# Extra services: LSP, Multiplayer, Debugger (windmill_extra gateway).
|
|
# reverse_proxy only reads its first argument as a matcher, so listing
|
|
# several paths inline turns the rest into upstream addresses. The paths
|
|
# have to go through a named matcher.
|
|
@extra path /ws/* /ws_mp/* /ws_debug/*
|
|
reverse_proxy @extra http://windmill_extra:3000
|
|
|
|
# Search indexer, Enterprise Edition (windmill_indexer:8002)
|
|
# reverse_proxy /api/srch/* http://windmill_indexer:8002
|
|
|
|
# Default: Windmill server
|
|
reverse_proxy /* http://windmill_server:8000
|
|
|
|
# TLS with custom certificates
|
|
# tls /certs/cert.pem /certs/key.pem
|
|
}
|