Ferrum Family · Configuration migration

Ferrum Migration

Translate your config. Move to the Edge.

An offline command-line tool that reads the configuration you already run on Kong Gateway, NGINX, Traefik, Envoy or an Istio ingress gateway and writes Ferrum Edge resources, a matching ferrum.conf and a migration report. Point Ferrum Edge at the output and your own routes, upstreams and policies are running on it, without rewriting them by hand. Whatever the tool cannot reproduce faithfully is refused or reported, never quietly opened up.

Source only v0.1.0 on main Python CLI Tested with Edge v0.9.21 PolyForm Noncommercial
Status
Source onlyv0.1.0 is merged to main; no release yet
Ships as
ferrum-migrate CLIPython 3.11+ and PyYAML; no network, database or subprocess use
Migrates from
Five sourcesKong, NGINX, Traefik, Envoy and Istio ingress, HTTP(S) only
Ferrum Edge
v0.9.21Output admitted by ferrum-edge validate and served on loopback in CI
Source only; no release yet. Version 0.1.0 was merged to main through pull request #1 on November 25, 2026; no GitHub release or package has been published. CI on main at 48e4301eb0cc76d2724cb6de9b0e2abab9604745 passed all five jobs: the unit and harness tests on Linux with Python 3.11, 3.12 and 3.13 and on macOS with Python 3.12, plus a Linux job that checks converted output with the published, checksum-pinned Ferrum Edge v0.9.21 binary and serves it on loopback. Behavior has been checked only with original synthetic fixtures, not with real deployments, so equivalence with your source configuration is not established. Treat the output as a starting point for a trial, and read every error in the report before serving real traffic. The compatibility matrix lists every product's pairing.
One command per gateway

Your existing routes on Ferrum Edge, in minutes instead of weeks

The slowest part of evaluating a new gateway is rebuilding what you already have. Ferrum Migration reads a Kong declarative file, an nginx.conf, a Traefik dynamic file, an Envoy bootstrap or Istio networking CRDs and produces everything Ferrum Edge needs to boot on the same routes.

  • Real traffic shape: hosts, paths, methods, upstreams, weights, health checks and timeouts carry over
  • Real policy: key and JWT auth, ACLs, IP rules, rate limits, CORS, header transforms and body limits map to Ferrum plugins
  • Honest gaps: each approximation, refusal and omission is listed with the action to take
ferrum-migration 0.1.0: kong -> Ferrum Edge
  source_routes: 4
  migrated_routes: 3
  refused_routes: 1
  fail_closed_placeholders: 1
  proxies: 5
  upstreams: 1
  consumers: 2
  plugin_configs: 9
  caveats: 3 error, 3 warning, 5 info
Wrote ferrum.conf, migration-report.json, migration-report.md,
resources.yaml to ./ferrum-out
$ echo $?
4
Output of the v0.1.0 CLI on the repository's synthetic Kong fixture (output path shortened). Exit code 4 is expected: the fixture deliberately includes an oauth2 route that has no safe Ferrum equivalent.

Skip the Rewrite, Keep the Review

Ferrum Migration does the mechanical translation, so your evaluation time goes into how Ferrum Edge behaves with your traffic, not into retyping routes.

Five sources, one CLI

Kong DB-less files and decK dumps, NGINX OSS, Traefik's file provider, Envoy v3 static bootstraps and Istio Gateway/VirtualService CRDs, all through --from.

Ready to boot

resources.yaml holds proxies, upstreams, consumers and plugin configs; ferrum.conf sets ports, TLS paths and body limits for the run mode you choose. Neither contains secrets.

A report you can act on

migration-report.md and .json sort every finding into error, warning and info, name the source line or resource, and say what to do next.

Fails closed

A route it cannot translate becomes a placeholder on the same hosts and path that answers HTTP 503 before authentication, so that traffic can never fall through to a broader, less protected route.

Precedence is checked

First-match order (Envoy, Istio), router priorities (Traefik) and regex-versus-prefix rules (NGINX, Kong) are compared with Ferrum's specificity order. Shadowed routes are dropped; contradictions are refused.

Backend TLS stays verified

Output always sets backend_tls_verify_server_cert: true, even where the source skipped verification. There is no flag to turn it off.

Credentials by opt-in only

Kong key-auth keys can carry over with --include-secrets, where Ferrum's semantics match. Kong JWT secrets and password hashes never convert, so those routes stay closed until you issue new credentials.

Any run mode

--run-mode file|database|cp|dp shapes ferrum.conf for the running mode you plan to use. For database and CP modes, you import the validated resources through the Admin API.

Start From What You Already Run

Each source reads one local file. Includes are never followed, and the tool never connects to a running gateway, Admin API or database.

SourceInputCarries over
Kong Gateway
--from kong
DB-less kong.yml or a decK dump (deck gateway dump), YAML or JSON. The report states which flavor it detected.Services, routes, upstreams and targets, health checks; key-auth, jwt (HS*), acl, rate-limiting, cors, ip-restriction, request/response transformers, size limits; consumers and ACL groups
NGINX OSS
--from nginx
One nginx.conf-syntax file with an http {} block or bare server {} blocks.server_name, location (prefix, exact, regex), proxy_pass, upstream balancing, timeouts, allow/deny, limit_req, add_header, client_max_body_size, HTTPS redirects and certificates
Traefik OSS
--from traefik
File-provider dynamic configuration (http section), YAML, TOML or JSON. Static configuration and other providers are not read, so routes that forward traffic are refused unless you pass --assert-traefik-input-includes-effective-controls.Router rules on host, path and method, priorities, loadBalancer and weighted services, stripPrefix/addPrefix, headers, ipAllowList, rateLimit, retries, client-certificate options
Envoy
--from envoy
v3 static bootstrap (static_resources) with HTTP connection managers and inline route_config.Listeners and TLS, virtual hosts, ordered routes, clusters and weighted clusters, prefix rewrites, timeouts and retries, CORS, header changes, direct responses and redirects
Istio
--from istio
Gateway, VirtualService, DestinationRule and ServiceEntry as multi-document YAML or a kind: List.Gateway-bound routes only (an ingress projection), with weights, rewrites, timeouts, retries, CORS, headers, backend TLS and load balancing. Mesh routing, sidecars and workload mTLS are reported, not migrated

The mapping reference lists every directive, plugin and field per source, what it becomes in Ferrum Edge and where behavior differs. Mappings were checked against the Ferrum Edge v0.9.21 release commit f9915358c803.

Before: nginx.conf

The config you already trust

A typical NGINX edge: an HTTPS redirect, a weighted least_conn upstream with a backup server, a per-client rate limit, a private path for one network and a static health response.

  • The redirect server makes the migration TLS-only, so Ferrum's plaintext listener is turned off
  • limit_req_zone becomes one shared rate_limiting config per zone
  • The largest client_max_body_size sets the gateway ceiling; smaller ones become per-route limits
upstream app_backend {
    least_conn;
    server 10.0.0.11:8080 weight=2;
    server 10.0.0.12:8080;
    server 10.0.0.13:8080 backup;
}

server {
    listen 443 ssl;
    server_name example.com www.example.com;

    location /api/ {
        limit_req zone=api burst=10 nodelay;
        proxy_pass http://app_backend/;
        proxy_set_header Host $host;
        proxy_read_timeout 60s;
    }

    location /internal/ {
        allow 10.0.0.0/8;
        deny all;
        proxy_pass http://app_backend;
    }
}
An excerpt of the repository's synthetic NGINX fixture.
After: resources.yaml

Ferrum Edge resources, labelled back to the source

Each proxy records where it came from and whether it was migrated, terminated or refused, so reviewing the result is a diff against your own config, not a guessing game. This conversion exits 0 with all five locations accounted for: three proxy to their backends as before, and the two that NGINX answered itself (/healthz with 200, /private/ with 403) become request_termination routes labelled terminated. The report adds three warnings and nine notes.

  • proxy_set_header Host $host becomes preserve_host_header: true
  • proxy_pass with a URI strips the listen path, as NGINX does
  • location /api/ becomes listen_path: /api plus an exact =/api route answering 404, because NGINX never matched the bare path
  • Further down the file, the upstream drops the backup server (reported) and least_conn becomes least_connections
proxies:
- id: nginx-example-com-api
  name: example.com-/api/
  labels:
    ferrum-migration/source: nginx
    ferrum-migration/ref: nginx location '/api/' in nginx server 'example.com' (line 23)
    ferrum-migration/status: migrated
  listen_path: /api
  backend_scheme: http
  upstream_id: nginx-up-app-backend
  strip_listen_path: true
  preserve_host_header: true
  backend_read_timeout_ms: 60000
  plugins:
  - plugin_config_id: nginx-example-com-api-response-transformer
  - plugin_config_id: nginx-group-zone-api-rate-limiting
  - plugin_config_id: nginx-example-com-api-request-size-limiting
The first proxy the v0.1.0 CLI generates from that fixture, verbatim (scroll sideways for the full lines). The bare-path guard, upstream and plugin configs follow later in the file.

Side by side, not instead of

Run Ferrum Edge next to your current gateway on a spare port, change FERRUM_PROXY_HTTP_PORT or FERRUM_PROXY_HTTPS_PORT in ferrum.conf, and send the same requests to both. Nothing about the source gateway changes.

Check first, write later

ferrum-migrate check prints the same summary and report without writing a file, so you can size a migration across many configs before converting any of them.

Compare on your own numbers

Once both gateways serve the same routes, measure them with your own load tool, or start from Ferrum's published gateway comparisons and the testing guide.

A Migration That Never Opens a Door

Gateways disagree on small details, and small details are where routes leak. When Ferrum Migration cannot reproduce something faithfully, it chooses the stricter result and tells you.

RuleWhat it prevents
Refused routes become 503 placeholdersTraffic for an untranslatable route (an unknown auth plugin, an unrepresentable rewrite) falling through to a broader, open route
Unrepresentable matches poison overlapsA header-, query- or SNI-matched route disappearing while a less specific route it used to shield starts answering its requests
Prefix guardsSource prefixes match plain strings, so /api also matched /apix; Ferrum matches by path segment. Guards stop /apix reaching a route with a different policy, and the report flags any sibling paths that would now 404
No cross-host fallthroughA request for one NGINX server, Envoy virtual host or Istio host reaching another host's routes
Restricted listeners stay restrictedA server bound to one address being exposed on Ferrum's shared listener; such servers are skipped instead
Client-certificate trust is never mergedTwo mTLS scopes with different CA bundles being combined into one wider trust set; affected routes are refused instead
Traefik controls outside the input are never assumedA Traefik route forwarding without the TLS, client-certificate or middleware controls its entryPoint or another provider adds; every forwarding Traefik route is refused until you state that the input includes them
Auth is never silently skippedAn auth plugin, middleware or HTTP filter the tool cannot translate being dropped from its route
No secrets in output or diagnosticsCredential values, PEM blocks, vault references or Kubernetes Secrets reaching the report, the settings file or an error message

From Source File to Running Gateway

Translation happens entirely on your machine. Ferrum Edge itself is the final judge of the output.

Source configKong, NGINX, Traefik, Envoy or Istio file
ferrum-migrateMaps, checks precedence, refuses what it cannot reproduce
Outputresources.yaml, ferrum.conf, migration report
Ferrum EdgeFile mode, or imported through the Admin API

Bounded input handling

One regular file, with size, node, depth, alias, document and route ceilings. Duplicate YAML keys, merge keys and unsafe tags are rejected before anything is written.

Validated by the gateway

ferrum-edge validate runs Ferrum Edge's real admission checks on the output. CI runs it on the repository's fixtures with the v0.9.21 release binary, then serves converted output on loopback.

File mode or database mode

File mode uses the output as is. For database or CP mode, validate in file mode first, then import through the Admin API with POST /batch or POST /restore.

migration-report.md

Every difference, written down

Errors mark anything refused, emitted fail-closed or less strict than the source. Warnings are stricter or approximate behavior. Info covers metadata that was safely omitted. The report never contains credential values.

  • Each finding names the source resource and, for NGINX, the line
  • Most findings carry a concrete Action
  • The JSON twin feeds CI gates and dashboards
  • --strict makes warnings count as review-required too
## Error (3)
- route-refused (kong route 'legacy-admin'): Not migrated:
  route plugin oauth2: plugin oauth2 has no safe Ferrum
  equivalent. A fail-closed placeholder answering HTTP 503
  was emitted for its match.
  Action: Recreate this route manually in Ferrum after
  reviewing the reasons.
...
## Warning (3)
- credentials-withheld (consumers): 2 migratable
  credential(s) were not written because plaintext secrets
  are only emitted with explicit --include-secrets.
...
## Info (5)
- prefix-divergence-guard (kong route 'legacy-root'):
  Added a request_termination guard (trigger.path_prefix
  /admin) so paths like /adminx ... cannot reach this
  broader route.
Generated by the v0.1.0 CLI from the repository's synthetic Kong fixture; lines rewrapped.
Exit codeMeaning
0Migrated with no error-level findings (warnings allowed unless --strict)
1Internal error; nothing written, and the exception text is withheld because it could echo input
2Usage error
3Input rejected (syntax, duplicate keys, size or depth limits, unsupported shape); nothing written
4Output written, but it contains items that need review: refused or fail-closed routes, unmigrated credentials or less strict approximations
5Output could not be written safely (existing files without --force, a symlinked target, permissions)

Read Before Serving Traffic

Ferrum Migration gets you to a working trial quickly. It is not a production-readiness check.

HTTP(S) reverse proxying only

TCP, UDP, TLS passthrough, mail, static file serving, dynamic xDS, Kubernetes service discovery and Istio subsets are reported, not translated.

No live systems

Live databases and Admin APIs are never read. Export Kong with decK first. Database and CP imports are yours to run, and neither import path is runtime-tested by the project.

Approximate timing

Timeouts keep their numbers, not their exact semantics. Rate limits keep the average rate, not burst behavior, and Kong cluster or Redis limits become per-node.

One default certificate

Ferrum file mode serves one default frontend certificate. With several source certificates, pick one or use a SAN certificate.

Narrow credential carry-over

Only Kong key-auth keys can move. Kong JWT secrets, basic-auth hashes, htpasswd files and Traefik basicAuth users need new Ferrum credentials.

Synthetic evidence only

Tests use original synthetic fixtures. The repository lists a few Ferrum behaviors it could not confirm from source as open questions.

Small, Offline, Checked Against the Real Gateway

A plain Python package with one runtime dependency, tested against Ferrum Edge's own source and release binary.

Python 3.11+The ferrum-migrate CLI; CI covers 3.11, 3.12 and 3.13
PyYAMLIts only runtime dependency, used through a hardened loader
Five source parsersKong, NGINX, Traefik (YAML, TOML, JSON), Envoy and Istio
Reference checksEmitted keys re-checked against Ferrum Edge config structs and plugin validators
Ferrum Edge v0.9.21Release binary, pinned by SHA-256, runs admission and loopback runtime acceptance in CI
Acceptance harnessStandard-library only: echo backends, real ferrum-edge run, per-probe backend assertions
GitHub ActionsLinux and macOS jobs, Actions pinned by commit SHA
No network I/ONo network, database or subprocess use in the converter

Quick Start

From an existing gateway config to Ferrum Edge serving it. There is no release yet, so install from a commit on main that passed CI.

Python 3.11+ git Ferrum Edge v0.9.21 binary Your gateway's config file
  1. Install the CLI from source

    bash
    git clone https://github.com/ferrum-edge/ferrum-migration.git
    cd ferrum-migration
    git checkout 48e4301eb0cc76d2724cb6de9b0e2abab9604745
    python3 -m venv .venv && . .venv/bin/activate
    python -m pip install .
    ferrum-migrate --version

    This is the main commit whose CI run passed all five jobs. Once a release exists, install that instead.

  2. Export your current configuration

    bash
    # Kong with a database: dump it first (DB-less kong.yml works as is)
    deck gateway dump -o kong.yaml
    
    # NGINX, Traefik, Envoy and Istio: use the file you deploy
    ferrum-migrate platforms

    NGINX include directives are not followed, so pass a single, complete file.

  3. Preview the migration

    bash
    ferrum-migrate check kong.yaml --from kong

    Prints the summary and findings and writes nothing.

  4. Convert

    bash
    ferrum-migrate convert kong.yaml   --from kong    --out ./ferrum-out
    ferrum-migrate convert nginx.conf  --from nginx   --out ./ferrum-out --force
    ferrum-migrate convert envoy.yaml  --from envoy   --out ./ferrum-out --force
    ferrum-migrate convert istio.yaml  --from istio   --out ./ferrum-out --force
    ferrum-migrate convert dynamic.yml --from traefik --out ./ferrum-out --force \
      --assert-traefik-input-includes-effective-controls

    Run the one that matches your source. Add --run-mode database (or cp, dp) for a non-file deployment. Exit code 4 means the output was written and the report has items to review.

    For Traefik, pass the flag only after checking that your static entryPoints and other providers add no TLS, client-certificate, middleware or competing-router settings outside the file; the tool records it as your statement. Without it, every Traefik route that forwards traffic becomes a 503 placeholder.

  5. Read the report, then validate

    bash
    cd ferrum-out
    less migration-report.md
    ferrum-edge validate --settings ferrum.conf --spec resources.yaml
  6. Run Ferrum Edge on your routes

    bash
    ferrum-edge run --settings ferrum.conf --spec resources.yaml

    To run beside your current gateway, first change the proxy port in ferrum.conf to a free one. See Install for getting the ferrum-edge binary and the testing guide for checking a gateway before it takes traffic.

Your First Step Onto the Stack

Ferrum Migration gets your existing routes onto Ferrum Edge. Once they are imported into a database-mode gateway through the Admin API, they are ordinary Ferrum Edge resources, and Foundry and GitForgeOps work with them through that same API.

Licensing

Ferrum Migration is licensed under PolyForm Noncommercial 1.0.0 for non-commercial use; commercial licenses are available. Kong, NGINX, Traefik, Envoy and Istio are trademarks of their respective owners; the project is not affiliated with them and contains no code from them.