bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
698 stars 115 forks source link

Events, Hooks, Tiggers and Status #44

Open Zetanova opened 2 years ago

Zetanova commented 2 years ago

Is there any plan to emit events or execute some hooks/triggers and query the connection status

I am looking for a possibility to get a "connecting" event to be able to start the VM for the connecting user and be able to query disconnected sessions to stop VM's after a period.

bolkedebruin commented 1 year ago

While not very cleanly, the connecting event is logged. You could use Establishing connection to as a trigger for starting a VM/Pod and use Close channel for terminating VMs. Obviously, this is the happy flow and it could work a bit nicer if hooks/triggers are available (which they are not currently).