wetware / pkg

Peer-to-peer cloud environment
https://wetware.run
Other
38 stars 7 forks source link

Add cluster auth #145

Closed lthibault closed 1 year ago

lthibault commented 1 year ago

Taking a stab at #16. Right now, the authentication policy is "grant access to everyone", so result should be functionally equivalent to current authless system.

WIP.

lthibault commented 1 year ago

Currently hitting a bug where second call to ww ls deadlocks.

@mikelsr If you have a few cycles, can you try to reproduce this error. Procedure as follows:

  1. make && go install ./cmd/ww/...
  2. ww start # start a server
  3. ww ls # do this twice; second call expected to deadlock
lthibault commented 1 year ago

Update: deadlock appears non-deterministic. I suspect promise pipelining is involved.

lthibault commented 1 year ago

Closing. Will open a new PR.

lthibault commented 1 year ago

Closing. Will open a new PR.