Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote console #66

Merged
merged 6 commits into from
Jan 8, 2024
Merged

Add remote console #66

merged 6 commits into from
Jan 8, 2024

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Jan 4, 2024

Note: This has a known issue in Windows where the local console stops taking input after the first command. I leave that as a TODO for tracking down for now.

@rsmmr rsmmr force-pushed the topic/robin/socket-comm branch 2 times, most recently from c41e9f8 to 7e7f749 Compare January 4, 2024 10:42
rsmmr added 6 commits January 8, 2024 10:12
By default, an agent now creates a UNIX socket for its console that an
external client can connect to. To connect to an already running
agent, execute `zeek-agent -r` on the same machine (note that client
and server must be running as the same user, probably `root`). Client
and server can specify a different socket path through `-s <PATH>`.
The environment variable `ZEEK_AGENT_SOCKET` can be set to specify the
path as well.

Remote consoles aren't support on Windows yet.

Internally, we switch the classic local console over to the same IPC
mechanism we now use for remote consoles, so that there's only one
implementation. For Windows, where actual IPC isn't implemented yet,
we provide a dummy implementation for this purpose that just forwards
data inside the main (and only) process.

Closes #8.
@rsmmr rsmmr force-pushed the topic/robin/socket-comm branch from 1919428 to f8a284d Compare January 8, 2024 09:12
@rsmmr rsmmr marked this pull request as ready for review January 8, 2024 09:24
@rsmmr rsmmr merged commit 9a503f3 into main Jan 8, 2024
6 checks passed
@rsmmr rsmmr deleted the topic/robin/socket-comm branch January 8, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant