Ferentin Service Edge - Edge LLM Router and MCP Gateway
2.4K
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 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โ .
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:
| Role | What it does |
|---|---|
| OpenAI-compatible API proxy | Speaks /v1/chat/completions, /v1/embeddings, /v1/models โ point any OpenAI SDK at it |
| Anthropic API proxy | Speaks /v1/messages for Claude SDK compatibility |
| MCP gateway | Brokers Model Context Protocolโ calls to upstream MCP servers, with per-user OAuth or per-tenant API-key auth |
| Policy enforcement point | Evaluates DLP, model-allowlist, redaction, and rate-limit policies on every prompt/completion |
| Audit & telemetry tap | Emits every LLM and MCP event over gRPC + mTLS to the Ferentin control plane โ no log scraping, no agent sidecars |
| Multi-provider router | Routes 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โ .
Most teams hit the same wall around the second or third LLM integration:
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.
jlink JRE โ 25 modules instead of 69 (~81 % smaller, smaller attack surface)linux/amd64 and linux/arm64 (Graviton-native)1000:1000)apt removed after installcurl / wget in the runtime imagejdk.management.agent excluded from the jlink JREno-new-privileges friendly9443) โ no plaintext LLM trafficThe hardening notesโ describe each control and how it maps to CIS Docker Benchmark and STIG.
Every published image is keyless-signed with Sigstore Cosignโ using GitHub Actions OIDC, and ships with an attached SBOM (SPDX format).
# 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:
build-service-edge-image.yml workflow in the ferentin-net/ferentin-platform repository,service-edge-X.Y.Z),sha256 digest.Pin to a digest in production:
docker pull ferentin/service-edge@sha256:<digest>
docker buildx imagetools inspect \
--format '{{ json .SBOM }}' \
ferentin/service-edge:latest
Or, with Cosign:
cosign download sbom ferentin/service-edge:latest > sbom.spdx.json
:latest)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โ .
| Tag | Meaning |
|---|---|
latest | Most recent stable release |
X.Y.Z (e.g., 0.5.2) | Immutable, signed semver release |
X.Y | Latest patch in a minor line |
X | Latest 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:
ghcr.io/ferentin-net/service-edge| Port | Purpose | Expose externally? |
|---|---|---|
9443 | TLS-terminated LLM / MCP API (primary) | Yes โ clients connect here |
9080 | Health & actuator endpoints | No โ internal only |
| Volume | Type | Purpose |
|---|---|---|
/opt/ferentin/certs | Persistent | mTLS certificates from edge enrollment โ must survive restarts |
/opt/ferentin/policy | Persistent or tmpfs | Hot-reloadable policy bundle |
/opt/ferentin/logs | tmpfs | Application logs |
/opt/ferentin/data | tmpfs | Runtime data |
/opt/ferentin/tmp | tmpfs | Java temp files |
| Variable | Required | Description |
|---|---|---|
ENROLLMENT_TOKEN | First run | JWT issued by your Ferentin admin console |
SPRING_PROFILES_ACTIVE | Yes | aws-secure (production) or nginx (dev) |
FERENTIN_KEY_PASSPHRASE | Yes | Passphrase that decrypts the edge's at-rest cred cache |
EDGE_CA_BUNDLE | Optional | Custom CA bundle (PEM) for corporate proxies |
JAVA_OPTS | Optional | Extra 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โ .
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.
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โ .
Content type
Image
Digest
sha256:3c4f193fdโฆ
Size
281.5 MB
Last updated
29 days ago
docker pull ferentin/service-edge