Skip to content

Forward-merge release/0.4 into main#264

Merged
GPUtester merged 1 commit into
mainfrom
release/0.4
Jun 12, 2026
Merged

Forward-merge release/0.4 into main#264
GPUtester merged 1 commit into
mainfrom
release/0.4

Conversation

@rapids-bot

@rapids-bot rapids-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

Forward-merge triggered by push to release/0.4 that creates a PR to keep main up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

#### Overview

Adds configurable NeMo Relay CLI gateway body limits so oversized hook and passthrough payloads fail explicitly instead of surfacing opaque extractor or buffering errors.

- [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does not duplicate existing work.

#### Details

- Adds default gateway limits of 20MiB for coding-agent hook payloads and 100MiB for provider passthrough request bodies.
- Exposes both limits through CLI flags, environment variables, and `[gateway]` config.toml fields.
- Maps oversized hook and passthrough requests to structured `413 Payload Too Large` JSON responses.
- Updates CLI dry-run output and docs to show the new gateway limit settings.
- Adds regression coverage for defaults, config parsing, CLI/env validation, large hook acceptance, and structured 413 responses.

Validation:

- `cargo fmt --all --check`
- `git diff --check`
- `cargo test -p nemo-relay-cli`

#### Where should the reviewer start?

Start with `crates/cli/src/config.rs` for the public configuration surface, then `crates/cli/src/server.rs` and `crates/cli/src/gateway.rs` for the hook and passthrough enforcement paths.

#### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

- Closes #255
- Relates to RELAY-297




## Summary by CodeRabbit

* **New Features**
  * Added configurable maximum payload size limits for hook payloads and passthrough body requests via CLI arguments, environment variables, and TOML configuration
  * Implemented HTTP 413 error responses when payloads exceed configured limits

* **Documentation**
  * Updated configuration documentation with new gateway payload size limit options

Authors:
  - Will Killian (https://github.com/willkill07)

Approvers:
  - https://github.com/mnajafian-nv
  - https://github.com/lvojtku

URL: #261
@rapids-bot rapids-bot Bot requested review from a team and lvojtku as code owners June 12, 2026 21:49
@GPUtester GPUtester merged commit b8cff5c into main Jun 12, 2026
1 check passed
@rapids-bot

rapids-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

SUCCESS - forward-merge complete.

@github-actions github-actions Bot added size:M PR is medium lang:rust PR changes/introduces Rust code labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang:rust PR changes/introduces Rust code size:M PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants