diff --git a/iac/src/main/utils/vault.cljs b/iac/src/main/utils/vault.cljs new file mode 100644 index 0000000..f40b1c0 --- /dev/null +++ b/iac/src/main/utils/vault.cljs @@ -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))) \ No newline at end of file