https://github.com/block/rce-agent
gRPC-based Remote Command Execution Agent
https://github.com/block/rce-agent
grpc rce-agent remote-code-execution remote-execution
Last synced: 15 days ago
JSON representation
gRPC-based Remote Command Execution Agent
- Host: GitHub
- URL: https://github.com/block/rce-agent
- Owner: block
- License: apache-2.0
- Created: 2017-02-22T21:33:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2026-03-18T22:33:37.000Z (4 months ago)
- Last Synced: 2026-07-02T04:20:11.928Z (15 days ago)
- Topics: grpc, rce-agent, remote-code-execution, remote-execution
- Language: Go
- Homepage:
- Size: 5.21 MB
- Stars: 147
- Watchers: 10
- Forks: 43
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# RCE Agent

[](https://goreportcard.com/report/github.com/square/rce-agent)
[](https://pkg.go.dev/github.com/square/rce-agent)
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.

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](https://godoc.org/github.com/square/rce-agent#TLSFiles)
to create Go `tls.Config` which makes the server (agent) verify the client's cert, too.