Skip to content

Commit 5ff5157

Browse files
Emily Tsanovawilkinsona
Emily Tsanova
authored andcommitted
Exclude cookie headers by default from HTTP traces
See gh-22829
1 parent 8bcf518 commit 5ff5157

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@
653653
"defaultValue": [
654654
"request-headers",
655655
"response-headers",
656-
"cookies",
657656
"errors"
658657
]
659658
},

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/http/Include.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* Include options for HTTP tracing.
2525
*
2626
* @author Wallace Wadge
27+
* @author Emily Tsanova
28+
* @author Joseph Beeton
2729
* @since 2.0.0
2830
*/
2931
public enum Include {
@@ -55,6 +57,7 @@ public enum Include {
5557
PRINCIPAL,
5658

5759
/**
60+
*
5861
* Include the remote address.
5962
*/
6063
REMOTE_ADDRESS,
@@ -75,7 +78,6 @@ public enum Include {
7578
Set<Include> defaultIncludes = new LinkedHashSet<>();
7679
defaultIncludes.add(Include.REQUEST_HEADERS);
7780
defaultIncludes.add(Include.RESPONSE_HEADERS);
78-
defaultIncludes.add(Include.COOKIE_HEADERS);
7981
defaultIncludes.add(Include.TIME_TAKEN);
8082
DEFAULT_INCLUDES = Collections.unmodifiableSet(defaultIncludes);
8183
}

0 commit comments

Comments
 (0)