Skip to content

Backport(v1.19) out_http: add strict host validation for dynamic endpoints#5394

Merged
kenhys merged 1 commit into
v1.19from
backport/out_http
Jun 25, 2026
Merged

Backport(v1.19) out_http: add strict host validation for dynamic endpoints#5394
kenhys merged 1 commit into
v1.19from
backport/out_http

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:
This PR introduces strict host validation to ensure predictable and safe routing when using dynamic endpoints.

Changes

  • Added allowed_hosts parameter (default: []).
    • An array configuration to explicitly define permitted hostnames for dynamic endpoints.
    • Unaffected when use static endpoints, or endpoints where placeholders do not alter the host.

Docs Changes:

Release Note:

  • out_http: add strict host validation for dynamic endpoints

…oints

**Which issue(s) this PR fixes**:
Fixes #

**What this PR does / why we need it**:
This PR introduces strict host validation to ensure predictable and safe routing when using dynamic endpoints.

### Changes
* Added `allowed_hosts` parameter (default: `[]`).
  * An array configuration to explicitly define permitted hostnames for dynamic endpoints.
  * Unaffected when use static endpoints, or endpoints where placeholders do not alter the host.

**Docs Changes**:

**Release Note**:
* out_http: add strict host validation for dynamic endpoints

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 requested a review from kenhys June 25, 2026 07:09
@kenhys kenhys merged commit c6a01ea into v1.19 Jun 25, 2026
13 of 19 checks passed
@kenhys kenhys deleted the backport/out_http branch June 25, 2026 07:10
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