Skip to content

Amend override long description - #253

Merged
foxish merged 3 commits into
mainfrom
amend-override-text
Oct 31, 2025
Merged

foxish merged 3 commits into
mainfrom
amend-override-text

Conversation

@foxish

@foxish foxish commented Oct 31, 2025

Copy link
Copy Markdown
Member

Same content, just organized it a bit for easier comprehension.

@foxish
foxish requested a review from scott-cotton October 31, 2025 16:27
- Any HTTP or gRPC request to your sandbox is first routed to your local service.
- Your local service processes the request and replies.
- By default:
* If your local service's response contains the header 'sd-override: true' (for HTTP), or the metadata 'sd-override: true' (for gRPC), the response from your local service is immediately sent back to the client—the request does NOT reach the original sandbox workload.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

or the metadata 'sd-override: true' (for gRPC)

I have not tested this. Looked at the implementation, and it looks like it would likely work, but it would go through several implicit coding steps under the hood: gRPC metadata -> http2 headers -> plain Go http headers (using http2 transport on top of http).

I think @daniel-de-vera tested this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I removed the reference to metadata, @daniel-de-vera tells me it's untested and we can leave it as "set a response header" instead for both HTTP and gRPC.

Long: `The 'override' command lets you intercept both HTTP and gRPC traffic coming into your sandbox and process it with a local service you specify (such as on your laptop).

How it works:
- Any HTTP or gRPC request to your sandbox is first routed to your local service.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe Any HTTP request (including gRPC)? as gRPC is on http2?

@scott-cotton scott-cotton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, supposing the grpc case has been tested.

@foxish
foxish merged commit 230f929 into main Oct 31, 2025
@foxish
foxish deleted the amend-override-text branch October 31, 2025 18:21
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