This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-14
Channels
- # announcements (4)
- # aws (7)
- # babashka (44)
- # beginners (178)
- # calva (15)
- # cider (3)
- # clj-kondo (15)
- # clojure (139)
- # clojure-dev (8)
- # clojure-europe (2)
- # clojure-italy (2)
- # clojure-losangeles (9)
- # clojure-nl (32)
- # clojure-spec (6)
- # clojure-sweden (1)
- # clojure-uk (27)
- # clojurescript (17)
- # core-typed (116)
- # cursive (26)
- # data-science (1)
- # datomic (14)
- # duct (16)
- # emacs (9)
- # events (1)
- # fulcro (47)
- # jobs (3)
- # juxt (6)
- # keechma (2)
- # malli (59)
- # mid-cities-meetup (8)
- # off-topic (32)
- # pathom (5)
- # reagent (2)
- # remote-jobs (4)
- # rewrite-clj (16)
- # shadow-cljs (14)
- # spacemacs (9)
- # sql (27)
- # tools-deps (37)
- # vscode (7)
sup! I'm starting to use aero and got a question: is there a way of defining a default behavior for #profile
? just to avoid this type of repetition:
{:jwt-pub-key #profile {:local #pub-key "auth/jwt_id_rsa.pub.pem"
:dev #ref [:secrets :jwt-pub-key]
:sandbox #ref [:secrets :jwt-pub-key]
:prod #ref [:secrets :jwt-pub-key]}}
awesome, thanks! btw, can I get a "code review" here? 😂 just to check if I'm not doing something wrong: https://gist.github.com/caioaao/d8aefd60b110d92ab89b7aef28e34aa4 the motivating example is under the implementation and it's something like this config that I wanted to support:
{:jwt-priv-key #priv-key #profile {:dev #io/resource "jwt_key.pem"
:default {:path #join [#env HOME "/.keys/jwt_key.pem"]
:passphrase #ref [:secrets :jwt-priv-key :passphrase]}}}
my two doubts are if I'm implementing the priv-key
literal right (the config can either be a path or a map containing :path
and :passphrase
) and if the #io/resource
+ aero/root-resolver
combination is an anti-pattern for some reason