Skip to content
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

Increase options for tcp services. Add accept-proxy to the list of available parameters with backward compat. #525

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ctrix
Copy link

@ctrix ctrix commented Mar 1, 2023

At $dayjob we use haproxy on TCP services and we rely on the proxy protocol to transport the remote endpoint ip address to the backends.

Very often we chain several proxies one in front of the other. We noticed that the ingress controller doesn't handle the accept-proxy option, while it is supported for HTTP(s) connections through other settings.

This patch reuses the third parameter of the tcp services list, previously optional and supporting only ssl as value and transforms it into a comma separated list of options; It also adds the accept-proxy option support.

When the tcp service will contain accept-proxy in the options, it will be added to the bind line in the configuration file.

This should also address several requests and issues, like #318 and should enable more features to be added to the tcp services keeping the backward compatibility.

@ivanmatmati
Copy link
Collaborator

Hi @ctrix , Thanks for your contribution. We'll look at it and give any feedback if necessary.

@ivanmatmati ivanmatmati self-assigned this Mar 9, 2023
@ivanmatmati
Copy link
Collaborator

Can you rebase your branch to be in phase with current master ?

@ctrix
Copy link
Author

ctrix commented Mar 11, 2023

Done.

@stale
Copy link

stale bot commented Apr 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 10, 2023
@oktalz oktalz added enhancement New feature or request and removed stale labels Apr 12, 2023
@oktalz
Copy link
Member

oktalz commented Apr 12, 2023

hi @ctrix

currently we plan to expand capabilities for TCP services with gateway API.
because of that we need to put this on hold for a while to determine what is missing there.
in any case expanding options here would bring a bit of confusion

since gateway api is still in alpha/beta and it is uncertain when it will be finalized form k8s team,
a better option would be to create a CRD for TCP services that would replace a bit awkward structure that we can have with configmaps.

Because of that I will put this on hold for now until situation is a bit more clear

@ivanmatmati ivanmatmati added the on hold Waiting for an event to make decision label Oct 10, 2023
@ShadowJonathan
Copy link

@oktalz has there been any movement in this?

@oktalz
Copy link
Member

oktalz commented Mar 7, 2024

@ShadowJonathan yes, tomorrow we will release v1.11 and next release after that one contains TCP CRD in roadmap.

structure and options in it will probably be added gradually (over development time) and I'll notify here when changes are done so we can align with expected options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold Waiting for an event to make decision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants