Open CMCDragonkai opened 3 hours ago
I want to point out that this message looks weird too:
INFO:polykey.PolykeyAgent.ClientService.WebSocketServer.WebSocketConnection 0:ErrorWebSocketConnectionPeer: WebSocket Connection peer error - Peer closed with code 1000
This looks like a error. But it's actually a successful close. It's considered normal closure.
Specification
When using
secrets edit
, it will timeout if the editor session isn't finished fast enough. I opened up thesecrets edit
and waited for a while, after trying to save, it failed:We need to make the websocket connection alive for as long as the editor session is alive, it shouldn't fail.
That being said it's also important not to start a vault commit transaction until the editor has in fact finished writing. We don't want this to block other secret operations. Concurrent testing needs to be checked too.
Tasks
@tegefaulkes @aryanjassal