Skip to content

fix(http)!: sanitize non-2xx error output#2654

Merged
Yuan325 merged 17 commits intogoogleapis:mainfrom
Deeven-Seru:fix-2617-http-error-sanitization
Mar 25, 2026
Merged

fix(http)!: sanitize non-2xx error output#2654
Yuan325 merged 17 commits intogoogleapis:mainfrom
Deeven-Seru:fix-2617-http-error-sanitization

Conversation

@Deeven-Seru
Copy link
Copy Markdown
Contributor

@Deeven-Seru Deeven-Seru commented Mar 6, 2026

Summary

  • sanitize non-2xx response errors by default (no upstream body)
  • add returnFullError opt-in for raw body in error
  • log truncated body at debug level when sanitized
  • add regression tests + docs

Breaking change

  • non-2xx errors now return sanitized messages unless returnFullError is enabled

Testing

  • go test ./internal/sources/http

Fixes #2617

@Deeven-Seru Deeven-Seru requested a review from a team as a code owner March 6, 2026 07:59
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the security posture of the HTTP source by sanitizing non-2xx response errors by default, preventing the accidental exposure of potentially sensitive information from upstream services. It introduces a new configuration option to allow explicit inclusion of response bodies in errors when detailed debugging is required, while also improving debuggability by logging truncated error bodies. These changes ensure more secure and controlled error reporting for HTTP requests.

Highlights

  • Security Enhancement: Non-2xx HTTP response errors are now sanitized by default, preventing sensitive upstream response bodies from being exposed in error messages.
  • Configurable Error Body Inclusion: A new includeResponseBodyInErrors option has been added, allowing users to explicitly opt-in to include raw upstream response bodies in error messages if needed.
  • Debug Logging for Truncated Bodies: When error bodies are sanitized, a truncated version of the body is now logged at the debug level for diagnostic purposes.
  • Testing and Documentation: Regression tests have been added to cover the new error handling behavior, and the documentation has been updated to reflect the new configuration option.
Changelog
  • docs/en/resources/sources/http.md
    • Documented the new includeResponseBodyInErrors configuration option, including its default behavior and purpose.
  • internal/sources/http/http.go
    • Implemented default sanitization of non-2xx HTTP response bodies in error messages.
    • Added IncludeResponseBodyInErrors field to the Config struct to control error body inclusion.
    • Introduced maxErrorBodyLogBytes constant and truncateForLog utility function for debug logging of truncated error bodies.
  • internal/sources/http/http_request_test.go
    • Added TestRunRequestSanitizesErrorBodyByDefault to verify that error bodies are sanitized by default.
    • Added TestRunRequestIncludesErrorBodyWhenEnabled to confirm that error bodies are included when the new option is enabled.
  • internal/sources/http/http_test.go
    • Updated the TestParseFromYamlHttp test case to include the includeResponseBodyInErrors field in the expected configuration.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a valuable security enhancement by sanitizing non-2xx error responses from the HTTP source by default, preventing the potential leakage of sensitive information in error messages. It includes an opt-in configuration to preserve the previous behavior, comprehensive regression tests, and corresponding documentation updates. However, a critical security concern has been identified: a new debug-level log statement writes the (truncated) response body to the logs regardless of the sanitization setting. This could lead to sensitive information leakage in logs, even when the IncludeResponseBodyInErrors configuration is disabled. Additionally, for better observability and machine-readability, it's preferable to use structured logging with key-value pairs instead of formatting everything into a single string, as the current implementation incorrectly uses fmt.Sprintf.

Comment thread internal/sources/http/http.go Outdated
@Deeven-Seru Deeven-Seru force-pushed the fix-2617-http-error-sanitization branch 2 times, most recently from 3ed1126 to 6893847 Compare March 6, 2026 08:03
@Deeven-Seru
Copy link
Copy Markdown
Contributor Author

/gemini review

@Deeven-Seru Deeven-Seru force-pushed the fix-2617-http-error-sanitization branch from 23f53a2 to 4d6c2e1 Compare March 6, 2026 08:08
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a valuable security enhancement by sanitizing non-2xx error responses from the HTTP source by default. The implementation is mostly solid, including configuration options, tests, and documentation. I have one main piece of feedback regarding a logic issue in the new debug logging, which I've detailed in a comment. I've also noted a minor formatting opportunity in the documentation.

Comment thread internal/sources/http/http.go Outdated
Comment thread docs/en/resources/sources/http.md Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Comment thread docs/en/resources/sources/http.md Outdated
@kurtisvg kurtisvg changed the title security(http): sanitize non-2xx error output fix(http): sanitize non-2xx error output Mar 6, 2026
@kurtisvg kurtisvg added the release candidate Use label to signal PR should be included in the next release. label Mar 6, 2026
@Deeven-Seru
Copy link
Copy Markdown
Contributor Author

Deeven-Seru commented Mar 12, 2026

@gemini-code-assist just making sure includeResponseBodyInErrors is replaced with returnFullError

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Thanks for asking for clarification! Looking at the changes, includeResponseBodyInErrors is not replacing returnFullError. Instead, includeResponseBodyInErrors is a new configuration option that has been added.

The logic in internal/sources/http/http.go (lines 166-167 in the new version) now uses both fields:

returnFullError := s.Config.ReturnFullError || s.Config.IncludeResponseBodyInErrors
if returnFullError {
	// ... logic to include response body
}

This means that if either ReturnFullError (the existing field) or IncludeResponseBodyInErrors (the new field) is set to true, the full error body will be returned. The documentation in docs/en/resources/sources/http.md also reflects the addition of returnFullError as a new option, which corresponds to the IncludeResponseBodyInErrors field in the Go code. It seems there might be a slight naming inconsistency between the documentation (returnFullError) and the Go struct field (IncludeResponseBodyInErrors), but the intent is to add a new option for this functionality.

Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

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

Hi @Deeven-Seru Thank you for your contributions! I left some comments. Will review once resolved :)

Comment thread internal/sources/http/http.go Outdated
Comment thread internal/sources/http/http.go Outdated
@Yuan325
Copy link
Copy Markdown
Contributor

Yuan325 commented Mar 20, 2026

@Deeven-Seru When you say legacy flag do you meant legacy flag from the http library? Since this is a newly introduced flag in Toolbox there are no legacy fields, and I'd think that we can just support one of the other. Correct me if I'm wrong, but it seems like based on previous discussion, we've decided to use the returnFullError field? It'll be great if you can remove the IncludeResponseBodyInErrors flag.

@Deeven-Seru
Copy link
Copy Markdown
Contributor Author

@Yuan325 Thanks for the clarification — you’re right. Since this flag is new to Toolbox (not inherited from the HTTP lib), I missed that point there’s no legacy field to preserve. I removed includeResponseBodyInErrors and kept only returnFullError, and updated the docs accordingly :)

Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 left a comment

Choose a reason for hiding this comment

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

final minor changes~ thank you! Would appreciate if you can also update the PR description.

Marking this as breaking change since this will now return a different error format.

Comment thread internal/sources/http/http.go Outdated
Comment thread internal/sources/http/http_request_test.go Outdated
@Yuan325 Yuan325 changed the title fix(http): sanitize non-2xx error output fix(http)!: sanitize non-2xx error output Mar 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@Yuan325
Copy link
Copy Markdown
Contributor

Yuan325 commented Mar 24, 2026

Hi @Deeven-Seru can you please also update the http integration test? Since the output is altered, the integration is currently failing~

@Deeven-Seru
Copy link
Copy Markdown
Contributor Author

hi @Yuan325 I fixed the failing HTTP integration test by updating the expected error string for the “wrong params” case in tests/http/http_integration_test.go to match the new sanitized error format (unexpected status code: 400 (Bad Request) instead of including the upstream body.

@Yuan325
Copy link
Copy Markdown
Contributor

Yuan325 commented Mar 25, 2026

/gcbrun

@github-actions
Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 enabled auto-merge (squash) March 25, 2026 22:47
@Yuan325
Copy link
Copy Markdown
Contributor

Yuan325 commented Mar 25, 2026

@Deeven-Seru Thank you again ! :) This will be included in our next release.

@Yuan325 Yuan325 disabled auto-merge March 25, 2026 22:48
@Yuan325 Yuan325 enabled auto-merge (squash) March 25, 2026 22:48
@Yuan325
Copy link
Copy Markdown
Contributor

Yuan325 commented Mar 25, 2026

/gcbrun

@github-actions
Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 merged commit 5bef954 into googleapis:main Mar 25, 2026
15 of 16 checks passed
github-actions Bot pushed a commit that referenced this pull request Mar 25, 2026
## Summary
- sanitize non-2xx response errors by default (no upstream body)
- add returnFullError opt-in for raw body in error
- log truncated body at debug level when sanitized
- add regression tests + docs
## Breaking change
- non-2xx errors now return sanitized messages unless returnFullError is
enabled
## Testing
- go test ./internal/sources/http
   Fixes #2617

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 5bef954
github-actions Bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Mar 25, 2026
## Summary
- sanitize non-2xx response errors by default (no upstream body)
- add returnFullError opt-in for raw body in error
- log truncated body at debug level when sanitized
- add regression tests + docs
## Breaking change
- non-2xx errors now return sanitized messages unless returnFullError is
enabled
## Testing
- go test ./internal/sources/http
   Fixes googleapis#2617

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 5bef954
dishaprakash pushed a commit that referenced this pull request Mar 25, 2026
## Summary
- sanitize non-2xx response errors by default (no upstream body)
- add returnFullError opt-in for raw body in error
- log truncated body at debug level when sanitized
- add regression tests + docs
## Breaking change
- non-2xx errors now return sanitized messages unless returnFullError is
enabled
## Testing
- go test ./internal/sources/http
   Fixes #2617

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
@Deeven-Seru
Copy link
Copy Markdown
Contributor Author

@Deeven-Seru Thank you again ! :) This will be included in our next release.

thanks for reviewing the pr @Yuan325 I've learned a lot ...! 😄

Yuan325 added a commit that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.31.0](v0.30.0...v0.31.0)
(2026-03-26)


### ⚠ BREAKING CHANGES

* release upgraded docsite
([#2831](#2831))
* **http:** sanitize non-2xx error output
([#2654](#2654))
* add a new `enable-api` flag
([#2846](#2846))
* remove deprecations and update tools-file flag
([#2806](#2806))

### Features

* Add a new `enable-api` flag
([#2846](#2846))
([7a070da](7a070da))
* **auth:** Add generic `authService` type for MCP
([#2619](#2619))
([f6678f8](f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([#2698](#2698))
([b53dcf2](b53dcf2))
* **auth:** Support manual PRM override
([#2717](#2717))
([283e4e3](283e4e3))
* **dataplex:** Add support for lookup context tool.
([#2744](#2744))
([facb69d](facb69d))
* Remove deprecations and update tools-file flag
([#2806](#2806))
([ab64c95](ab64c95))


### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([#2859](#2859))
([f8891b8](f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([#2853](#2853))
([9ebd93a](9ebd93a))
* **http:** Sanitize non-2xx error output
([#2654](#2654))
([5bef954](5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([#2847](#2847))
([4564efe](4564efe))


### Documentation

* Release upgraded docsite
([#2831](#2831))
([5b25ce0](5b25ce0))


---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
github-actions Bot pushed a commit that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([#2831](#2831))
* **http:** sanitize non-2xx error output
([#2654](#2654))
* add a new `enable-api` flag
([#2846](#2846))
* remove deprecations and update tools-file flag
([#2806](#2806))

### Features

* Add a new `enable-api` flag
([#2846](#2846))
([7a070da](7a070da))
* **auth:** Add generic `authService` type for MCP
([#2619](#2619))
([f6678f8](f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([#2698](#2698))
([b53dcf2](b53dcf2))
* **auth:** Support manual PRM override
([#2717](#2717))
([283e4e3](283e4e3))
* **dataplex:** Add support for lookup context tool.
([#2744](#2744))
([facb69d](facb69d))
* Remove deprecations and update tools-file flag
([#2806](#2806))
([ab64c95](ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([#2859](#2859))
([f8891b8](f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([#2853](#2853))
([9ebd93a](9ebd93a))
* **http:** Sanitize non-2xx error output
([#2654](#2654))
([5bef954](5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([#2847](#2847))
([4564efe](4564efe))

### Documentation

* Release upgraded docsite
([#2831](#2831))
([5b25ce0](5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([#2831](#2831))
* **http:** sanitize non-2xx error output
([#2654](#2654))
* add a new `enable-api` flag
([#2846](#2846))
* remove deprecations and update tools-file flag
([#2806](#2806))

### Features

* Add a new `enable-api` flag
([#2846](#2846))
([7a070da](7a070da))
* **auth:** Add generic `authService` type for MCP
([#2619](#2619))
([f6678f8](f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([#2698](#2698))
([b53dcf2](b53dcf2))
* **auth:** Support manual PRM override
([#2717](#2717))
([283e4e3](283e4e3))
* **dataplex:** Add support for lookup context tool.
([#2744](#2744))
([facb69d](facb69d))
* Remove deprecations and update tools-file flag
([#2806](#2806))
([ab64c95](ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([#2859](#2859))
([f8891b8](f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([#2853](#2853))
([9ebd93a](9ebd93a))
* **http:** Sanitize non-2xx error output
([#2654](#2654))
([5bef954](5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([#2847](#2847))
([4564efe](4564efe))

### Documentation

* Release upgraded docsite
([#2831](#2831))
([5b25ce0](5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to xaas-cloud/genai-toolbox that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to xaas-cloud/genai-toolbox that referenced this pull request Mar 27, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to bhardwajRahul/genai-toolbox that referenced this pull request Mar 28, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
github-actions Bot pushed a commit to bhardwajRahul/genai-toolbox that referenced this pull request Mar 28, 2026
🤖 I have created a release *beep* *boop*
---

##
[0.31.0](googleapis/mcp-toolbox@v0.30.0...v0.31.0)
(2026-03-26)

### ⚠ BREAKING CHANGES

* release upgraded docsite
([googleapis#2831](googleapis#2831))
* **http:** sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
* add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
* remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))

### Features

* Add a new `enable-api` flag
([googleapis#2846](googleapis#2846))
([7a070da](googleapis@7a070da))
* **auth:** Add generic `authService` type for MCP
([googleapis#2619](googleapis#2619))
([f6678f8](googleapis@f6678f8))
* **auth:** Add Protected Resource Metadata endpoint
([googleapis#2698](googleapis#2698))
([b53dcf2](googleapis@b53dcf2))
* **auth:** Support manual PRM override
([googleapis#2717](googleapis#2717))
([283e4e3](googleapis@283e4e3))
* **dataplex:** Add support for lookup context tool.
([googleapis#2744](googleapis#2744))
([facb69d](googleapis@facb69d))
* Remove deprecations and update tools-file flag
([googleapis#2806](googleapis#2806))
([ab64c95](googleapis@ab64c95))

### Bug Fixes

* **ci:** Remove search index generation from preview deployment
workflow
([googleapis#2859](googleapis#2859))
([f8891b8](googleapis@f8891b8))
* **docs:** Skip empty folders in pagination & reduce PR comment noise
([googleapis#2853](googleapis#2853))
([9ebd93a](googleapis@9ebd93a))
* **http:** Sanitize non-2xx error output
([googleapis#2654](googleapis#2654))
([5bef954](googleapis@5bef954))
* **skills:** Fix integer parameter parsing through agent skills
([googleapis#2847](googleapis#2847))
([4564efe](googleapis@4564efe))

### Documentation

* Release upgraded docsite
([googleapis#2831](googleapis#2831))
([5b25ce0](googleapis@5b25ce0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> c6b811c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release candidate Use label to signal PR should be included in the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security(http): non-2xx upstream response bodies are reflected in tool error output

4 participants