yapapi icon indicating copy to clipboard operation
yapapi copied to clipboard

`app_key = self.cluster.service_runner._job.engine._api_config.app_key`

Open johny-b opened this issue 3 years ago • 0 comments

  1. app_key is available in an easy way only on the Golem instance
  2. app_key is necessary to authorize requests sent via the network websocket
  3. Golem instance is usually pretty far in the code from places where we use websockets

--> Thus the super-ugly line in the title.

I'm not sure what to do with this. The best solution would be - imho - to somehow just hide the app_key, so that it would be added to requests in an invisible way. I'm not sure though if there is a way to do this in a clean way.

Maybe we could consider some "just simple request/response" layer over the websocket, built in yapapi? <- Also probably not the best idea :(

johny-b avatar Feb 22 '22 18:02 johny-b