* feat: verify rbac on each message and not just during handshake
Signed-off-by: pashakostohrys <pavel@codefresh.io>
* cover with tests
Signed-off-by: pashakostohrys <pavel@codefresh.io>
* fix: linter and e2e tests
Signed-off-by: pashakostohrys <pavel@codefresh.io>
* fix: linter and e2e tests
Signed-off-by: pashakostohrys <pavel@codefresh.io>
---------
Signed-off-by: pashakostohrys <pavel@codefresh.io>
This adds a WebSocket ping message on a 5-second interval, sent
from the server to the client. This ensures that the interactive
terminal will remain open and won't be closed by load balancers
that are reaping idle connections.
Signed-off-by: Edmund Rhudy <erhudy@users.noreply.github.com>
* fix: 'unexpected reserved bits' breaking web terminal (#9605)
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
* make things more like they were originally, since the mutex fixes the problem
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
* fix typo, don't pass around a pointer when it isn't necessary
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
* apply suggestions
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>