Skip to content

Third parties and licenses

Last updated: 2026-11-27T14:16:11-03:00 (UTC-3)

Security and trust · Secure development

m7gtw’s third-party management has two parts: the third-party code that ships in the product, checked for license on every release, and the external services it talks to, all chosen by the operator.

The SBOM generated by the security scan lists every component, and scripts/check-licenses.py enforces the policy below in the release gate.

Where What goes in Accepted licenses
Distributed: Go modules in the binary and the console embedded in it What ships to whoever installs it MIT, MIT-0, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, 0BSD, MPL-2.0, BlueOak-1.0.0, CC0-1.0, OFL-1.1 (fonts), Python-2.0
Build only: documentation site tooling Does not go into the image; the generated pages are published separately The above, plus LGPL-3.0

Any other license, such as GPL, AGPL, or non-open licenses, fails the gate. A third-party component with no declared license fails it too. The report with each component, scope, and license is in test-results/security/licenses.tsv, next to the SBOM.

Status on 2026-10-27: 384 components, 32 distributed and 352 build-only, no violations.

  • Distributed: most are MIT, Apache-2.0, or BSD.
  • Build-only: LGPL only in sharp’s libvips, which optimizes the site’s images; MPL-2.0 in lightningcss.

Counter-test: a distributed module under GPL and another with no license both failed, with both names in the output.

The gateway has no subprocessors of its own: it runs on the infrastructure of whoever installs it and talks only to what the operator configures.

Service When What it receives
Model providers On every inference for a configured alias The client’s request (prompt)
External guardrails (Azure Content Safety, Presidio, Lakera, Bedrock) If a policy uses them The text being evaluated
Secret vaults (Vault, Conjur, AWS, Google, Azure) If configured Only the identifier of the requested secret
IdP (OIDC, SCIM) Login and provisioning The login flow; the IdP sends users and groups
Log destinations (S3, GCS, Azure Blob, Langfuse, Datadog, HTTP) If configured Usage metadata, never prompts or responses
Alert channels (webhook, Slack, Teams, email, PagerDuty) If configured The alert event, without payload
Public price and model catalogs (community cost map, models.dev, OpenRouter, DeepInfra) With the catalog flags on Nothing beyond the catalog request, no usage data

Before you turn on an external service, assess what it receives and its policy. The threat model treats a compromised service as a threat: responses go through bounded parsers, and outbound network traffic has an SSRF guard.

With codex_model_catalog on, the Codex model picker answers with the Codex CLI’s own entries for the models it knows. The gateway embeds, unchanged, two files of the open-source Codex repository (Apache-2.0) at tag rust-v0.163.0, commit 83086188ae0614bd882818ff1aa23f3194962012:

File Upstream path sha256
models.json codex-rs/models-manager/models.json 943ca7fe1d19ed019054158303f0dbbd80b3bef43b3aa425a71aa7cb3fb52c2b
prompt.md codex-rs/models-manager/prompt.md ac8ae107a0d72fe3476b430afb161ea4e67da2e446d778aefc44828160559807

The repository’s LICENSE and NOTICE are kept beside them in internal/gateway/third_party/codex/, with SOURCE.json recording each file’s URL and hash. scripts/refresh-codex-catalog.py --check verifies the copy offline (the Go tests check the same hashes); --tag rust-vX.Y.Z --commit <sha> replaces it from a newer release. The upstream NOTICE reads:

OpenAI Codex
Copyright 2025 OpenAI
This project includes code derived from [Ratatui](https://github.com/ratatui/ratatui), licensed under the MIT license.
Copyright (c) 2016-2022 Florian Dehau
Copyright (c) 2023-2025 The Ratatui Developers

The container image also carries LICENSE, NOTICE and SOURCE.json under /usr/share/doc/ai-gateway/third_party/codex/.

The optional public research registry transforms only original public catalog data. Data attribution, original source/license URL, successful capture hash/time and any stale or enrichment state remain visible. Listing an external offer does not certify gateway adapter support or change routing/billing. The following copyright and permission notices accompany the corresponding substantial data projection. No reference frontend/backend implementation is copied.

Source: original public data · original license. Only the MIT source outside the separately licensed enterprise directory is used.

MIT License
Copyright (c) 2023 Berri AI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Source: public models.dev metadata · original license. Exact provider/model joins enrich missing display/date only; this source is independently attributed.

MIT License
Copyright (c) 2025 models.dev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The optional coding/value views transform original Terminal-Bench public leaderboard submission summaries, dataset/method metadata and source-reported aggregate costs. The original repository applies Apache-2.0 to this source; the gateway verifies the accepted full license at the captured immutable revision and includes that full notice, original attribution, source URLs/revision and transformation limitations in each benchmark response. Task assets, hidden tests and unrelated nested task licenses are not imported or distributed. No benchmark implementation executes in the gateway; the deterministic gate retains exact original licensed method/dataset-declaration files only as nonexecuted source-verification fixtures. Publication claims no source endorsement, completed local evaluation or complete cost/timing coverage.

T058 pins github.com/tetratelabs/wazero v1.12.0 (Apache-2.0, pure Go, no CGO, published 2026-05-28) in the distributed Go module graph, imported only by internal/extensions. It runs plugin WebAssembly modules in process with no ambient capability (see the threat model). The JavaScript runtime embeds qjs.wasm from github.com/fastschema/qjs v0.0.6 (MIT; QuickJS-ng, MIT), copied into the source tree rather than imported, pinned by SHA-256 88fcbeead33cca3ec8394feb0fb3eec8047ec9ac5062aba7a63799cee11989b7 and refused at start-up if the bytes differ. The library’s Go loader is not used because it mounts the host working directory and clock. The AssemblyScript compiler (assemblyscript 0.28.20, Apache-2.0) was used once to build an example and is not shipped.

T019 pins github.com/ClickHouse/clickhouse-go/v2 v2.50.0 (Apache-2.0, pure Go, no CGO, published 2026-10-26), imported only by internal/clickhousestore, for the optional ClickHouse read store. It brings github.com/ClickHouse/ch-go v0.74.0 (Apache-2.0), github.com/andybalholm/brotli v1.2.6 (MIT), github.com/go-faster/city v1.0.1 (MIT), github.com/go-faster/errors v0.7.1 (BSD-3-Clause), github.com/klauspost/compress v1.19.1 (BSD-3-Clause), github.com/paulmach/orb v0.13.0 (MIT), github.com/pierrec/lz4/v4 v4.1.27 (BSD-3-Clause), github.com/shopspring/decimal v1.5.0 (MIT), go.opentelemetry.io/otel and otel/trace v1.47.0 (Apache-2.0) and github.com/segmentio/asm v1.2.1 (MIT-0, “MIT No Attribution”, which drops the MIT notice requirement and is therefore in the distributed allowlist). Each shipped LICENSE file was read; the ClickHouse server is never part of the gateway image.

T062 pins github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 (Apache-2.0) in the distributed Go module graph. Its shipped LICENSE was checked against the policy above; the existing dated SBOM counts remain historical and publication still requires current release evidence. The gateway uses the library only after its own closed-profile/resource/numeric preflight and installs a deny loader: adding the library does not enable remote schema resolution, general template execution or provider calls. See supported prompt schema.

m7gtw[email protected]