Add support for setting Proxy Protocol in exit server userdata#28
Add support for setting Proxy Protocol in exit server userdata#28welteki wants to merge 1 commit intoinlets:masterfrom
Conversation
Add MakeExitServerUserdataWithProxyProto to set the PROXY_PROTO environment variable. The existing MakeExitServerUserdata function delegates to the new function to preserve backward compatibility. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
AI Pull Request OverviewSummary
Approval rating (1-10)8/10 - Solid implementation with good backward compatibility, but lacks input validation for proxyProto parameter. Summary per fileSummary per file
Overall AssessmentThe PR successfully adds Proxy Protocol support to exit server userdata without introducing breaking changes. The implementation is backward compatible, well-tested, and maintains consistency with existing code patterns. However, the lack of input validation on the Detailed ReviewDetailed Reviewprovision/userdata.go
provision/userdata_test.go
General Concerns
AI agent details. |
|
A version of |
It will still need the dependency. It just means it'll make its own userdata. Does inletsctl still call into this method? |
Yes this method is still used by |
|
The dependency cannot be removed entirely, but this userdata creation could be deleted and moved into both of the packages inline to simplify future changes. |
Description
Add a
MakeExitServerUserdataWithProxyProtofunction that accepts aproxyProtoparameter and sets thePROXY_PROTOenvironment variable in the exit server userdata script. The existingMakeExitServerUserdatafunction is preserved as a wrapper with an empty default.Motivation and context
This is required to allow the inlets-operator to provision tunnel servers with Proxy Protocol enabled.