Skip to content

Commit

Permalink
Fix secret listing for k8s: only read regular files
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes authored Dec 31, 2023
1 parent ca5432e commit 779808f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/bb/lib/secrets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(defn ->secrets []
(when (fs/exists? secrets-dir)
(->> (fs/list-dir secrets-dir)
(map #(let [filepath (-> % str)
secret-raw (slurp filepath)]
(->secret filepath secret-raw)))
(keep #(let [filepath (str %)]
(when (fs/regular-file? filepath)
(->secret filepath (slurp filepath)))))
(apply merge))))

0 comments on commit 779808f

Please sign in to comment.