Skip to content

Architecture

Shoehorn is built as a set of focused Go microservices communicating over gRPC, fronted by a REST API gateway and a Svelte single-page application.

System overview

Service Port (HTTP/gRPC) Purpose
API 8080 / - REST API gateway. Routes requests to microservices via gRPC. Handles authentication, authorization, tenant context, and search (via Meilisearch).
Worker 8085 / 9085 Background job processor and event streaming manager. Handles async tasks like manifest processing, scorecard evaluation, and data enrichment, and publishes/consumes domain events via Redpanda.
Crawler 8086 / 9086 Repository discovery and GitHub integration. Fetches manifests, READMEs, and repository metadata.
Forge 8087 / 9087 Workflow engine and scaffolding. Manages molds (templates), workflow execution, and approval flows.

Authentication flow

Kubernetes data flow

Entity discovery flow

Primary data store. Tenant data is isolated at the database level, not just in application code.

  • pgaudit: SQL audit logging enabled in production

Full-text search engine providing sub-50ms fuzzy search.

  • Indexes: entities, teams, documentation
  • Supports typo-tolerance, faceted filtering, and ranking rules

Redis-compatible in-memory cache.

  • Entity and repository data caching
  • Session data (when not using JWT)
  • Rate limiting counters

Kafka-compatible event streaming platform.

  • Domain events (entity created, updated, deleted)
  • Webhook delivery
  • Async job queuing

Policy-as-code authorization engine.

  • RBAC policies defined in YAML
  • Evaluates permissions per request
  • Supports resource-level and action-level policies

Deployment architecture