Commit Graph

12 Commits

Author SHA1 Message Date
7c387d5bb4 added environment info from the client. 2024-08-10 13:00:48 +02:00
86535683fa ClientId is now a string instead of an int. 2024-08-07 21:00:41 +02:00
7af575119d eliminated the username. 2024-08-06 22:38:59 +02:00
Erik Brakkee
3c803d6125 removed password based access
authorized keys can now be modified within the session.
keep last set of keys when no valid keys were found and keys are changed during the session .
2024-08-06 22:03:36 +02:00
ff97c1ccd2 Now by default wsproxy uses a specific protocol to establish connections to the server. It does this by adding the ?wsproxy query parameter.
The server then sends it the protocol version and the client connection info describing whether an agent was found or not. This improves usability for users.

With the --raw option it bypasses this query parameter and wsproxy then works in the old way as a simple stdio-websocket connector. It then still works with converge server but can also be used for simple websocket troubleshooting.
2024-08-01 20:22:41 +02:00
Erik Brakkee
f0dd810541 many small changes
* removed the Async utility
* now using Ping message to webclient for keep alive instaed of actual content
* added remote shell to AgentInfo
* retry of connections to the agent
* better logging for SynchronizeStreams
2024-07-31 19:30:38 +02:00
367043e0c5 When a duplicate id is requested the server now allocates a new unique id so that the session can be handled anyway. 2024-07-30 19:45:25 +02:00
bf5120aa5b refactoring towards being able to send events from Admin to UI (websocket) without exposing connection info but only metadata. 2024-07-30 19:03:21 +02:00
7a51e3ac45 Unique ids for clients generated by converge server and made available to the ssh session through a net.Conn extension that passes the ID to the SSH session through the LocalAddr(). 2024-07-27 22:37:40 +02:00
5a492f3855 initialization of username, password on client (from server) and initialization of agentinfo on server is now done as soon as the agent registered and not through a side channel.
Making use of some simple utilities for GOB to make it easy to send objects over the line.
2024-07-27 20:46:53 +02:00
621bbd8ca6 GOB channel for easily and asynchronously using GOB on a single network connection, also dealing with timeouts and errors in a good way.
Protocol version is now checked when the agent connects to the converge server.

Next up: sending connection metadata and username password from server to agent and sending environment information back to the server. This means then that the side channel will only be used for expiry time messages and session type with the client id passed in so the converge server can than correlate the results back to the correct channel.
2024-07-27 11:21:35 +02:00
Erik Brakkee
2ed81c3174 communication between agent and server. Removed the flags libray for command-line parsing.
Heartbeat mechanism from client to server over the custom connection for sending events to guarantee that the connectoin stays up.
2024-07-25 19:51:11 +02:00