Skip to content

feat: add timeout and allow_private_ips support to api and openapi tools#2865

Merged
dgageot merged 2 commits into
docker:mainfrom
dgageot:api-openapi-timeout-allow-private-ips
May 21, 2026
Merged

feat: add timeout and allow_private_ips support to api and openapi tools#2865
dgageot merged 2 commits into
docker:mainfrom
dgageot:api-openapi-timeout-allow-private-ips

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented May 21, 2026

The timeout and allow_private_ips configuration options were previously only available on the fetch builtin tool. This change extends both options to the api and openapi builtin toolsets, bringing consistency across HTTP-based tools.

Both toolsets now respect the configured timeout value (defaulting to 30 seconds) and honor the allow_private_ips opt-in to dial non-public IP addresses. Validation logic and schema have been updated to reflect the expanded scope of these options.

The branch also includes minor doc clarifications and code cleanups to make the implementation consistent with existing patterns.

dgageot added 2 commits May 21, 2026 19:20
- Refresh Toolset.Timeout and Toolset.AllowPrivateIPs doc comments to
  reflect api and openapi builtin tools.
- Replace hard-coded timeout with defaultHTTPTimeout const in api tool.
- Rename unused parameter in timeout test handler.
- Clarify private-IP opt-in propagation in openapi test comment.
@dgageot dgageot requested a review from a team as a code owner May 21, 2026 17:34
@docker-agent
Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

@dgageot dgageot merged commit 5b0ccca into docker:main May 21, 2026
8 checks passed
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.

3 participants