Skip to content

fix(ai-proxy-multi): stabilize domain health checks#13441

Merged
nic-6443 merged 4 commits into
apache:masterfrom
nic-6443:fix-ai-proxy-multi-domain-hc-20260526174346
May 27, 2026
Merged

fix(ai-proxy-multi): stabilize domain health checks#13441
nic-6443 merged 4 commits into
apache:masterfrom
nic-6443:fix-ai-proxy-multi-domain-hc-20260526174346

Conversation

@nic-6443
Copy link
Copy Markdown
Member

@nic-6443 nic-6443 commented May 26, 2026

Fixes ai-proxy-multi active health checks when a domain endpoint resolves to multiple IPs.

The plugin now builds health check nodes from the full resolved DNS answer set and keeps that set sorted, so changes in DNS answer order do not continuously rebuild the checker. Requests still connect to a selected resolved IP while preserving the original domain authority for the Host header and the hostname-only value for SNI. IPv6 resolved addresses are bracketed when constructing the upstream endpoint.

AWS SigV4 signing now uses the final Host authority when a request connects to a resolved IP, and keeps a single wire Host header to avoid signing or header conflicts.

If every checked node becomes unhealthy and the plugin falls back to the default instance set, stale healthy DNS node state is cleared so the fallback uses the full resolved DNS node set.

This also adds regression coverage for DNS answer order changes, Host header preservation for non-default ports, SigV4 signing with resolved IP connections, and an in-flight active health check probe.

Copilot AI review requested due to automatic review settings May 26, 2026 10:01
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. bug Something isn't working labels May 26, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@nic-6443 nic-6443 merged commit 4f40a46 into apache:master May 27, 2026
20 checks passed
@nic-6443 nic-6443 deleted the fix-ai-proxy-multi-domain-hc-20260526174346 branch May 27, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants