[
https://issues.apache.org/jira/browse/KNOX-3035?focusedWorklogId=988121&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-988121
]
ASF GitHub Bot logged work on KNOX-3035:
----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Oct/25 07:38
Start Date: 21/Oct/25 07:38
Worklog Time Spent: 10m
Work Description: smolnar82 opened a new pull request, #1101:
URL: https://github.com/apache/knox/pull/1101
[KNOX-3035](https://issues.apache.org/jira/browse/KNOX-3035) - Group header
value should be based on data size and not number
## What changes were proposed in this pull request?
Until now, the `KNOX-AUTH` service and the configurable dispatch code
supported the partitioning of optional group headers in the response by length.
This PR adds support for size-based partitioning in a way, such that it
takes precedense of the already supported length-based chunks, if the
size-based configuration is set to a non-negative value.
New configuration:
- in the `KNOX-AUTH` service: `preauth.auth.header.groups.size.limit`.
Defaults to `-1` to preserve backward compatibility with previous Knox versions.
- in the service dispatches: `groupHeaderSizeLimit`. Defaults to `-1` to
preserve backward compatibility with previous Knox versions.
## How was this patch tested?
Updated existing unit tests and added new tests for the new utility class to
cover all cases and ensure that partitioning works as expected.
Issue Time Tracking
-------------------
Worklog Id: (was: 988121)
Remaining Estimate: 0h
Time Spent: 10m
> Group header value should be based on data size and not number
> --------------------------------------------------------------
>
> Key: KNOX-3035
> URL: https://issues.apache.org/jira/browse/KNOX-3035
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Sandeep More
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> KNOX-2974 and KNOX-3023 support adding group headers to requests flowing to
> downstream endpoints. Currently the groups headers is based on number of
> groups (1000 default). A lot of webservers and loadbalancers support header
> sizes between 4KB - 8KB which be an issue when header sizes are large.
> This JIRA is to update this logic to limit groups in one header to configured
> size in KBs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)