{"id":47978738,"url":"https://github.com/zoobz-io/aegis","last_synced_at":"2026-05-07T02:01:57.515Z","repository":{"id":339300784,"uuid":"1149189310","full_name":"zoobz-io/aegis","owner":"zoobz-io","description":"Service mesh for Go microservices — mTLS everywhere, zero configuration","archived":false,"fork":false,"pushed_at":"2026-05-06T15:50:45.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T16:45:20.069Z","etag":null,"topics":["go","golang","grpc","microservices","mtls","service-mesh","zoobzio"],"latest_commit_sha":null,"homepage":"https://aegis.zoobz.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoobz-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-03T20:30:44.000Z","updated_at":"2026-05-06T15:42:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zoobz-io/aegis","commit_stats":null,"previous_names":["zoobzio/aegis","zoobz-io/aegis"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zoobz-io/aegis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Faegis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Faegis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Faegis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Faegis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoobz-io","download_url":"https://codeload.github.com/zoobz-io/aegis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Faegis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32719572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"online","status_checked_at":"2026-05-07T02:00:07.170Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","grpc","microservices","mtls","service-mesh","zoobzio"],"created_at":"2026-04-04T10:59:37.721Z","updated_at":"2026-05-07T02:01:57.509Z","avatar_url":"https://github.com/zoobz-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aegis\n\n[![CI Status](https://github.com/zoobz-io/aegis/workflows/CI/badge.svg)](https://github.com/zoobz-io/aegis/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/zoobz-io/aegis/graph/badge.svg?branch=main)](https://codecov.io/gh/zoobz-io/aegis)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zoobz-io/aegis)](https://goreportcard.com/report/github.com/zoobz-io/aegis)\n[![CodeQL](https://github.com/zoobz-io/aegis/workflows/CodeQL/badge.svg)](https://github.com/zoobz-io/aegis/security/code-scanning)\n[![Go Reference](https://pkg.go.dev/badge/github.com/zoobz-io/aegis.svg)](https://pkg.go.dev/github.com/zoobz-io/aegis)\n[![License](https://img.shields.io/github/license/zoobz-io/aegis)](LICENSE)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/zoobz-io/aegis)](go.mod)\n[![Release](https://img.shields.io/github/v/release/zoobz-io/aegis)](https://github.com/zoobz-io/aegis/releases)\n\nService mesh for Go microservices — mTLS everywhere, zero configuration. Nodes discover each other, authenticate via certificates, and call domain services without managing PKI infrastructure.\n\n## Zero-Trust by Default\n\n```go\nnode, _ := aegis.NewNodeBuilder().\n    WithID(\"api-1\").\n    WithName(\"API Server\").\n    WithAddress(\"localhost:8443\").\n    WithServices(aegis.ServiceInfo{Name: \"identity\", Version: \"v1\"}).\n    WithCertDir(\"./certs\").\n    Build()\n\nnode.StartServer()\n// Certificates generated automatically. All connections use mTLS.\n// Other nodes can now discover this service and call it securely.\n```\n\n## Install\n\n```bash\ngo get github.com/zoobz-io/aegis\n```\n\nRequires Go 1.24+.\n\n## Quick Start\n\nA provider node exposes a service. A consumer node discovers and calls it.\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"log\"\n\n    \"github.com/zoobz-io/aegis\"\n    identity \"github.com/zoobz-io/aegis/proto/identity\"\n    \"google.golang.org/grpc\"\n)\n\nfunc main() {\n    // Provider: morpheus serves identity\n    morpheus, _ := aegis.NewNodeBuilder().\n        WithID(\"morpheus-1\").\n        WithName(\"Morpheus\").\n        WithAddress(\"localhost:8443\").\n        WithServices(aegis.ServiceInfo{Name: \"identity\", Version: \"v1\"}).\n        WithServiceRegistration(func(s *grpc.Server) {\n            identity.RegisterIdentityServiceServer(s, \u0026myIdentityServer{})\n        }).\n        WithCertDir(\"./certs\").\n        Build()\n\n    morpheus.StartServer()\n    defer morpheus.Shutdown()\n\n    // Consumer: vicky calls identity service\n    vicky, _ := aegis.NewNodeBuilder().\n        WithID(\"vicky-1\").\n        WithName(\"Vicky\").\n        WithAddress(\"localhost:9443\").\n        WithCertDir(\"./certs\").\n        Build()\n\n    pool := aegis.NewServiceClientPool(vicky)\n    defer pool.Close()\n\n    client := aegis.NewServiceClient(pool, \"identity\", \"v1\", identity.NewIdentityServiceClient)\n\n    // Get a connection (round-robin across providers)\n    ctx := context.Background()\n    identityClient, _ := client.Get(ctx)\n    resp, _ := identityClient.ValidateSession(ctx, \u0026identity.ValidateSessionRequest{\n        Token: \"user-session-token\",\n    })\n\n    log.Printf(\"Session valid: %v, user: %s\", resp.Valid, resp.UserId)\n}\n```\n\n## Capabilities\n\n| Capability | Description | Docs |\n|------------|-------------|------|\n| Node identity | Build nodes with ID, name, type, address | [node_builder.go](node_builder.go) |\n| Automatic mTLS | Certificates generated on first run, loaded thereafter | [tls.go](tls.go) |\n| Service registry | Declare services, discover providers across mesh | [service.go](service.go) |\n| Topology sync | Nodes share topology; version-based merge | [topology.go](topology.go) |\n| Health checks | Extensible health checker interface | [health.go](health.go) |\n| Service client | Connection pooling, round-robin load balancing | [client.go](client.go) |\n| Caller identity | Extract calling node from mTLS context | [context.go](context.go) |\n\n## Why aegis?\n\n- **Automatic mTLS** — Nodes generate and exchange certificates on startup. No PKI infrastructure to manage.\n- **Service discovery built-in** — Declare services, query providers, topology syncs across the mesh.\n- **One import** — Node, peer connections, health checks, and gRPC server in a single package.\n- **Caller identity on every request** — `CallerFromContext(ctx)` extracts the calling node from mTLS certificates.\n- **Round-robin client pooling** — Service clients load-balance across providers automatically.\n\n## The Ecosystem\n\naegis is the transport layer. Domain services build on top:\n\n| Package | Role |\n|---------|------|\n| [capitan](https://github.com/zoobz-io/capitan) | Event coordination within a process |\n| [herald](https://github.com/zoobz-io/herald) | Bridge capitan events to message brokers (future: aegis provider) |\n| [morpheus](https://github.com/zoobz-io/morpheus) | Identity service — implements `IdentityService` |\n| [vicky](https://github.com/zoobz-io/vicky) | Storage service — consumes identity via mesh |\n\n## Documentation\n\n**Learn**\n- [Overview](docs/1.learn/1.overview.md) — What aegis is and why\n- [Quickstart](docs/1.learn/2.quickstart.md) — Build your first mesh\n- [Concepts](docs/1.learn/3.concepts.md) — Nodes, peers, topology, services\n- [Architecture](docs/1.learn/4.architecture.md) — How it works internally\n\n**Guides**\n- [Testing](docs/2.guides/1.testing.md) — Testing code that uses aegis\n- [Troubleshooting](docs/2.guides/2.troubleshooting.md) — Common errors and solutions\n- [Services](docs/2.guides/3.services.md) — Defining and consuming services\n- [Certificates](docs/2.guides/4.certificates.md) — Certificate management\n\n**Reference**\n- [API](docs/3.reference/1.api.md) — Function signatures\n- [Types](docs/3.reference/2.types.md) — Type definitions\n- [pkg.go.dev](https://pkg.go.dev/github.com/zoobz-io/aegis) — Generated documentation\n\n## Contributing\n\nContributions welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nMIT License — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoobz-io%2Faegis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoobz-io%2Faegis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoobz-io%2Faegis/lists"}