File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 33## Unreleased
44
55- Improved flaky test #150
6+ - Obfuscate env vars in /doctor.
67
78## 0.66.1
89
Original file line number Diff line number Diff line change 154154 " \n "
155155 (:auth db)))
156156 (str " Relevant env vars: " (reduce (fn [s [key val]]
157- (if (or (string/includes? key " KEY" )
158- (string/includes? key " API" )
159- (string/includes? key " URL" )
160- (string/includes? key " BASE" ))
157+ (cond
158+ (or (string/includes? key " KEY" )
159+ (string/includes? key " TOKEN" ))
160+ (str s key " =" (shared/obfuscate val) " \n " )
161+
162+ (or (string/includes? key " API" )
163+ (string/includes? key " URL" )
164+ (string/includes? key " BASE" ))
161165 (str s key " =" val " \n " )
162- s))
166+
167+ :else s))
163168 " \n "
164169 (System/getenv )))
165170 " "
You can’t perform that action at this time.
0 commit comments