Skip to content

Commit ec42a18

Browse files
committed
redact passwords and tokens when reporting exceptions
1 parent 5b25ec0 commit ec42a18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

github-services.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def report_exception(exception, other)
8989
}
9090

9191
# optional
92+
%w[password token].each { |key| other[key] &&= '<redacted>' }
9293
other.each { |key, value| data[key.to_s] = value.to_s }
9394

9495
Net::HTTP.new('aux1', 9292).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy