Skip to content

Apply insecure proxy option to websockets#1007

Open
chunnoo wants to merge 1 commit intotrunk-rs:mainfrom
chunnoo:insecure-websockets
Open

Apply insecure proxy option to websockets#1007
chunnoo wants to merge 1 commit intotrunk-rs:mainfrom
chunnoo:insecure-websockets

Conversation

@chunnoo
Copy link

@chunnoo chunnoo commented Aug 4, 2025

When the insecure option is set, the proxy uses an insecure rustls or native-tls connector for establishing a websocket connection to the backend.

Copy link
Collaborator

@ctron ctron left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Looks great.

I'd appreciate a bit of comments in the code. But it's not a blocker.

@chunnoo chunnoo force-pushed the insecure-websockets branch from 1dba2cd to 8645d07 Compare August 5, 2025 10:54
@chunnoo
Copy link
Author

chunnoo commented Aug 5, 2025

Thanks!

Added more comments and made a better effort to make sure the CI passes.

If the insecure option is set on a websocket proxy, it will use a
`rustls` or `native-tls` connector, depending on which features are
enabled, that allows insecure TLS connections. If neither of those
features are enabled, it will fail to create an insecure connection.
@chunnoo chunnoo force-pushed the insecure-websockets branch from 8645d07 to 8711938 Compare August 5, 2025 10:57
@flumm
Copy link

flumm commented Nov 27, 2025

is there anything holding this back, or is there any special reason why it's not merged yet?

@ctron
Copy link
Collaborator

ctron commented Feb 26, 2026

Sorry, I guess I dropped the ball on this.

This adds both native-tls and rustls. We already have openssl. I think it would be better to align on one. As we already have openssl, I'd like to stick to that.

Theoretically, I'd like to stick to native-tls, however that doesn't seem to provide the server side of things. At least not in the combination we need.

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.

3 participants