Skip to content

block/rce-agent

Folders and files

NameName
Last commit message
Last commit date
Jun 24, 2024
Mar 18, 2023
Mar 18, 2023
Mar 18, 2023
Mar 18, 2023
Jan 19, 2020
Dec 19, 2023
Feb 27, 2019
Feb 22, 2017
Apr 3, 2023
Mar 18, 2023
Mar 18, 2023
Feb 27, 2025
Feb 27, 2025
Jan 19, 2020
Mar 18, 2023
Mar 18, 2023
Mar 18, 2023

RCE Agent

Build and Tests Go Report Card Go Reference

rce-agent is a gRPC-based Remote Command Execution (RCE) client and server. The server (or "agent") runs on a remote host and executes a whitelist of shell commands specified in a file. The client calls the agent to execute whitelist commands. TLS is used to secure and authenticate both client and server.

rce-agent replaces SSH and other methods of remote code execution. There are no passwords—only TLS certificates—and commands are limited to a whitelist. This eliminates the need for SSH keys, passwords, or forwarding.

RCE Agent diagram

This package is meant to be integrated into your code. The rce.Client and rce.Server objects do all the heavy lifting so your client and agent code can focus on their domain-specific logic. See example/ for example code.

RCE Agent is also meant to be used with your private certificate authority (CA) for TLS-encrypted communication and mutual authentication of client and agent. (Setting up a private CA is beyond the scope of this project, but we highly suggest you use one!) Normally, only the client verifies the server's TLS certificate (cert). For additional security, your code should use rce.TLSFiles to create Go tls.Config which makes the server (agent) verify the client's cert, too.

About

gRPC-based Remote Command Execution Agent

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks