omnigateway 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +12 -4
  2. package/bin/omni.js +1790 -117
  3. package/gateway.js +2437 -244
  4. package/package.json +1 -1
  5. package/public/assets/{Chip-DJkUCwNJ.js → Chip-BeKVtewW.js} +1 -1
  6. package/public/assets/{CopyValue-CJ3ZYgvs.js → CopyValue-NTHhiCuT.js} +1 -1
  7. package/public/assets/{Lamp-D7hJcQ90.js → Lamp-C2Q3t5Mn.js} +1 -1
  8. package/public/assets/{Rack-CaxD9IY1.js → Rack-sUGRoZUx.js} +2 -2
  9. package/public/assets/{RequestTable-bXapHDrR.js → RequestTable-C2RLARWy.js} +1 -1
  10. package/public/assets/{SummaryDeck-Dt_qbFtg.js → SummaryDeck-BHXcb_Ji.js} +1 -1
  11. package/public/assets/{Toggle-C_iC6W50.js → Toggle-DwKz1aVq.js} +1 -1
  12. package/public/assets/{TokenBreakdown-C96x_g6d.js → TokenBreakdown-DM-1HvOr.js} +1 -1
  13. package/public/assets/{WindowChart-D4dcv4DX.js → WindowChart-BsonO5Py.js} +1 -1
  14. package/public/assets/{_app.accounts-CGFOyYZc.js → _app.accounts-DUYxItf0.js} +1 -1
  15. package/public/assets/{_app.console-DrCT8eLd.js → _app.console-BQJMLRv4.js} +1 -1
  16. package/public/assets/{_app.database-D32je-GL.js → _app.database-BIiajZm6.js} +1 -1
  17. package/public/assets/{_app.index-BG6mGxkv.js → _app.index-DagK0Pqp.js} +1 -1
  18. package/public/assets/{_app.keys-C1AjjeHc.js → _app.keys-DLAG_bmt.js} +1 -1
  19. package/public/assets/{_app.logs-BDLj_H_j.js → _app.logs-AyVq3lLb.js} +1 -1
  20. package/public/assets/{_app.models-Cgg7gVSF.js → _app.models-CwlkGPrx.js} +1 -1
  21. package/public/assets/{_app.plugins._pluginId-C5FSNOfN.js → _app.plugins._pluginId-BhvEnawY.js} +1 -1
  22. package/public/assets/{_app.settings-B7lKNDoh.js → _app.settings-BKA-1YLs.js} +1 -1
  23. package/public/assets/{_app.usage-DjqlIHDL.js → _app.usage-C7JEWKZM.js} +1 -1
  24. package/public/assets/{chevron-right-DJj6SEIT.js → chevron-right-S84SGCvk.js} +1 -1
  25. package/public/assets/{client-Q2fvA2EK.js → client-DCvpw0LS.js} +1 -1
  26. package/public/assets/{index-D1ewvjU0.js → index-pZbadEun.js} +3 -3
  27. package/public/assets/{login-Br_AimWR.js → login-CitmheGz.js} +1 -1
  28. package/public/assets/plus-E7qLz9CF.js +1 -0
  29. package/public/assets/{preload-helper-92RRH0nq.js → preload-helper-BC9bKUg1.js} +1 -1
  30. package/public/assets/{shared-Cp_kzH_a.js → shared-C47BfV_u.js} +1 -1
  31. package/public/assets/{trash-2-Chg8CwQf.js → trash-2-DmtElUHr.js} +1 -1
  32. package/public/index.html +4 -4
  33. package/public/shared/dashboard-sdk.js +1 -1
  34. package/public/assets/plus-CCwmaxw3.js +0 -1
package/README.md CHANGED
@@ -280,6 +280,11 @@ Configuration is environment variables, read from the installation's `.env`:
280
280
  | `OMNI_LOG_LEVEL` | No | `info` | Stdout threshold: `debug`, `info`, `warn`, or `error` |
281
281
  | `OMNI_LOG_FILE` | No | the systemd journal, when there is one | Where stdout was already redirected, so the Console screen can read it back. Names a file; does not create one |
282
282
  | `OMNI_BODY_LOGGING_ALLOWED` | No | unset | Permits request/response body capture on this installation. Read at boot. Capture also needs the runtime setting; see [Recording bodies](docs/operations.md#recording-bodies) |
283
+ | `OMNI_METRICS_TOKEN` | No | unset | Registers authenticated `GET /metrics`; unset means no route |
284
+ | `OMNI_METRICS_MAX_SERIES` | No | `5000` | Series cap before new `api_key_id` values fold to `other` |
285
+ | `OMNI_OTLP_ENDPOINT` | No | unset | Enables OTLP/HTTP span export to `<endpoint>/v1/traces` |
286
+ | `OMNI_OTLP_HEADERS` | No | unset | Comma-separated `k=v` headers sent to the collector |
287
+ | `OMNI_TRACE_SAMPLE` | No | `1.0` | Head sampling ratio from `0` to `1`; inbound sampled trace context is honoured |
283
288
  | `OMNI_ROOT` | No | the installation in the current directory, else `~/.config/omnigateway` | Which installation the CLI acts on, when `--root` is not passed |
284
289
  | `OMNI_PLUGIN_REGISTRY` | No | the public npm registry | Registry `omni plugin install <name>` resolves through; must be `https://` |
285
290
  | `OMNI_CLUSTER_MODE` | No | unset | `true` selects [cluster mode](docs/deploying.md#running-more-than-one-gateway) and requires the two URLs below; unset is one process on SQLite, and then the URLs must be unset too |
@@ -371,6 +376,9 @@ Worth knowing before you deploy it:
371
376
  caught earlier.
372
377
  - Not in scope: semantic caching, billing.
373
378
 
379
+ What is missing on purpose, what is missing for now, and what is designed but not
380
+ built: [docs/roadmap.md](docs/roadmap.md).
381
+
374
382
  ## Security
375
383
 
376
384
  - Treat `OMNI_ENCRYPTION_KEY`, gateway keys, and the SQLite file as secrets.
@@ -389,10 +397,10 @@ Worth knowing before you deploy it:
389
397
  reads stdin — so they stay out of your shell history and the process table.
390
398
  - Behind a reverse proxy, set `OMNI_BASE_URL` to the public HTTPS origin so
391
399
  OAuth callbacks match what the providers have registered.
392
- - The gateway talks to your providers and to nobody else. No telemetry, no CDN
393
- fonts, no third-party origins. A plugin may declare outbound origins of its
394
- own, and `omni plugin verify <id>` shows exactly which ones it asked for — as
395
- does its manifest, which is a plain file you can read before installing.
400
+ - The gateway talks to your providers and to nobody else except your collector, if you name
401
+ one with `OMNI_OTLP_ENDPOINT`. No CDN fonts or undeclared third-party origins. A plugin may
402
+ declare outbound origins of its own, and `omni plugin verify <id>` shows exactly which ones it
403
+ asked for — as does its manifest, which is a plain file you can read before installing.
396
404
  - **Plugins run inside the gateway process, with its privileges** — the
397
405
  capability context is a guardrail, not a sandbox. Read the
398
406
  [security note](#plugins) before installing one you did not write.