Author SHA1 Message Date
magnus d2fc39422a Redact secrets from startup error logs
pull-request / validate (pull_request) Successful in 1m27s
2026-09-18 17:08:57 +02:00
2 changed files with 7 additions and 3 deletions
+6 -3
View File
@@ -19,9 +19,12 @@
;; log uncaught exceptions in threads
(Thread/setDefaultUncaughtExceptionHandler
(fn [thread ex]
(log/error {:what :uncaught-exception
:exception ex
:where (str "Uncaught exception on" (.getName thread))})))
;; Integrant exceptions include component configuration in ex-data. Logging
;; the exception object can therefore disclose database or cookie secrets.
(log/error {:what :uncaught-exception
:exception-class (.getName (class ex))
:message (.getMessage ex)
:where (str "Uncaught exception on " (.getName thread))})))
(defonce system (atom nil))
+1
View File
@@ -3,5 +3,6 @@
[clojure.test :refer [deftest is]]
[pmagnus.elprice.core :as core]))
(deftest system-state-is-managed-in-an-atom
(is (instance? clojure.lang.Atom core/system)))