Skip to content

Releases

v1.1.0

Choose a tag to compare

@heyvaldemar heyvaldemar released this 29 Nov 04:05
f034438

Local models work through the gateway. A model named vllm/, ollama/, docker/ or local/ now reaches the adapters that were already in providers/, with the same budgets, DLP, kill switch and audit as a hosted model, and a CI proof measures it. The full list is in CHANGELOG.md.

No provider key for a local model. A request for one answered 400 "Provider not configured" for want of a key the model never needed, so the adapters could not be reached. A local provider takes the organization's key if there is one, else <NAME>_API_KEY, else none; a server started with its own key (vLLM's --api-key) is sent it as a bearer token, and a server given none is sent no header. local/<name> goes to LOCAL_HTTP_BASE_URL, Ollama's address when unset (#43).

A local model bills nothing until the operator says what it costs them. LOCAL_PROMPT_PRICE_PER_MILLION and LOCAL_COMPLETION_PRICE_PER_MILLION set the price of a million tokens in USD. With them set, a project's budget caps the model like a hosted one.

The proof, local. Against the recording fake, with no provider key anywhere: 12 requests for vllm/proof-model against a $0.02 budget, 3 served (exactly what the budget buys), overspend $0, 9 answered 402; 11 secret types sent to it, 11 refused with 451, none reaches the server; 5 requests after a kill, 5 answered 410, none reaches the server. Two planted violations, a local model that needs a key again and one whose price is ignored, must make it fail, and do.

Another organization's key. The provider registry kept one instance per provider and an instance holds the key it was built with, so every organization's request left with the first organization's provider key. It builds the instance for each call now. Not changed: the Gemini adapter still hands its key to Google's SDK through a process-wide setting, so concurrent Gemini requests of different organizations can cross; that is its own change.

The dashboard on a 402. A 402 means a project has spent its budget, and nothing resets it. The notice says so and no longer asks for a subscription (#42, Tatiana Mikhaleva).

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.1.0.tar.gz \
  --bundle oxy-llm-gateway-v1.1.0.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.1.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.1.0.tar.gz \
  --provenance-path oxy-llm-gateway-v1.1.0.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.1.0

A reference implementation, not a managed service: there is no SLA.

v1.0.6

Choose a tag to compare

@heyvaldemar heyvaldemar released this 22 Nov 15:56
594ec4c

Four defects that running the lab and reading the answers found, and three more of the same shape that fixing them turned up. Each has a test that fails on 1.0.5. The full list is in CHANGELOG.md.

A secret only in a tool definition is named. It was refused with 451 but described as "Sensitive data detected (none)", and the audit row said "none". The answer, the row and the log now carry the type, for example tool_github_token.

Deleting an agent stays inside its organization. DELETE /v1/agents/{id} marked the agent's running sessions killed by agent id alone, so the owner of one organization could end another's sessions by sending that agent's id. It now answers 404 for an agent that is not the caller's, records who, when and why on the sessions it ends, and sets the kill flag the gateway reads first. DELETE /v1/mcp/servers/{id} deleted a server's tools by server id before looking at the organization; it checks first now. Both deletes also answered 500 after the rows were gone, because the engine's database client did not ask PostgREST for the deleted rows.

The cost optimizer finds its organization. /cost-optimizer/recommendations and /usage-analysis asked subscriptions for a column it has never had and answered 500 for everyone. The organization comes from the caller's membership now, and the plan-tier gate on these two routes is gone: plan tiers have been out of the request path since 1.0.1, and /v1/cost-optimizer is not gated either.

The API description no longer promises a reset. It said to wait for reset on a 402. A project's budget is its total spend and nothing resets it, so the description now says an operator must raise it.

The kill proof reads the killed session's row. It must show who, when and why, and a new planted violation, kill_record, makes the row forget them: the proof has to fail.

Also in this release: the budget alerts card names Slack, Discord and Zapier (#39, Tatiana Mikhaleva), the workshop lab is pinned to v1.0.5 (#40, Tatiana Mikhaleva), a run of Release Assets started by hand never replaces a signature a release already carries, and the freshness check judges a provider against its newest stable release, never a pre-release.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.6.tar.gz \
  --bundle oxy-llm-gateway-v1.0.6.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.6 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.6.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.6.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.6

A reference implementation, not a managed service: there is no SLA.

v1.0.5

Choose a tag to compare

@heyvaldemar heyvaldemar released this 16 Nov 16:19
e700e0e

The dashboard says what the engine does. Four of these changes are Tatiana Mikhaleva's pull requests (#32 to #35). The full list is in CHANGELOG.md.

Last used. The API Keys page shows when each key was last used. Nothing wrote that column up to 1.0.4. The gateway now writes it in a background task the request does not wait for, at most once a minute per key, so a busy key costs one database write a minute (#33).

Budgets and alerts. A project's budget is its total spend: nothing resets it, and once it is spent requests answer 402 until it is raised. The dashboard spoke of a monthly limit (#32). Alerts go out at 80, 95 and 100% of the budget, where the Budget Oracle said 75, 90 and 100 (#35). They now also reach the organization's Slack, Discord and Zapier webhooks enabled in Notifications. The function the request path calls had never handed the organization on, so that branch never ran (#36).

No request cap. No plan tier has capped requests since 1.0.1, yet a 429 opened a "Monthly request cap reached" notice and a "Budget Exceeded" toast. A 429 is a rate limit: the notice is gone and the toast says to wait and try again (#35).

Restarts. Every long-running service comes back after a reboot or a crash. Redis, and Postgres in the development stack, get 30 seconds to write their data out before Docker kills them (#34).

Build tooling. glob, minimatch and webpack are past four advisories in the build-time packages that @sentry/nextjs 10 and typescript-eslint pull in. None of them reaches the running services (#37).

This release's own check. Release Assets now requires the exact signer, release-assets.yml on this tag. Its changed-archive check counts only a refusal in each tool's own words.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.5.tar.gz \
  --bundle oxy-llm-gateway-v1.0.5.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.5 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.5.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.5.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.5

A reference implementation, not a managed service: there is no SLA.

v1.0.4

Choose a tag to compare

@heyvaldemar heyvaldemar released this 16 Nov 04:02

No secret on a command line. A gateway that sells DLP and an audit trail kept its own Redis password and vault key where any user of the host could read them with ps. The fleet's conformance check found it. The full list is in CHANGELOG.md.

Redis password. It sat on the command line of four health checks and of the production Redis check, each run every few seconds. The workers' checks now read REDIS_URL from their environment. Redis's check passes the password through REDISCLI_AUTH and counts only PONG: redis-cli ping exits 0 on a refused login too, so the old development check passed against a Redis it could not log in to.

Vault key. It sat on the postmaster's command line for as long as Postgres ran. It now reaches Postgres through postgresql.auto.conf, written from SUPABASE_VAULT_KEY on the first boot and on every later one. A database made before 1.0.4 keeps its key.

Documentation. The curl examples pass the Oxy API key on curl's standard input instead of its command line.

Proof. scripts/argv_secrets.py renders every compose stack with random values planted in each secret-named variable. On 1.0.3's files it finds all twelve places; on this release, none. Its self-test plants the 1.0.3 forms back and catches each one. On the running stack, CI holds every health check in flight with Redis frozen and samples the host's ps five times a second, after seeing a canary. CI also requires the vault key to be the configured one after the first boot and after a restart. The nine proofs and their twelve planted violations run on this release's commit as before.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.4.tar.gz \
  --bundle oxy-llm-gateway-v1.0.4.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.4 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.4.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.4.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.4

A reference implementation, not a managed service: there is no SLA.

v1.0.3

Choose a tag to compare

@heyvaldemar heyvaldemar released this 15 Nov 23:44

The audit trail keeps its promise: every request made with a valid key has a request_logs row, refusals included, and revoking a key no longer erases its rows. Found while writing the workshop lab. The full list is in CHANGELOG.md.

Revoking a key keeps its audit trail. Up to 1.0.2 the dashboard's Revoke deleted the key, and request_logs.api_key_id cascaded on delete: every row the key had made, refusals included, went with it. The key is now revoked: it stops at once and stays listed as inactive. The foreign key is ON DELETE SET NULL. On an existing database, run this once:

ALTER TABLE request_logs DROP CONSTRAINT request_logs_api_key_id_fkey,
  ADD CONSTRAINT request_logs_api_key_id_fkey FOREIGN KEY (api_key_id) REFERENCES api_keys(id) ON DELETE SET NULL;

Every refusal has its row. Requests refused by the burst limit (429), by a suspended organization (403) or for a body that is not JSON (400) left no row; each has one now, without the prompt. Served requests' rows now name the key, agent and session that made them.

Threats Blocked counts threats. It counted every request, because served requests are recorded as "safe". Now only what DLP or the stream scanner finds counts.

Proofs. The audit proof revokes a key through the dashboard's route and requires the same number of rows for that key before and after, with a foreign key that does not cascade. It also sends requests the real burst limiter refuses and counts their rows. Two new planted violations, the 1.0.2 revoke and a 429 without its row, must each make it fail. CI runs the nine proofs and all twelve planted violations on this release's commit.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.3.tar.gz \
  --bundle oxy-llm-gateway-v1.0.3.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.3 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.3.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.3.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.3

A reference implementation, not a managed service: there is no SLA.

v1.0.2

Choose a tag to compare

@heyvaldemar heyvaldemar released this 15 Nov 22:55

A fix release: the dashboard's budget and project buttons work again, deleting a project keeps its audit trail, and Dependabot keeps the dependencies current on its own. The full list is in CHANGELOG.md.

Dashboard. In 1.0.1, Set Budget Limit, rename, Create New Project, Delete project and Disconnect provider answered 500: they called database functions the schema never had. They now write the tables directly, after the same owner-or-admin check. Setting a budget reaches the gateway on the next request. A new test fails whenever the engine calls a database function db/ does not create, and CI's smoke test now sets a budget, deletes a project and creates one with the dashboard's session. Found while writing the workshop lab.

Deleting a project deactivates it. Its keys stop at once, no route finds it again, and its request logs stay. request_logs references the project with ON DELETE CASCADE, so a real DELETE would have erased its audit trail.

Security. Adding or disconnecting a provider key needs an owner or admin, like the other organization settings since 1.0.1.

Dependencies.

  • Dependabot proposes patch and minor updates, grouped and at least seven days old. dependabot-automerge.yml merges one once CI (the proofs and the devcontainer included) and CodeQL pass for its commit, and only when every dependency it moves is stated as patch or minor.
  • Majors are held back until 2027-02-15 (the README's "Dependencies" section lists them), and so is redis 5.3. The fail-closed proof caught 5.3.1 queueing concurrent commands behind each timeout while Redis does not answer: refused requests got no answer within 60 s instead of a 503 within a second.
  • The UI's tests run on Vitest 4.

Proofs. CI runs the nine proofs and their ten planted violations on this release's commit.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.2.tar.gz \
  --bundle oxy-llm-gateway-v1.0.2.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.2 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.2.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.2.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.2

A reference implementation, not a managed service: there is no SLA.

v1.0.1

Choose a tag to compare

@heyvaldemar heyvaldemar released this 15 Nov 20:34

A fix release: the license GitHub can read, a dashboard whose pages work, and documentation that matches the code. The full list is in CHANGELOG.md.

License. LICENSE is the Apache License 2.0 text, unchanged; the copyright is in NOTICE: Tatiana Mikhaleva and Vladimir Mikhalev.

Security.

  • Another organization could stop a session through DELETE /v1/agents/{agent_id}/sessions/{session_id}: the kill flag was set before the organization check.
  • Cached responses were shared between organizations: the cache key left the organization out.
  • /auth/sso/callback trusted a user id and email from the request body; it now answers 501 until it verifies the identity provider.
  • Any member's Oxy API key could change organization settings (privacy, guardrails, providers, the organization's profile, notifications, webhooks, team invitations). They now need an owner or admin, with a key or with the dashboard's session.

Each has a test that fails on the old code.

Behaviour.

  • No plan tier caps requests any more; budgets are the spend control.
  • The dashboard's pages read fifteen /v1 routes that took only an Oxy API key, so they answered 401. They now accept the session of an active member, and the gateway itself still takes keys only. CI's smoke test calls every route the dashboard reads with a session.
  • The API Keys page manages keys through /management.

Not wired yet. The README lists what has code in the repository but does not work end to end. The dashboard no longer offers those features.

Proofs. CI runs the nine proofs and their ten planted violations on this release's commit, as on v1.0.0. The README names the run its numbers come from.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.1.tar.gz \
  --bundle oxy-llm-gateway-v1.0.1.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.1 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.1.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.1.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.1

A reference implementation, not a managed service: there is no SLA.

v1.0.0

Choose a tag to compare

@heyvaldemar heyvaldemar released this 15 Nov 18:20

First public release of Oxy, a self-hosted LLM gateway: one OpenAI-compatible endpoint in front of OpenAI, Anthropic, Gemini, Ollama and vLLM, with a budget per project, DLP, a kill switch for agent sessions, audit logs and cost attribution. Apache License 2.0.

Runs from a clean clone. docker compose up -d --build --wait starts Postgres, PostgREST, GoTrue, Mailpit, nginx, Redis, the engine with six workers and the Next.js dashboard, with no .env file, cloud account or provider key. Sign-in is by magic link; Mailpit at http://localhost:8025 holds the mail.

Every main claim is measured in CI (proofs/), against a fake provider that records what it receives, and each measurement is shown the bug it exists to catch:

  • a budget is never overspent under concurrent requests, across the budget worker's sync cycles, and after Redis loses the spend counter;
  • DLP stops API keys, tokens, JWTs, private keys and card numbers before the provider;
  • the kill switch stops an agent session, and another tenant cannot kill it;
  • one tenant cannot send requests as another tenant's agent or session;
  • a revoked key stops on its next request, even though it was cached;
  • with Redis down, requests whose budget or kill switch cannot be checked are refused or decided by Postgres, never served unchecked;
  • the browser's keys cannot call the engine's database functions, every table has row-level security, and no policy opens a table to the browser roles;
  • no tenant API key is stored in Redis;
  • every request, refusals included, has an audit row.

The numbers and the CI runs they come from are in the README.

Verify this release with nothing from this repository trusted:

cosign verify-blob oxy-llm-gateway-v1.0.0.tar.gz \
  --bundle oxy-llm-gateway-v1.0.0.tar.gz.sigstore.json \
  --certificate-identity https://github.com/heyvaldemar/oxy-llm-gateway/.github/workflows/release-assets.yml@refs/tags/v1.0.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

slsa-verifier verify-artifact oxy-llm-gateway-v1.0.0.tar.gz \
  --provenance-path oxy-llm-gateway-v1.0.0.intoto.jsonl \
  --source-uri github.com/heyvaldemar/oxy-llm-gateway --source-tag v1.0.0

A reference implementation, not a managed service: no SLA, and the heuristic features (cost optimizer, intelligence, scores) are advisory.