Pull vault accessor method out for reuse in other services

This commit is contained in:
2025-09-27 21:01:32 -05:00
parent 69758dda92
commit 3ffe110578

View File

@@ -0,0 +1,7 @@
(ns utils.vault)
(defn get-secret-val
"Extract a specific key from a Vault secret Output/Promise."
[secret-promise key]
(.then secret-promise #(aget (.-data %) key)))