Repository navigation
Replies: 1 comment 1 reply
|
Since there has not been any maintainer feedback here yet, I opened a small PR to make the proposal easier to review against an actual diff. The PR keeps the storage/backend behavior unchanged: the URL scheme is still written to PR: #8443 Happy to move this to the gRPC Settings tab instead if that better matches the roadmap. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Today, whether a gRPC request connects over TLS (
grpcs://) or plaintext (grpc://)is decided only by the URL scheme, and the scheme is mostly invisible /
auto-applied. This works, but it isn't discoverable — users coming from Postman
(which has an explicit TLS toggle) don't realize the scheme is the control, and
they hit confusing failures.
This is already showing up as a bug: #6950 ("Bruno add prefix http on GRPC
Request") is open from v2.13.2 and still reproduces on v3.5.0. The community
workaround there is literally "manually type
grpc://in front of the host" —which proves the capability exists but isn't surfaced.
I'd like to propose surfacing it as a small lock/unlock toggle in the gRPC URL
bar, and I have a working proof-of-concept. Before opening a PR I want to check
the preferred direction with maintainers.
Demo
The same URL, with the scheme controlled only by the lock toggle — note the
editor stays clean (
host:port), here even for a{{variable}}host:grpc://)grpcs://)Proposal
grpcs://)grpc://)grpc:///grpcs://prefix in the editor; the scheme becomestoggle-controlled, the editor shows just
host:port.request.urlexactly as today, so:.bruformat changegrpc-client.js) needs zero changes — it already derivesTLS and the grpcurl
-plaintextflag from the scheme.Behavior details (kept consistent with the current backend)
default:
localhost/127.0.0.1→ plaintext, any other host → TLS.from
meta). For a{{variable}}host with no scheme, the lock defaults toplaintext, and toggling simply writes an explicit
grpc://{{var}}/grpcs://{{var}}— a well-defined choice. (The only unguardable case is avariable whose value already embeds a scheme, which is unusual.)
Open questions for maintainers
the proposed gRPC Settings tab (feat: add gRPC Settings tab with configurable channel options, deadlines, and proto-loader settings #7737 / feat: gRPC settings tab — configurable message sizes, deadlines, and proto-loader options #7738) instead?
request.url(current PoC), orstay implicit and only override at send time?
If the direction looks good, I'll open a PR (it's small: one new helper module +
tests, plus the URL-bar component). Happy to adjust to whatever fits the roadmap.
Related: #6950, #7737, #7738
All reactions