hanicz opened a new pull request, #1538: URL: https://github.com/apache/knox/pull/1538
[KNOX-3608](https://issues.apache.org/jira/browse/KNOX-3608) - Normalize outbound actor headers in ConfigurableDispatch ## What changes were proposed in this pull request? Ensures that the actor identity and actor group headers (`actorIdHeaderName`, `actorGroupsHeaderPrefix`) sent to the backend are always the ones Knox computes from the authenticated subject when `shouldIncludePrincipalAndGroups` is enabled. Previously these headers were appended to the outbound request alongside any matching inbound headers, which could leave more than one value for the same header. `ConfigurableDispatch` now clears any existing actor headers before adding Knox's values, so exactly one authoritative set reaches the backend. This covers custom header names and all subclasses (HA, SSE, REST catalog). ## How was this patch tested? Added `ConfigurableDispatchTest` cases covering the actor id and group headers (default and custom names, append config, feature disabled). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
