Skip to content

fix: add http connector service#3563

Merged
mxyng merged 1 commit intomainfrom
mxyng/http-connector
Nov 8, 2022
Merged

fix: add http connector service#3563
mxyng merged 1 commit intomainfrom
mxyng/http-connector

Conversation

@mxyng
Copy link
Collaborator

@mxyng mxyng commented Nov 4, 2022

Summary

Iteration on #3543. Separate out the Helm changes as it will cause problems if image and chart are deploy out of sync. Filter service port to pick out the https service port instead of using the first, which will be http. http will not work as the destination port since it does not serve the proxy

func defaultConnectorOptions() connector.Options {
return connector.Options{
Addr: connector.ListenerOptions{
HTTP: ":80",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we allow HTTP listeners from the connector? Seems like we wouldnt want that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The HTTP service serves only a health endpoint. This is useful in the common case of external load balancers in public cloud where the load balancer health check often defaults to TCP checks which produces EOF errors when sent to the HTTPS service. By exposing a HTTP endpoint, the connector won't complain when the external load balancer hits it with a TCP handshake. It does not serve the reverse proxy so there's no security risk; sending a request path other than /healthz will return 404

@mxyng mxyng merged commit d62946f into main Nov 8, 2022
@mxyng mxyng deleted the mxyng/http-connector branch November 8, 2022 02:01
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.

2 participants