Skip to content

Commit 05215e0

Browse files
committed
Fix type in metadataKeysToSanitize
closes codecentric#1366
1 parent c80b6af commit 05215e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-admin-docs/src/main/asciidoc/server.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ In addition when the reverse proxy terminates the https connection, it may be ne
4848

4949
| spring.boot.admin.metadata-keys-to-sanitize
5050
| Metadata values for the keys matching these regex patterns will be sanitized in all json output.
51-
| `".*password$", ".*secret$", ".*key$", ".*$token$", ".*credentials.*", ".*vcap_services$"`
51+
| `".*password$", ".*secret$", ".*key$", ".*token$", ".*credentials.*", ".*vcap_services$"`
5252

5353
| spring.boot.admin.probed-endpoints
5454
| For Spring Boot 1.x client applications SBA probes for the specified endpoints using an OPTIONS request.

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ public class AdminServerProperties {
4747
/**
4848
* The metadata keys which should be sanitized when serializing to json
4949
*/
50-
private String[] metadataKeysToSanitize = new String[] { ".*password$", ".*secret$", ".*key$", ".*$token$",
50+
private String[] metadataKeysToSanitize = new String[] { ".*password$", ".*secret$", ".*key$", ".*token$",
5151
".*credentials.*", ".*vcap_services$" };
5252

5353
/**

0 commit comments

Comments
 (0)