Backport proxy websocket support (v2)#551
Merged
Merged
Conversation
When enabling ProxyTarget on the EndpointAction, Microcluster forwards the request to another cluster member in case the target query paramter is specified. In case the request contains a websocket upgrade header, the proxy is required to support proxying the websocket connection. This can be done by opening up another websocket to the target side and proxying both connections back and forth. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 36b769c)
This paves the way to further support additional extended endpoints. Also ensure to enable Microcluster's proxying feature. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 39edbe8)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 02f0964)
Use consistent naming. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 83e590a)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit aa8b569)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 87e3930)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit aa72432)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 6cf8489)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit 364466c)
This also ensures we always test Microclusters proxy functionality for both regular HTTP requests and websocket connections. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com> (cherry picked from commit ec659c5)
a64ba81 to
232e3dc
Compare
kadinsayani
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports #546 including the new test suite.