Fork me on GitHub
#clojure-europe
<
2023-06-02
>
schmalz07:06:38

Morning all.

thomas07:06:03

mogge TGIF!!!!

plus_one 2
genRaiy09:06:01

Good morning

reefersleep09:06:25

Good morning!

genRaiy09:06:15

🚆 :flag-be: ➡️ 🇬🇧 and hoping - despite my solidarity :fist::skin-tone-3: - to avoid the

Ben Sless11:06:20

Isn't aero's solution to just not really handle secret but leave it up to the user?

otfrom12:06:19

Yeah, but aero gives some sugar for including secrets from ~/

Ben Sless13:06:17

Does it? env HOME is nothing special as far as I can see (that's good, actually)

otfrom13:06:41

more just that it has #include and #join and you can reference those things brought in easily which makes it worth checking in as a development thing (which is my usecase here)

mpenet13:06:21

pro tip: don't allow your secrets to be printed

mpenet13:06:04

ex at work we have an aero tag #secret, we include secrets via env vars usually, and that tag wraps them in a custom type that will not output the actual value if printed

mpenet13:06:34

so it looks like {:foo #secret #env API_KEY}

mpenet13:06:47

and on the consumer side, you only deref/unmask the secret value at the last possible moment

mpenet13:06:26

that's a decent way to avoid accidental output of private stuff in logs & elsewhere (sentry, telemetry & whatnot)

mpenet13:06:58

the tag is just : (defmethod aero/reader 'secret [ value] (exoscale.cloak/mask value))

👍 2
Ben Sless13:06:55

Thank you! My colleague needed something like that

🙇 2
Rachel Westmacott12:06:34

We went a different route and redact secret values in our logging code. Haven't thought deeply about trade-offs there.

mccraigmccraig13:06:34

¡måning & yvening¡

flowthing20:06:16

Don’t know if this is useful to anyone but me (the most useful part was probably the making of it), but on the off chance that it is, I’ve been working on this mind map of the “Design in Practice” talk: https://whimsical.com/design-in-practice-PNQ6pHTiU8MdPjcWfN9hbE It’s a great talk, but there’s so much information that it’s hard for me to keep track of the relationships between things without some help. It obviously doesn’t include everything discussed in the talk, but maybe it’s better than nothing. (As a side note, Whimsical is great!)

❤️ 6
💯 3
seancorfield02:06:50

I'm a big fan of mind maps and have been for years. Shame that Whimsical didn't support mobile so I can't look at it right now:worried:

flowthing08:06:13

Oh, interesting. I can open that link on mobile Safari, at least.

Mario Trost13:06:33

That's great, thx for sharing! reading it on my android phone right now

seancorfield18:06:08

@U4ZDX466T Maybe it just doesn't like Bing/Edge on Android? I can read it in Edge (Chromium) desktop and it's great to see the process all laid out like that -- nice work! I've bookmarked it for the future.

flowthing18:06:20

Thanks! Happy to hear about (and fix) any mistakes or omissions you might spot.

teodorlu11:06:45

I found it really helpful. Thanks for sharing! 💯

flowthing12:06:21

Glad to hear it!

reefersleep21:06:16

@borkdude clojure.walk is not available in babashka, as far as I can tell. If that's how it is, that's how it is, and I'm free to open a PR, I get that 🙂 But I'm wondering if there's a reason that it's not there?

borkdude21:06:40

why do you think clojure.walk is not available in bb?

reefersleep21:06:02

I couldn't see it in the list of available namespaces and libraries

borkdude21:06:23

it is available

borkdude21:06:21

docs are always out of date or incomplete, clojure.walk has been in bb from the very beginning

reefersleep21:06:39

Your second sentence certainly validates the first!

borkdude21:06:05

PR welcome ;)

reefersleep21:06:34

I'm trying, but getting

remote: Permission to babashka/book.git denied to Reefersleep.
fatal: unable to access '': The requested URL returned error: 403

borkdude08:06:20

borkdude@MBP2019 /tmp $ git clone 
Cloning into 'book'...
remote: Enumerating objects: 1790, done.
remote: Counting objects: 100% (411/411), done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 1790 (delta 275), reused 374 (delta 245), pack-reused 1379
Receiving objects: 100% (1790/1790), 748.37 KiB | 3.65 MiB/s, done.
Resolving deltas: 100% (1118/1118), done.

borkdude08:06:33

filing an issue is also fine

reefersleep08:06:16

I cloned it fine, the above message is from trying to push my branch

reefersleep08:06:26

bit unclear 🙂

borkdude08:06:19

did you clone a fork of yours?

reefersleep08:06:39

cloned directly from yours, pushing a branch directly to yours

reefersleep08:06:51

maybe not "how it's done" tm

borkdude08:06:59

why do you think you, a random person on the internet, can push a branch to my repo? ;)

reefersleep08:06:35

I'll return to this later

borkdude08:06:02

no problem, take your time, much appreciated

🍻 2
borkdude08:06:27

the workflow is usually: make a fork on github, clone that fork using ssh:// (not https://), push your branch and then make a PR

reefersleep13:06:36

Why ssh over https?

reefersleep13:06:53

I've done this before with other repos a few times, but I didn't see it in the CONTRIBUTING.md, so I thought I could get away with pushing a branch directly onto your repo.

reefersleep14:06:37

I guess it's implied by just being on github and that being the convention there? Or maybe it's even just a git convention for open source projects?

borkdude14:06:45

Thank you :)

borkdude14:06:13

you can never just push something to a repo that you don't own or have the right security access to

reefersleep14:06:09

Well, I thought having branch pushing abilities open to the public was a thing. But I've never really looked into admin stuff on github.

reefersleep14:06:20

Thanks for elaborating, I'll keep it in mind for my next PR 🙂

borkdude14:06:53

nope, that is not a thing

reefersleep14:06:12

Consider me schooled 🙂

borkdude14:06:52

when you are working on a repo of your company, if you can do this, this is because you have access, but this is not the case for repos generally. e.g. I can't push a branch to http://github.com/clojure/clojure, that would be very surprising to me if I could :)

reefersleep14:06:45

Maybe I'd know this by heart if I were a more diligent open source contributor :face_with_monocle:

borkdude14:06:26

no big deal, thanks for fixing the docs

🍻 4
reefersleep14:06:04

Thanks for everything you do (that I know of 😄 )

❤️ 2