HUB
Sign inSign up
service-edge logo

ferentin/service-edge

By ferentin

โ€ขUpdated 29 days ago

Ferentin Service Edge - Edge LLM Router and MCP Gateway

Image
0

2.4K

ferentin/service-edge repository overview

โ Ferentin Service Edge

A hardened, signed, self-hosted LLM routerโ  and MCP gatewayโ  container. Drop it in front of OpenAI, Anthropic, AWS Bedrock, Google Vertex, xAI, Mistral, vLLM, Ollama โ€” or any Model Context Protocol server โ€” and enforce policy, audit every call, and keep customer data inside your perimeter.

Published by Ferentinโ  โ€” the enterprise AI control plane.

Docker Pulls Image Size Platforms Signed with Cosign SBOM Java Website


โ ๐Ÿš€ Quick start

docker pull ferentin/service-edge:latest
docker volume create service-edge-certs
docker volume create service-edge-policy

docker run -d \
  --name service-edge \
  --read-only \
  --security-opt no-new-privileges:true \
  --cap-drop ALL \
  -v service-edge-certs:/opt/ferentin/certs:rw \
  -v service-edge-policy:/opt/ferentin/policy:rw \
  --tmpfs /opt/ferentin/logs:rw,uid=1000,gid=1000,noexec,nosuid,size=100m \
  --tmpfs /opt/ferentin/data:rw,uid=1000,gid=1000,noexec,nosuid,size=50m \
  --tmpfs /opt/ferentin/tmp:rw,uid=1000,gid=1000,noexec,nosuid,size=100m \
  -p 9443:9443 \
  -e SPRING_PROFILES_ACTIVE=aws-secure \
  -e ENROLLMENT_TOKEN=<paste-from-admin-console> \
  ferentin/service-edge:latest

Get an enrollment token from the Ferentin admin consoleโ , point your OpenAI-compatible SDK at https://localhost:9443/v1, and you're done.

๐Ÿ“– Full deployment recipes โ€” Docker Composeโ , Kubernetesโ , Helmโ , AWS ECSโ , GCP Cloud Run / GKE / GCEโ , Fly.ioโ , Renderโ , Railwayโ  โ€” are in the GitHub repositoryโ .


โ What this image is

The Ferentin Service Edge is the data-plane half of the Ferentin AI control planeโ . It runs at your edge โ€” inside your VPC, on-prem, in your Kubernetes cluster, anywhere your AI traffic originates โ€” and acts as:

RoleWhat it does
OpenAI-compatible API proxySpeaks /v1/chat/completions, /v1/embeddings, /v1/models โ€” point any OpenAI SDK at it
Anthropic API proxySpeaks /v1/messages for Claude SDK compatibility
MCP gatewayBrokers Model Context Protocolโ  calls to upstream MCP servers, with per-user OAuth or per-tenant API-key auth
Policy enforcement pointEvaluates DLP, model-allowlist, redaction, and rate-limit policies on every prompt/completion
Audit & telemetry tapEmits every LLM and MCP event over gRPC + mTLS to the Ferentin control plane โ€” no log scraping, no agent sidecars
Multi-provider routerRoutes by model, tenant, or policy โ€” across OpenAI, Anthropic, AWS Bedrockโ , Google Vertex, Google AI Studio, Azure OpenAI, xAI Grok, Mistral, vLLM, Ollama

Your prompts, completions, embeddings, and tool calls never leave your network. Only signed, structured telemetry does โ€” and you control which fields are exported.

โžก๏ธ Learn more on the Ferentin platform overviewโ  and the security architectureโ .


โ Why this exists

Most teams hit the same wall around the second or third LLM integration:

  • Shadow AI โ€” every team picks their own provider, no central audit trail
  • Compliance black holes โ€” SOC2, HIPAA, GDPR need provable data residency and access controls on AI traffic
  • Vendor lock-in โ€” switching from OpenAI to Anthropic means rewriting clients
  • No DLP โ€” prompts leak PII, customer data, and source code straight to third-party LLMs
  • MCP sprawl โ€” every assistant wants its own MCP server tokens, with no consent flow or session controls

The Service Edge solves all of that with one container in your network. See the LLM gateway comparisonโ  for how this approach compares to API gateways, LiteLLM, and other tools.


โ โœจ Image features

  • โœ… Java 25 LTS on a hardened Ubuntu 24.04 (Noble) base
  • โœ… Custom jlink JRE โ€” 25 modules instead of 69 (~81 % smaller, smaller attack surface)
  • โœ… AOT cache (JEP 483) โ€” pre-loaded classes + method profiles for 40โ€“60 % faster startup
  • โœ… Multi-arch โ€” linux/amd64 and linux/arm64 (Graviton-native)
  • โœ… Non-root (UID/GID 1000:1000)
  • โœ… Read-only root filesystem compatible
  • โœ… No package manager at runtime โ€” apt removed after install
  • โœ… No curl / wget in the runtime image
  • โœ… setuid/setgid bits stripped from every binary
  • โœ… JMX disabled โ€” jdk.management.agent excluded from the jlink JRE
  • โœ… Cap-drop ALL + no-new-privileges friendly
  • โœ… End-to-end TLS 1.3 (port 9443) โ€” no plaintext LLM traffic
  • โœ… Multi-tenant โ€” single image serves many tenants via policy bundles

The hardening notesโ  describe each control and how it maps to CIS Docker Benchmark and STIG.


โ ๐Ÿ”’ Supply chain security & image signing

Every published image is keyless-signed with Sigstore Cosignโ  using GitHub Actions OIDC, and ships with an attached SBOM (SPDX format).

โ Verify the signature
# Install cosign (one-time)
brew install cosign   # or: go install github.com/sigstore/cosign/v2/cmd/cosign@latest

# Verify
cosign verify \
  --certificate-identity-regexp 'https://github.com/ferentin-net/ferentin-platform/.github/workflows/build-service-edge-image.yml@refs/tags/service-edge-.*' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  ferentin/service-edge:latest

A valid signature proves:

  1. The image was built by the build-service-edge-image.yml workflow in the ferentin-net/ferentin-platform repository,
  2. From a release tag (service-edge-X.Y.Z),
  3. On a GitHub-hosted runner under Sigstore's transparency log Rekorโ ,
  4. Bit-for-bit identical to what was signed โ€” pinned by sha256 digest.

Pin to a digest in production:

docker pull ferentin/service-edge@sha256:<digest>
โ Inspect the SBOM
docker buildx imagetools inspect \
  --format '{{ json .SBOM }}' \
  ferentin/service-edge:latest

Or, with Cosign:

cosign download sbom ferentin/service-edge:latest > sbom.spdx.json
โ Reproducible builds
  • Base images pinned by digest in the Dockerfile (not :latest)
  • Gradle distribution pinned by SHA-256
  • JAR built on a native runner then copied into the image
  • OCI labels record org.opencontainers.image.source, vendor, version, and security posture flags (com.ferentin.security.non-root=true, read-only-rootfs=true)

Full details in SECURITY.mdโ  and the Ferentin security pageโ .


โ ๐Ÿท๏ธ Tags & versioning

TagMeaning
latestMost recent stable release
X.Y.Z (e.g., 0.5.2)Immutable, signed semver release
X.YLatest patch in a minor line
XLatest minor in a major line
sha-<short>Git commit reference (forensic use)
*-rc*, *-alpha*, *-beta*Pre-release โ€” not tagged latest

For production, always pin to either X.Y.Z or a sha256: digest โ€” never latest. Browse all tags on the Tags tabโ .

Releases are also mirrored to:

  • GitHub Container Registry โ€” ghcr.io/ferentin-net/service-edge
  • Amazon ECR Public โ€” for customers running in AWS

โ ๐Ÿ“ Ports & volumes

PortPurposeExpose externally?
9443TLS-terminated LLM / MCP API (primary)Yes โ€” clients connect here
9080Health & actuator endpointsNo โ€” internal only
VolumeTypePurpose
/opt/ferentin/certsPersistentmTLS certificates from edge enrollment โ€” must survive restarts
/opt/ferentin/policyPersistent or tmpfsHot-reloadable policy bundle
/opt/ferentin/logstmpfsApplication logs
/opt/ferentin/datatmpfsRuntime data
/opt/ferentin/tmptmpfsJava temp files

โ โš™๏ธ Configuration (essentials)

VariableRequiredDescription
ENROLLMENT_TOKENFirst runJWT issued by your Ferentin admin console
SPRING_PROFILES_ACTIVEYesaws-secure (production) or nginx (dev)
FERENTIN_KEY_PASSPHRASEYesPassphrase that decrypts the edge's at-rest cred cache
EDGE_CA_BUNDLEOptionalCustom CA bundle (PEM) for corporate proxies
JAVA_OPTSOptionalExtra JVM flags (merged with sensible defaults)

After first enrollment, EDGE_ID, TENANT_ID, and SITE_ID are persisted in /opt/ferentin/certs/edge-config.properties.

Full reference: environment variablesโ  ยท TLS configurationโ .


โ ๐Ÿฉบ Health checks

curl https://localhost:9443/actuator/health
curl https://localhost:9443/actuator/health/liveness
curl https://localhost:9443/actuator/health/readiness

The Dockerfile ships a built-in HEALTHCHECK that probes TCP 9080. Container orchestrators should use the /actuator/health/* endpoints for finer signals.


โ ๐Ÿ”— Resources

โ Documentation
โ Source & releases
โ Compliance & policy
โ Support

โ License

Proprietary. Commercial use of the Service Edge container requires an active Ferentin subscription. See ferentin.com/terms-of-serviceโ  or contact [email protected]โ .


Keywords: LLM gateway ยท AI gateway ยท OpenAI-compatible proxy ยท Anthropic Claude proxy ยท MCP gateway ยท Model Context Protocol ยท self-hosted AI proxy ยท enterprise AI control plane ยท LLM policy enforcement ยท LLM DLP ยท AI audit logging ยท multi-provider LLM router ยท zero-trust AI ยท mTLS ยท cosign-signed container ยท SBOM ยท Java 25 ยท Spring Boot ยท Sigstore ยท supply-chain security ยท GDPR ยท SOC2 ยท HIPAA ยท data sovereignty ยท AI governance ยท Bedrock proxy ยท Vertex AI gateway ยท xAI Grok ยท Mistral ยท vLLM ยท Ollama. Maintained by Ferentinโ .

Tag summary

Content type

Image

Digest

sha256:3c4f193fdโ€ฆ

Size

281.5 MB

Last updated

29 days ago

docker pull ferentin/service-edge