fix(tui): correctly handle plaintext and cloudflare_jwt gateway auth#1876
Draft
alexclewontin wants to merge 2 commits into
Draft
fix(tui): correctly handle plaintext and cloudflare_jwt gateway auth#1876alexclewontin wants to merge 2 commits into
alexclewontin wants to merge 2 commits into
Conversation
Signed-off-by: Alex Lewontin <alex.lewontin@canonical.com>
Signed-off-by: Alex Lewontin <alex.lewontin@canonical.com>
6 tasks
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.
Summary
Fix TUI gateway switching for non-mTLS gateways. This PR makes the TUI honor explicit plaintext
gateway metadata and adds a dedicated
cloudflare_jwtpath so edge-authenticated gateways nolonger fall through to the mTLS flow.
This was identified in the review process of #1625 but since it pre-dates that PR and is not really directly related to it, I wanted to split it out.
Related Issue
N/A — split from review feedback on
system-gateway-dir.Changes
auth_mode = "plaintext"when selecting the TUI transport instead of defaulting HTTPSendpoints to mTLS
GatewayChannelMode::Edgepath forauth_mode = "cloudflare_jwt"EdgeAuthInterceptorforedge-authenticated gateways
crates/openshell-tui/src/edge_tunnel.rsto bridge local gRPC traffic over the gateway/_ws_tunnelWebSocket endpoint for HTTPS edge gatewayscases
tokio-tungsteniteandfuturesto support the edge tunnel clientTesting
mise run pre-commitpassesAdditional testing:
cargo test -p openshell-tui --libcargo clippy -p openshell-tui --all-targets -- -D warningsChecklist