Turn on API Discovery for a running service with one switch and let Elchi build the API inventory from live traffic: methods and paths, templated IDs, query parameters, status codes and exposure — no OpenAPI spec needed.
Elchi API Discovery: know every API you actually expose.
Turns live traffic into a continuously scored API inventory: shadow endpoints, missing auth, PII in URLs, drift — with a one-click path from finding to protection.
ELCHI API DISCOVERY
Add-on · Requires Elchi CoreAdd-on to Elchi Core. Built from Envoy access-log streams — no SDKs, no code changes, no traffic interception.
- Zero Instrumentation
- A–F Security Score
- OpenAPI 3.0.3 Export
- Drift Detection
What is Elchi API Discovery?
Elchi API Discovery builds an inventory of the API operations your Envoy proxies actually serve, from Envoy’s access logs. Each listener with discovery turned on sends Access Log Service (ALS v3) records over gRPC to elchi-collector, a central service shared by the fleet. The collector normalizes paths into operations such as GET /users/{id}, records which authentication schemes it saw, detects personal data in URLs, scores risk, and writes the catalog to MongoDB and per-event rows to ClickHouse. The UI shows the confirmed catalog apart from scanner noise, new and silent endpoints, operations that accepted anonymous traffic, coverage against the OpenAPI specs you import, and an OpenAPI 3.0.3 export of what it observed. Discovery is passive and reads metadata only: it is not in the request path and cannot block or slow a request. Findings can be turned into a draft API Security (Shield) policy.
What the inventory shows
Traffic-based discovery
The inventory is built from Envoy access-log (ALS) streams. Path normalization turns IDs, UUIDs, and tokens into {placeholders}, letter+digit ids are learned per position; gRPC methods and GraphQL operations are separate operations.
Attack surface separation
Operations that matched a configured Envoy route are kept apart from scanner and probe noise, so the catalog stays clean while you still see what attackers are trying.
Auth coverage
Every endpoint is tagged with its observed auth schemes (JWT, mTLS, API key, Basic, session cookie), so accepted anonymous writes and inconsistently authenticated surfaces stand out.
PII inventory
Know which endpoints carry personal data in paths and query strings, by category — including Turkish national ids (TCKN) and mobile numbers — with per-detector switches and credential-in-URL detection.
Risk flags & scoring
Detectors with false-positive-first defaults flag BOLA, BFLA, brute force, weak TLS and more. Findings age from active to historical, endpoints get active threat and exposure scores, and the surface gets a 0–100 score with an A–F grade.
Drift & change detection
Daily snapshots and a change feed: new and removed operations, auth downgrades, new PII and flags, zombie resurrections and learned-template merges.
Consumers & enumeration
Per-consumer behavior with machine-vs-human classification and enumeration, scraping and auth-failure indicators — plus bot, scanner, geo / ASN and threat-intel views.
OpenAPI spec coverage
Import versioned OpenAPI / Swagger specs scoped to listeners, hosts and paths; see what is documented, undocumented, unused or drifting from its contract.
Ownership & teams
Assign teams, owners, criticality and data classes by rule or per endpoint, see risk per team, and export the catalog as CSV.
OpenAPI 3.0.3 export
Generate an OpenAPI spec from confirmed endpoints — paths, parameters, methods, status codes, and auth schemes reconstructed from real traffic.
One-click protection
Turn findings into a draft Elchi API Security policy: matching engines are pre-selected per endpoint with the rationale attached.
IN THE PRODUCT
The API inventory in the UI


How does discovery get its data without touching requests?
It uses the access-log sink Envoy already has. When you enable api_discovery on a listener’s HTTP connection manager, Elchi wires an HTTP gRPC access-log sink to the collector, with the request and response headers the collector reads. Envoy buffers log records and flushes them in the background, so the request path does not wait on the collector. There is no ext_proc call, no SDK and no change to application code.
Set use_remote_address and xff_num_trusted_hops on the listener so the recorded client IP is the real caller rather than the last proxy.
What does API Discovery need to run?
The elchi-collector service, MongoDB for the endpoint catalog and the collector’s runtime configuration, and ClickHouse for per-event rows and the time-series rollups behind the dashboards. The collector is stateless and scales out: the Helm chart runs three replicas by default, and ALS streams from the edges are balanced across them.
Raw events are kept for 7 days by default; the catalog has no TTL. Path normalization rules, PII switches and detector thresholds live in one MongoDB document and reload without a restart.
What does it store, and what does it never store?
Only metadata. Request and response bodies are never shipped, because ALS carries none. Query-string values are not stored; only accepted parameter names are kept. Fourteen sensitive headers, among them Authorization, Cookie and X-Api-Key, are dropped before anything is persisted, and their presence is recorded as an observed auth scheme without the value. Client identifiers are hashed with a salt you set.
What are the limits of API Discovery?
The inventory only knows what has been called, so it needs a representative window, including nightly jobs and admin flows, before it is complete. PII detection looks at paths and query strings, not at headers or bodies. The catalog is bounded by a cardinality cap, 100,000 endpoints per collector by default. Discovery observes and scores but does not enforce: blocking and redaction belong to API Security (Shield), and the suggest-policy bridge creates a draft Shield policy from the findings.
From access log to inventory
Observe
Envoy streams access logs to the collector.
Normalize
Paths are normalized, enriched with GeoIP and threat intel.
Score
Detectors flag risk; endpoints and the whole surface get graded.
Act
Export OpenAPI or generate a Shield policy draft.
Questions about Elchi API Discovery
Does it cover gRPC and GraphQL?
Yes. gRPC methods and GraphQL operations (from the operation-name header) are kept as separate operations in the inventory.
How do I find shadow APIs?
Import your OpenAPI or Swagger specs with a scope (listener, host and path prefixes). Every confirmed operation inside a spec’s scope that matches no operation in it is marked Undocumented.
Can I export what it found?
Yes. Export OpenAPI downloads the confirmed inventory as an OpenAPI 3.0.3 document in YAML or JSON, filtered by listener and host, and the catalog also exports as CSV.
Talk to us about a demo.
Tell us how many Envoy hosts you run, which Envoy versions, and which add-ons you are evaluating. We reply with a demo or a proof-of-concept plan for your setup. To try it yourself first, the quickstart installs the free tier.