Skip to content

Commit e2be18a

Browse files
committed
Handle Dynatrace API Token in the sanitizer
1 parent 81b261e commit e2be18a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/java_buildpack/util/sanitizer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def sanitize_uri
2525
rich_uri = URI(self)
2626
rich_uri.user = nil
2727
rich_uri.password = nil
28+
rich_uri.query = rich_uri.query&.gsub(/(Api-Token=dt\w*\.\w*)\.\w*/, '\1.REDACTED')
2829
rich_uri.to_s
2930
end
3031

0 commit comments

Comments
 (0)