You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><spanclass="options-description">Set of HTTP Cookie headers whose values must be masked when the <code>long</code> pattern or <code>%{ALL_REQUEST_HEADERS}</code> format is enabled with the <code>http-access-log-pattern</code> option.</span></p>
<p><spanclass="options-description">Set of HTTP headers whose values must be masked when the <code>long</code> pattern or <code>%{ALL_REQUEST_HEADERS}</code> format is enabled with the <code>http-access-log-pattern</code> option.</span></p>
HTTP Access logs may contain sensitive HTTP headers like <code>Authorization</code>, <code>Cookie</code>, or external API keys references.
659
-
Be careful with using the <code>long</code> pattern or printing the headers by the custom format - you should use it only for development purposes.
659
+
The <code>Authorization</code> header and selected sensitive cookies are automatically masked in the HTTP Access log. However, the list of masked items might not be complete. Be careful with using the <code>long</code> pattern or printing the headers by the custom format - you should use it only for development purposes. To extend the list of the masked items, see below.
<h3id="_mask_specific_http_headers_and_cookies"><aclass="anchor" href="#_mask_specific_http_headers_and_cookies"></a>Mask specific HTTP headers and cookies</h3>
670
+
<divclass="paragraph">
671
+
<p>Selected sensitive HTTP headers and cookies are automatically masked in the HTTP Access log.</p>
672
+
</div>
673
+
<divclass="paragraph">
674
+
<p>Masked sensitive HTTP headers:</p>
675
+
</div>
676
+
<divclass="ulist">
677
+
<ul>
678
+
<li>
679
+
<p><code>Authorization</code></p>
680
+
</li>
681
+
</ul>
682
+
</div>
683
+
<divclass="paragraph">
684
+
<p>Masked sensitive Keycloak cookies:</p>
685
+
</div>
686
+
<divclass="ulist">
687
+
<ul>
688
+
<li>
689
+
<p><code>AUTH_SESSION_ID</code></p>
690
+
</li>
691
+
<li>
692
+
<p><code>KC_AUTH_SESSION_HASH</code></p>
693
+
</li>
694
+
<li>
695
+
<p><code>KEYCLOAK_IDENTITY</code></p>
696
+
</li>
697
+
<li>
698
+
<p><code>KEYCLOAK_SESSION</code></p>
699
+
</li>
700
+
<li>
701
+
<p><code>AUTH_SESSION_ID_LEGACY</code></p>
702
+
</li>
703
+
<li>
704
+
<p><code>KEYCLOAK_IDENTITY_LEGACY</code></p>
705
+
</li>
706
+
<li>
707
+
<p><code>KEYCLOAK_SESSION_LEGACY</code></p>
708
+
</li>
709
+
</ul>
710
+
</div>
711
+
<divclass="paragraph">
712
+
<p>In order to extend the list of the masked items (e.g. to accommodate for headers and cookies used by your custom extensions), configure the <code>http-access-log-masked-headers</code> and <code>http-access-log-masked-cookies</code> options.</p>
<p><spanclass="options-description">Set of HTTP Cookie headers whose values must be masked when the <code>long</code> pattern or <code>%{ALL_REQUEST_HEADERS}</code> format is enabled with the <code>http-access-log-pattern</code> option.</span></p>
1691
+
</div>
1692
+
<divclass="openblock options-extended">
1693
+
<divclass="content">
1694
+
<divclass="paragraph">
1695
+
<p><spanclass="options-description-extended">Selected security sensitive cookies are always masked.</span></p>
<p><spanclass="options-description">Set of HTTP headers whose values must be masked when the <code>long</code> pattern or <code>%{ALL_REQUEST_HEADERS}</code> format is enabled with the <code>http-access-log-pattern</code> option.</span></p>
1715
+
</div>
1716
+
<divclass="openblock options-extended">
1717
+
<divclass="content">
1718
+
<divclass="paragraph">
1719
+
<p><spanclass="options-description-extended">Selected security sensitive headers are always masked.</span></p>
0 commit comments