Skip to content

Backport proxy websocket support (v2)#551

Merged
roosterfish merged 10 commits into
canonical:v2from
roosterfish:backport_proxy_ws
Dec 2, 2025
Merged

Backport proxy websocket support (v2)#551
roosterfish merged 10 commits into
canonical:v2from
roosterfish:backport_proxy_ws

Conversation

@roosterfish
Copy link
Copy Markdown
Contributor

Backports #546 including the new test suite.

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)
@roosterfish roosterfish marked this pull request as ready for review December 2, 2025 08:48
@roosterfish roosterfish merged commit 08b7446 into canonical:v2 Dec 2, 2025
5 checks passed
@roosterfish roosterfish deleted the backport_proxy_ws branch December 2, 2025 14:12
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