Pull vault accessor method out for reuse in other services
This commit is contained in:
7
iac/src/main/utils/vault.cljs
Normal file
7
iac/src/main/utils/vault.cljs
Normal 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)))
|
||||
Reference in New Issue
Block a user