Skip to content

[Feature Request] Make X-Request-Id validation configurable #20688

Description

@tmanninger

Is your feature request related to a problem? Please describe

Hi OpenSearch Team,

I’m looking at PR #19798 where X-Request-Id is currently validated as hex-only and exactly 32 chars.

  • Many gateways / load balancers emit request IDs that are not hex-only.
  • Operators often want to pass through an existing correlation ID end-to-end without rewriting.

Before I start implementing anything, I’d like to ask if you would be OK with me opening a PR that removes the hex-only restriction and makes only the length configurable, while keeping the current behavior as the default.

Describe the solution you'd like

  • Introduce a setting like http.request_id.max_length (default: 32).

  • Validation would enforce:

    • header is present / non-empty (as today)
    • length is <= max_length (default keeps 32)
  • The hex character check would be removed, so operators can propagate common request-id formats (UUID/ULID/base64url-like tokens, vendor-specific IDs) unchanged.

Related component

Search

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

SearchSearch query, autocomplete ...etcenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions