Skip to content

Issue 3527 - Support HAProxy and Instance on the same machine configuration #6107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

droideck
Copy link
Member

@droideck droideck commented Feb 25, 2024

Issue 3527 - Support HAProxy and Instance on the same machine configuration

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy listening on a different subnet than one used to forward the request.

Related: #3527

Reviewed by: ?

Copy link
Contributor

@progier389 progier389 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:
So instead of checking "ns-slapd connection Client IP" == "HAProxy Header Destination IP" and the address is trusted
The test is now that both
"ns-slapd connection Client IP" is trusted
"HAProxy Header Destination IP" is trusted
That seems good.
BTW in fact this change will also allow configuration having
HAProxy listening on a different subnet than one used to forward the request.

Copy link
Contributor

@jchapma jchapma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…ration

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy listening on a different subnet than one used to forward the request.

Related: 389ds#3527

Reviewed by: ?
@droideck droideck merged commit fcdeec3 into 389ds:main Feb 28, 2024
droideck added a commit that referenced this pull request Feb 28, 2024
…ration (#6107)

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy is listening on a different subnet than the one used to forward the request.

Related: #3527

Reviewed by: @progier389, @jchapma (Thanks!)
droideck added a commit that referenced this pull request Feb 28, 2024
…ration (#6107)

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy is listening on a different subnet than the one used to forward the request.

Related: #3527

Reviewed by: @progier389, @jchapma (Thanks!)
droideck added a commit that referenced this pull request Feb 28, 2024
…ration (#6107)

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy is listening on a different subnet than the one used to forward the request.

Related: #3527

Reviewed by: @progier389, @jchapma (Thanks!)
droideck added a commit that referenced this pull request Feb 28, 2024
…ration (#6107)

Description: Improve how we handle HAProxy connections to work better when
the DS and HAProxy are on the same machine.
Ensure the client and header destination IPs are checked against the trusted IP list.

Additionally, this change will also allow configuration having
HAProxy is listening on a different subnet than the one used to forward the request.

Related: #3527

Reviewed by: @progier389, @jchapma (Thanks!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants