Skip to content

fix(disable_tcp_accept_proxy): honor flag with non-SSL TCP backends#684

Merged
peanball merged 2 commits intomasterfrom
tcp-proxy-protocol-non-tls
Jun 24, 2024
Merged

fix(disable_tcp_accept_proxy): honor flag with non-SSL TCP backends#684
peanball merged 2 commits intomasterfrom
tcp-proxy-protocol-non-tls

Conversation

@peanball
Copy link
Copy Markdown
Contributor

@peanball peanball commented Jun 24, 2024

When accept_proxy is set, the accept-proxy setting is set on all backends.

TCP backends can opt out by using the flag disable_tcp_accept_proxy, which defaults to false. This means without configuring explicitly, TCP backends should also have the accept-proxy declaration.

The haproxy.config.erb file did not include the correct value for accept-proxy on non-SSL backends. It now does. The spec test was only checking SSL backends so far. Now it's checking a mix.

@peanball peanball requested a review from CFN-CI as a code owner June 24, 2024 13:22
@peanball peanball requested a review from a team June 24, 2024 13:22
@peanball peanball added the run-ci Allow this PR to be tested on Concourse label Jun 24, 2024
maxmoehl
maxmoehl previously approved these changes Jun 24, 2024
@peanball peanball enabled auto-merge (rebase) June 24, 2024 13:51
@peanball peanball requested a review from a team June 24, 2024 14:51
@peanball peanball merged commit 6a1d0db into master Jun 24, 2024
@peanball peanball deleted the tcp-proxy-protocol-non-tls branch June 24, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci Allow this PR to be tested on Concourse

Development

Successfully merging this pull request may close these issues.

4 participants