# ego **Repository Path**: DaiSJ29/ego ## Basic Information - **Project Name**: ego - **Description**: No description available - **Primary Language**: Unknown - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-08 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EGo EGo logo [![GitHub Actions Status][github-actions-badge]][github-actions] [![GitHub license][license-badge]](LICENSE) [![Go Report Card][go-report-card-badge]][go-report-card] [![PkgGoDev][go-pkg-badge]][go-pkg] [![Discord Chat][discord-badge]][discord] [EGo](https://www.edgeless.systems/products/ego/) is a framework for building *confidential apps* in Go. Confidential apps run in always-encrypted and verifiable enclaves on Intel SGX-enabled hardware. EGo simplifies enclave development by providing two user-friendly tools: * `ego-go`, an adapted Go compiler that builds enclave-compatible executables from a given Go project - while providing the same CLI as the original Go compiler. * `ego`, a CLI tool that handles all enclave-related tasks such as signing and enclave creation. Building and running a confidential Go app is as easy as: ```sh ego-go build hello.go ego sign hello ego run hello ``` ## Install ### Install the snap The easiest way to install EGo is via the snap: ```sh sudo snap install ego-dev --classic ``` You also need `gcc` and `libcrypto`. On Ubuntu install them with: ```sh sudo apt install build-essential libssl-dev ``` ### Install the DEB package If you're on Ubuntu 20.04, 22.04, or 24.04, you can install the DEB package: ```bash sudo mkdir -p /etc/apt/keyrings wget -qO- https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo tee /etc/apt/keyrings/intel-sgx-keyring.asc > /dev/null echo "deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/intel-sgx.list sudo apt update EGO_DEB=ego_1.7.0_amd64_ubuntu-$(lsb_release -rs).deb wget https://github.com/edgelesssys/ego/releases/download/v1.7.0/$EGO_DEB sudo apt install ./$EGO_DEB build-essential libssl-dev ``` ### Build from source *Prerequisite*: [Edgeless RT](https://github.com/edgelesssys/edgelessrt) is installed and sourced. ```sh mkdir build cd build cmake .. make make install ``` ### Build via Docker You can reproducibly build the latest release: ```sh cd dockerfiles DOCKER_BUILDKIT=1 docker build --target export -o. - < Dockerfile ``` Or build the latest master: ```sh cd dockerfiles DOCKER_BUILDKIT=1 docker build --target export --build-arg egotag=master --build-arg erttag=master -o. - < Dockerfile ``` This outputs the DEB package for Ubuntu 22.04. For Ubuntu 20.04, replace `Dockerfile` with `Dockerfile.focal` in the above commands. Optionally build the `ego-dev` and `ego-deploy` images: ```sh DOCKER_BUILDKIT=1 docker build --target dev -t ghcr.io/edgelesssys/ego-dev - < Dockerfile DOCKER_BUILDKIT=1 docker build --target deploy -t ghcr.io/edgelesssys/ego-deploy - < Dockerfile ``` ## Getting started Now you're ready to build applications with EGo! To start, check out the following samples: * [helloworld](samples/helloworld) is a minimal example of an enclave application. * [remote_attestation](samples/remote_attestation) shows how to use the basic remote attestation API of EGo. * [attested_tls](samples/attested_tls) is similar to the above, but uses a higher level API to establish an attested TLS connection. * [vault](samples/vault) demonstrates how to port a Go application exemplified by Hashicorp Vault. * [estore](samples/estore) shows how to securely persist data using [EStore](https://github.com/edgelesssys/estore). * [wasmer](samples/wasmer) and [wasmtime](samples/wasmtime) show how to run WebAssembly inside EGo. * [embedded_file](samples/embedded_file) shows how to embed files into an EGo enclave. * [reproducible_build](samples/reproducible_build) builds the helloworld sample reproducibly, resulting in the same UniqueID. * [cgo](samples/cgo) demonstrates the experimental cgo support. * [azure_attestation](samples/azure_attestation) shows how to use Microsoft Azure Attestation for remote attestation. ## Documentation * The [EGo documentation](https://docs.edgeless.systems/ego) covers building, signing, running, and debugging confidential apps. * The [EGo API](https://pkg.go.dev/github.com/edgelesssys/ego) provides access to *remote attestation* and *sealing* to your confidential app at runtime. ## Beyond EGo * Use [MarbleRun](https://github.com/edgelesssys/marblerun) to create distributed EGo applications and run them on Kubernetes. * Use [EStore](https://github.com/edgelesssys/estore) to securely persist your application's data. * Not only using Go? Check out [Contrast](https://github.com/edgelesssys/contrast) to run your confidential containers on Kubernetes. ## Community & help * Got a question? Please get in touch via [Discord][discord] or file an [issue](https://github.com/edgelesssys/ego/issues). * If you see an error message or run into an issue, please make sure to create a [bug report](https://github.com/edgelesssys/ego/issues). * Get the latest news and announcements on [Twitter](https://twitter.com/EdgelessSystems), [LinkedIn](https://www.linkedin.com/company/edgeless-systems/) or sign up for our monthly [newsletter](https://www.edgeless.systems/#newsletter-signup). * Visit our [blog](https://blog.edgeless.systems/) for technical deep-dives and tutorials. ## Contribute * Read [`CONTRIBUTING.md`](CONTRIBUTING.md) for information on issue reporting, code guidelines, and our PR process. * Pull requests are welcome! You need to agree to our [Contributor License Agreement](https://cla-assistant.io/edgelesssys/ego). * This project and everyone participating in it are governed by the [Code of Conduct](/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. * Please report any security issue via a [private GitHub vulnerability report](https://github.com/edgelesssys/ego/security/advisories/new) or write to . [github-actions]: https://github.com/edgelesssys/ego/actions [github-actions-badge]: https://github.com/edgelesssys/ego/workflows/Unit%20Tests/badge.svg [go-pkg]: https://pkg.go.dev/github.com/edgelesssys/ego [go-pkg-badge]: https://pkg.go.dev/badge/github.com/edgelesssys/ego [go-report-card]: https://goreportcard.com/report/github.com/edgelesssys/ego [go-report-card-badge]: https://goreportcard.com/badge/github.com/edgelesssys/ego [license-badge]: https://img.shields.io/github/license/edgelesssys/ego [discord]: https://discord.gg/rH8QTH56JN [discord-badge]: https://img.shields.io/badge/chat-on%20Discord-blue