# Search guard max header size

**URL:** <https://forum.search-guard.com/t/search-guard-max-header-size/1718>\
**Category:** Search Guard\
**Created:** [December 20, 2019, 3:41pm UTC](https://forum.search-guard.com/t/search-guard-max-header-size/1718 "2019-12-20T15:41:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabrice\_Bacchella](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/fabrice_bacchella/32/685_2.png) [@Fabrice\_Bacchella](https://forum.search-guard.com/u/Fabrice_Bacchella)\
**Post date:** [December 20, 2019, 3:41pm UTC](https://forum.search-guard.com/t/search-guard-max-header-size/1718/1 "2019-12-20T15:41:56Z")

</div>

Many month ago, I opened a bug in github about maximum header size.

I’m using proxy authentication and we have many groups, so the roles\_header can be quit long, and it reaches SG maximum values. So I opened a bug in github and it was resolved. But since all data has been removed, all git history is new, I’m unable to find what the resolution was. I’m thinking that a settings was defined that allows a bigger maximum header size, but I’m not sure, and browsing through the code didn’t return any thing.

Does someone remember what was done ?

---

<div class="post-metadata">

**Author:** ![hsaly](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/hsaly/32/21_2.png) [@hsaly](https://forum.search-guard.com/u/hsaly)\
**Post date:** [January 4, 2020, 6:06pm UTC](https://forum.search-guard.com/t/search-guard-max-header-size/1718/2 "2020-01-04T18:06:01Z")

</div>

Not sure about the original issue but I guess you need to adjust `http.max_header_size` (which is a ES and not a SG config option because SG itselft does not have any limits with regards to max header sizes). Default is 8kB. See [HTTP | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html) for more information.

---

<div class="post-metadata">

**Author:** ![hsaly](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/hsaly/32/21_2.png) [@hsaly](https://forum.search-guard.com/u/hsaly)\
**Post date:** [January 4, 2020, 6:06pm UTC](https://forum.search-guard.com/t/search-guard-max-header-size/1718/3 "2020-01-04T18:06:04Z")

</div>

Assigned @hsaly on January 4, 2020, 6:06pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/system/32/1870_2.png) [@system](https://forum.search-guard.com/u/system)\
**Post date:** [January 25, 2020, 6:06pm UTC](https://forum.search-guard.com/t/search-guard-max-header-size/1718/4 "2020-01-25T18:06:05Z")

</div>

Closed on January 25, 2020, 6:06pm UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
