Skip to content

Commit fb3d29f

Browse files
committed
Change logging_level default to INFO; extend log redaction
Change uaa.logging_level default from DEBUG to INFO. The DEBUG level produces verbose Spring Security and JDBC output that is not appropriate for production deployments. Extend the log4j2 redaction pattern to cover code=, access_token=, refresh_token=, and id_token= in addition to the existing password= and client_secret= patterns.
1 parent fea71c6 commit fb3d29f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jobs/uaa/templates/config/log4j2.properties.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ case logging_format_timestamp_value
1515
end
1616
%>
1717
property.log_directory = /var/vcap/sys/log/uaa
18-
property.log_pattern=[<%= timestamp_format %>] uaa%X{context} - %pid [%t] - [%X{traceId},%X{spanId}] .... %5p --- %c{1}: %replace{%m}{(?<=password=|client_secret=)([^&]*)}{<redacted>}%n
18+
property.log_pattern=[<%= timestamp_format %>] uaa%X{context} - %pid [%t] - [%X{traceId},%X{spanId}] .... %5p --- %c{1}: %replace{%m}{(?<=password=|client_secret=|code=|access_token=|refresh_token=|id_token=)([^&\s]*)}{<redacted>}%n
1919

2020
appender.uaaDefaultAppender.type = File
2121
appender.uaaDefaultAppender.name = UaaDefaultAppender

0 commit comments

Comments
 (0)