manetu / temporal-clojure-sdk

A Temporal SDK for Clojure
Apache License 2.0
65 stars 10 forks source link

Readable encoding (i.e. not nippy) #28

Open nivekuil opened 1 year ago

nivekuil commented 1 year ago

Hey, thanks for writing this! Got a simple cron job working nicely and I'm impressed with the API's elegance.

One thing I like about temporal is the ecosystem includes a UI, but it's not very useful here because everything is nippy encoded, which is convenient but not interoperable. Do you have any thoughts on this? e.g. pluggable encoding or remote codec endpoint facilities

ghaskins commented 1 year ago

Hi Kevin,

In theory, you should be able to develop a “Remote Codec” server:

https://docs.temporal.io/security#codec-server

We haven’t tried as we also encrypt our data in a manner that, by design, won’t work.  I do understand that this would be helpful, though.  Patches welcome!

bbqbaron commented 1 year ago

We've set up a codec server and it definitely works as advertised.

Part 2, which we haven't tried: I believe you can also forward the user's Temporal cluster credentials with the request, which in theory means you can selectively decrypt as well.

kpassapk commented 1 week ago

I implemented a codec server, leaving it here in case it's useful to anybody.