docs

VaultKit Deployment Guide

This document explains how to deploy VaultKit in production and production-like environments. VaultKit is designed to be easy to deploy for design partners, while remaining flexible enough for advanced infrastructure setups.

Deploy: github.com/vaultkit-inc/deploy

VaultKit consists of four main components:


How It Works

VaultKit uses a single entry point for both the frontend and backend.

The Console container runs nginx internally. nginx serves the React app and automatically proxies all API and auth requests to the Control Plane over Docker’s internal network. This means:

Browser → Console:5173 → nginx (inside console container)
                              ├── /api/*         → Control Plane:3000
                              ├── /auth/oidc/*   → Control Plane:3000
                              ├── /auth/cli/*    → Control Plane:3000
                              └── /*             → React app

Deployment Models

VaultKit supports two deployment models out of the box.

1. Single-Domain Deployment (Default)

Best for:

One URL serves everything — nginx inside the Console handles routing. A reverse proxy only needs to handle TLS.

This is the recommended starting point.


2. Multi-Domain Deployment (Advanced)

Best for:

Example:

https://app.acme.com   → Console (frontend + nginx proxy)
https://api.acme.com   → Control Plane (backend)

No VaultKit images need to be rebuilt — only routing and .env changes.


Prerequisites


Quick Start

1. Clone the Deployment Repository

git clone https://github.com/vaultkit-inc/deploy.git
cd deploy

2. Run the Installer

./scripts/install.sh

This does the following:

To install a specific release, use ./scripts/install.sh --version 0.9.2-alpha.


3. Configure .env

Edit .env and set APP_HOST and FRONTEND_BASE_URL to wherever VaultKit will be accessed from. Pick the option that matches your setup:


Option A — Local machine

RAILS_ENV=production

APP_HOST=http://localhost:5173
FRONTEND_BASE_URL=http://localhost:5173
FORCE_SSL=false

DATABASE_URL=postgres://vaultkit:<password>@postgres:5432/vaultkit
FUNL_URL=http://funl-runtime:8080
VKIT_PRIVATE_KEY=/secrets/keys/vkit_priv.pem
VKIT_PUBLIC_KEY=/secrets/keys/vkit_pub.pem

Option B — Remote VM or EC2 (no domain)

RAILS_ENV=production

APP_HOST=http://54.123.45.67:5173
FRONTEND_BASE_URL=http://54.123.45.67:5173
FORCE_SSL=false

DATABASE_URL=postgres://vaultkit:<password>@postgres:5432/vaultkit
FUNL_URL=http://funl-runtime:8080
VKIT_PRIVATE_KEY=/secrets/keys/vkit_priv.pem
VKIT_PUBLIC_KEY=/secrets/keys/vkit_pub.pem

FORCE_SSL=false lets the control plane answer over plain HTTP. Leave it out of any real deployment: tokens and query results would cross the network unencrypted.

Replace 54.123.45.67 with your server’s public IP. To find it:

curl ifconfig.me

Option C — Custom domain

RAILS_ENV=production

APP_HOST=https://vaultkit.yourdomain.com
FRONTEND_BASE_URL=https://vaultkit.yourdomain.com

DATABASE_URL=postgres://vaultkit:<password>@postgres:5432/vaultkit
FUNL_URL=http://funl-runtime:8080
VKIT_PRIVATE_KEY=/secrets/keys/vkit_priv.pem
VKIT_PUBLIC_KEY=/secrets/keys/vkit_pub.pem

For Option C, point your domain’s A record to your server’s IP address and put a reverse proxy in front of VaultKit for TLS. See Running behind a reverse proxy.


Note: Both APP_HOST and FRONTEND_BASE_URL always point to the same URL because nginx inside the Console unifies frontend and backend behind a single entry point.


4. Start VaultKit

docker compose up -d

Verify services:

docker compose ps

All four containers should be running:

Container Port Purpose
vaultkit-console 5173 Frontend + nginx proxy — your entry point
vaultkit-control-plane 3000 Backend API (internal only)
vaultkit-funl 8080 Query execution engine (internal only)
vaultkit-db — Postgres (internal only)

5. Access VaultKit

Open your browser at whichever URL you configured:

# Option A
http://localhost:5173

# Option B
http://54.123.45.67:5173

# Option C
https://vaultkit.yourdomain.com

Health check:

<your-url>/up

Running behind a reverse proxy

Forward all paths to the console on port 5173. Its nginx handles routing, so don’t send anything to ports 3000 or 8080, which are internal.

Caddy gets a Let’s Encrypt certificate automatically:

vaultkit.example.com {
    reverse_proxy localhost:5173
}

Bind the console to localhost in .env:

CONSOLE_BIND=127.0.0.1

The console trusts the incoming X-Forwarded-Proto, so if port 5173 is reachable from the internet, anyone can skip the HTTPS redirect. Close 5173 in your firewall or security group too. Besides SSH, only ports 80 and 443 need to be open.

If Cloudflare is in front, set its SSL mode to Full or Full (strict), not Flexible. Flexible sends plain HTTP to your server, which causes a redirect loop.


OIDC / SSO Configuration

VaultKit supports OIDC providers such as Okta, Auth0, Azure AD, and others.

For browser-based login the redirect URI must be:

<your-url>/auth/oidc/callback

Most OIDC providers require HTTPS for redirect URIs. For local evaluation without OIDC, skip this step and use token-based access instead.


Multi-Domain Deployment

If you want separate frontend and backend domains:

Required Changes

  1. Update .env:
APP_HOST=https://api.acme.com
FRONTEND_BASE_URL=https://app.acme.com
  1. Configure your reverse proxy to route:

The control plane isn’t published on the host by default. If your proxy doesn’t run on the Compose network, publish the port in docker-compose.yml, on an address only the proxy can reach:

  control-plane:
    ports:
      - "127.0.0.1:3000:3000"

VaultKit images remain unchanged.


Using an External Postgres Database

By default, VaultKit runs Postgres inside Docker.

If you already have Postgres:

DATABASE_URL=postgres://vaultkit:<password>@db.acme.internal:5432/vaultkit

Secrets & Security Notes


Updating VaultKit

Back up the database first. This reads the connection, including the database name, from DATABASE_URL, so it works whatever your database is called:

docker compose exec -T postgres sh -c 'pg_dump "$DATABASE_URL"' > vaultkit-backup.sql

Then move to the new version:

./scripts/install.sh --version <version>
docker compose pull
docker compose up -d

Database migrations run automatically on container startup.

An install stays on its version until you change it, so pulling the deploy repository never upgrades you. The version is saved as VAULTKIT_VERSION in .env, and all three images use it. The installer switches the folder to that release, so the compose file always matches the images. Keep your own settings in .env: it stops if tracked files have local changes.

The installer refuses a version that doesn’t exist or is known to be broken. It also refuses an older version: migrations don’t run backwards, so VaultKit can’t downgrade in place. To go back, restore your backup.

Installs from before VAULTKIT_VERSION was in .env need to run ./scripts/install.sh once after updating the deploy repository. If you edited docker-compose.yml, undo that first.

Always run the control-plane, funl-runtime and console images from the same release. The control plane and funl depend on each other’s behaviour (for example, join aliases and aggregate masking are split between them), so mixing versions can produce failing queries or unhelpful errors.

Pin all three images to the same version in docker-compose.yml, then pull and restart. Upgrading across several releases? Apply the notes for each version in between, newest first below.

Upgrading the vkit CLI to 2.0.0? Its changes are in Upgrading to vkit 2.0.0. Upgrade the control plane to 0.13.0-alpha first.

Upgrading to 0.14.0-alpha

Back up the database, then move to 0.14.0-alpha: run ./scripts/install.sh --version 0.14.0-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags. Only the console changed, but keep all three on the same version. There are no database migrations, and vkit 2.0.0 and the Python SDK 0.5.0 stay as they are.

  1. Set up with your agent. While an org has no datasource or no active policy bundle, admins see a Set up with your agent card on Overview. It has a prompt to paste into Claude Code, Cursor or another coding agent: Set up VaultKit for this project by following https://docs.vaultkit.io/setup.md. Control plane: <URL>. The agent then runs setup through a setup session that the admin approves. Once the org is set up, the card becomes a smaller Set up again with your agent link. Members see neither. See Set Up VaultKit with a Coding Agent.
    • The URL is the address the console was opened at (or VITE_API_BASE_URL if the console image was built with one). The console proxies the API, so this is the URL vkit uses. Make sure people open the console at APP_HOST, its public address.
  2. The Create agent token dialog is easier to use.
    • The tenant warning gives a count of tenant-scoped datasets with a Show list toggle, and goes away once a tenant is entered. The Tenant field explains what value it takes.
    • Cancel and Create token stay visible while the form scrolls.
    • After creating a token, Copy with token copies the three export lines with the token filled in. The block on screen still shows <paste token>.
    • The summary always shows the tenant, with a warning when there is none and the org has tenant-scoped datasets. The expiry shows the date and time.

Upgrading to 0.13.0-alpha

Back up the database, then move to 0.13.0-alpha: run ./scripts/install.sh --version 0.13.0-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags instead. funl didn’t change in this release, but keep all three on the same version. Upgrade vkit to 2.0.0 as well. It’s a major release: see Upgrading to vkit 2.0.0. The Python SDK stays at 0.5.0.

Upgrade the control plane before vkit. vkit 2.0.0’s vkit login --setup needs setup sessions (item 3), and its --allow-dirty bundles need item 4.

Six database migrations run when the control plane starts:

  1. Built-in role names can’t be approval groups. This is a security fix. A require_approval policy with no approver falls back to admins, and a member whose approval groups included admin could approve those requests as if they were an admin.
    • admin, member, approver and agent are reserved. Creating or updating a user with one of them in approval_groups returns 422, and so does uploading a bundle whose approver_role or approver_roles names one.
    • Only admins sign the admin fallback, whatever groups they’re in. Approve-any users no longer can.
    • The migration removes the reserved names from existing users and keeps their other groups. Bundles already active keep working: a policy there that names admin is signed by admins only.
    • Rename any group your policies call member, approver or agent before redeploying them.
  2. Approvals for groups with no members go to org admins. Before, a request routed to a group nobody was in could only be approved by admins, one group per admin, so a rule needing two empty groups never finished in an org with one admin.
    • One admin’s approval now signs every outstanding group the request needs that has no active members, recorded with approver_source: "admin_fallback". A group that has members still needs one of them.
    • POST /policy_bundles returns warnings, one per group named by a policy that has no members (approval_group_has_no_members). The bundle is still accepted. vkit 2.0.0 prints them.
    • The agent’s 202 says an org admin will approve (admin_fallback_groups, message).
    • GET /approval_groups lists groups from approver_roles as well as approver_role, and adds active_member_count and admin_fallback per group. vkit doctor reads them.
    • Audit: request.queued_for_approval has admin_fallback_groups, and approval events have approver_source (and signed_roles on sign-offs).
    • Approving a request made by your own agent token is allowed and recorded: self_approval: true on the approval, its sign-off and its audit events. The console’s Approvals page says “acting for you”.
  3. Setup sessions: a short-lived token for coding agents. vkit login --setup asks for a setup session, an admin approves it in the console at /setup/approve, and the CLI gets a vkit_setup_ token that lasts 30 minutes.
    • It can only do setup: datasources, scans, the registry, policy bundles and reading what’s set up. Anything else gets 403 setup_scope_forbidden. It can’t create agent tokens or approve requests.
    • In an org that already has policies or datasources, it can’t replace them unless the admin ticks “Allow this session to replace existing policies and datasources” when approving. Reruns that change nothing work either way.
    • Admins can revoke a session from the console, and vkit logout ends it.
    • The approval link uses FRONTEND_BASE_URL, so check that it points at the console people actually open.
    • Setup actions that change nothing now answer 200 with already_existed, already_active or unchanged for everyone. A different datasource or bundle under an existing name returns 409 (datasource_exists, bundle_version_exists, bundle_checksum_exists).
  4. Bundles built with uncommitted changes are accepted and recorded. vkit policy bundle --allow-dirty sets source.dirty in the bundle. It’s stored with the bundle and recorded as dirty on policy_bundle.created and policy_bundle.activated. Before, these bundles got a 422.
  5. Admins can create agent tokens in the console. The Agents page has a Create agent token button. It uses the same endpoint and audit event as vkit agents tokens create, shows the token once, and gives the VAULTKIT_TOKEN, VAULTKIT_BASE_URL and VAULTKIT_ORG lines to set where the agent runs.

Upgrading to 0.12.0-alpha

Back up the database, then move to 0.12.0-alpha: run ./scripts/install.sh --version 0.12.0-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags instead; funl changed too (items 8 and 9), so keep all three on the same version. Upgrade vkit to 1.5.0 and the Python SDK to 0.5.0 as well:

Upgrade the control plane before deploying a bundle that uses vkit 1.5.0’s new keys.

Two database migrations run when the control plane starts:

  1. Requests that name a field the registry doesn’t have are refused. This is a security fix. Policies match on registry labels, so a field missing from the deployed bundle’s registry matched no policy and was allowed, unmasked and without approval. That covered a column added to the database after the last scan, and Postgres system columns such as xmin and ctid. Now every dataset and field a query touches (in columns, aggregates, filters, grouping, sorting and joins) is checked against the registry before policies are evaluated, on the intent API and on /requests.
    • An unknown field is refused with 422 and names the fields the requester can use: “Unknown field brand on payment_methods. Valid fields: id, card_brand, …”. Fields denied to the requester aren’t listed.
    • An unknown field on a dataset hidden from the requester is answered with 404 “Dataset not found”, like the dataset itself, so the answer never confirms the dataset exists. A join to a dataset that isn’t in the registry gets the same 404; it used to be a 422.
    • The request is refused before anything is decided, so it never queues an approval or issues a grant. Before, a misspelled field on a dataset that needs approval went to the approvers, and failed with “Query engine error” only after they approved it.
    • It’s still recorded. Activity shows it with a new outcome, Rejected, with its own tile and filter (decision=rejected on GET /activity, and a rejected count). The row has the reason, the agent and token or the person, the dataset and the requested field names. The audit log gets a request.rejected event, and the response carries the request_id it was recorded under. A request for a dataset the registry doesn’t have is recorded the same way. On /requests it still answers 422 “Unknown dataset”; see item 4 for both APIs.
    • To read a column added since your last scan, run vkit scan, review its labels, and redeploy the bundle.
    • Grants issued before the upgrade still run the query they were approved for until they expire or are revoked.
  2. GET /aql/datasets/:name/schema returns 404 for a dataset denied to the requester, matching the intent API. Before, it returned 200 with the dataset’s name and no fields.
  3. Dataset discovery says what a request would get. GET /aql/datasets and GET /aql/datasets/:name/schema now evaluate policies as a real request would, and their hints are no longer empty. Upgrade the Python SDK to 0.5.0 for the vaultkit_describe MCP tool, which uses them.
    • Each field’s visibility is the decision a request for it would get (allow, mask or require_approval). It used to be null, and masked was always false. New on each field: approver_roles, mask (the masking method, which applies even after approval) and tenant_column.
    • A dataset’s visibility is the strongest of its fields’ decisions. It used to be allow for almost every dataset, because no field-based policy was matched.
    • Policies are evaluated in the environment and region of the dataset’s datasource. The environment and dataset_region query parameters are ignored, as on the intent API.
    • Tenancy applies. A tenant-scoped dataset is left out of the list, and its schema returns 404, for a requester with no tenant: they can’t query it. Datasets have a new tenant_scoped flag.
    • The datasets and fields come from the deployed bundle’s registry, which is what requests are checked against. They used to come from the stored registry entries, which a newer scan could change before it was bundled and deployed.
  4. The intent API answers an unknown dataset and a hidden one identically. This is a security fix. Before, an agent could tell a dataset that doesn’t exist (422 “Unknown dataset: x”) from one that exists but is hidden from it by policy (404). It could also tell them apart through validation errors, which a hidden dataset got and an unknown one didn’t. Now both get the same response, with the same status and body: 404 {"error": "Dataset not found", "request_id": "…"}. The dataset is checked before anything else in the request.
    • Activity and the audit log keep the difference. An unknown dataset is Rejected. A hidden one is Denied (“Refused: dataset hidden from this requester”), with a request.denied audit event naming the policy that hides it.
    • The policy and reason behind a hidden dataset are shown to admins only. Members see the request but not why, in the details, in its raw events and in the CSV export. The requester was told the dataset doesn’t exist.
    • Before, a hidden dataset on the intent API wasn’t recorded at all.
    • Agents with no tenant: a tenant-scoped dataset is treated as hidden from them. They can’t read it at all, so they get the same 404. Before, they got 403 tenant_required with an explanation. Activity records it as Denied (“Refused: tenant-scoped dataset, agent has no tenant”), with the explanation for admins only. vkit 1.5.0 warns when you create a token with no tenant in an org that has tenant-scoped datasets. People keep the 403 explanation: they have no tenant either, and the console shows them why.
    • People’s /requests: a dataset that doesn’t exist, and one denied to the person by policy (a deny for the whole dataset, joined datasets included), now get the same 404 {"error": "Dataset not found", "request_id": "…"}. Before, they got 422 “Unknown dataset: x” and a 403 policy denial with its reason. Activity keeps the real reason for admins: Rejected for an unknown dataset, Denied for a denied one. A deny on particular fields is still a 403 with its reason.
  5. Approval rules: every policy, one group per person, and any-of groups.
    • When several policies require approval, every one’s requirement must be met, and a person counts for one group only. This was already enforced; it’s now recorded per policy (a migration adds approval_requirements to policy_approvals). Approvals queued before it need every listed role, as before.
    • A policy can name several groups: approver_roles: [security, data_owner] with approval_mode: all (the default, each group signs off) or any (one does). vkit’s bundle check validates both. A single approver_role compiles as before.
    • A policy can match how a query reads a field: match.fields.usage: row (value by value, MIN/MAX included) or aggregate (only COUNT, SUM, AVG or grouping).
    • Upgrade the control plane before deploying bundles that use these. An older control plane rejects them (unknown keys in the bundle).
  6. Approval progress is shown everywhere, in the same words: “Needs 2 approvals: finance_manager ✓ Ada, security waiting”.
    • The approvals API has progress (summary, needed, items) and requirements.
    • GET /requests/:id and a pending intent response have approval_progress.
    • The console’s Approvals page shows it in the list and on each request.
    • Discovery fields have approval (“Needs 1 approval: finance_manager”), and aggregate_visibility / aggregate_approval when aggregating a field is decided differently from reading it. Python SDK vaultkit_describe and vaultkit_check_approval pass these on.
  7. Packs: totals of financial data no longer need approval, and agents’ financial reads need one sign-off, not two. These ship in vkit 1.5.0 (financial_compliance and ai_safety 2.1.0). Run vkit policy pack upgrade, vkit policy bundle and vkit policy deploy.
    • fin_require_approval_financial_prod now applies to financial data read row by row (usage: row). Counts, sums, averages and grouping of financial columns are allowed in production. MIN and MAX still need approval, because they return a single raw value.
    • ai_require_approval_agents_sensitive_prod now covers personal data only. A new ai_require_approval_agents_financial_prod asks security or a finance_manager (approval_mode: any) for agents reading financial rows. With financial_compliance’s finance requirement, one finance sign-off meets both. Before, an agent’s financial read needed finance and security.
  8. Mixed-case columns work. funl now quotes every identifier it writes (schema, table, column, alias), so a column such as customers."firstName" or payments."riskScore" keeps its case and a reserved word (order, user) is read as a name. Before, Postgres folded unquoted names to lower case and these queries failed with “Query engine error”. Result rows are keyed by the exact field and alias names asked for (firstName, not firstname).
  9. Query errors say what went wrong. funl maps Postgres errors to clear ones, and the control plane passes them on instead of turning every failure into 502 "Query engine error":

    Postgres error Response
    Unknown column or table 422, “Column x doesn’t exist on dataset”, advising a rescan
    A value of the wrong type, or an incompatible comparison 422, which value or what kind of use
    The datasource’s login may not read the data 403, a safe message
    Busy (no free connections) 503 with Retry-After, as for funl’s own limits
    Timeout, or a statement timeout 504
    Anything else 502 "Query engine error", details audited only
    • Every error body has error, a code (undefined_column, type_mismatch, permission_denied, …) and the correlation_id. funl’s own errors are JSON too.
    • Messages never include SQL, parameter values or connection details.
    • A failed execution now stores the generated SQL, with $n placeholders and never the parameters. Activity shows it to admins.
    • An agent’s request that reuses a grant now reports a funl failure the same way. Before, it returned funl’s raw error text.
    • The Python SDK doesn’t retry these: 422 and 403 are deterministic. It retries 503 (honouring Retry-After), 504 and 502.
    • Upgrade funl and the control plane together. An older control plane shows a newer funl’s JSON body as the message of a 422.
  10. Activity says when a query failed to run. Before, a request whose query failed kept its decision (“Approved”, “Allowed”) and looked as if it hadn’t been fetched yet.
    • The list shows the latest run’s outcome with the decision: “Approved · failed: column doesn’t exist”.
    • The Failed tile and decision=error now include requests whose latest run failed, as well as those that failed before a decision. The error count can overlap another tile; all still counts each request once.
    • A request’s details say the query failed and why, instead of “Approved. Not run yet.” Admins see the failed run’s SQL (placeholders only) under Failed SQL.
    • The API: each request has last_run (status, code, reason, schema_error) and failed_runs_count, and executions_count still counts successful runs. Each run has error_code and error_reason.
    • Grants whose runs fail on the schema (a column or table the datasource no longer has) are marked “Fails: column doesn’t exist” on the Agents page and in the approvals history. Grants carry last_run, and approvals carry grant_last_run. They aren’t revoked automatically; revoke them from the Agents page.
    • A migration adds the columns and backfills them from existing runs. Older errors are classified from their text.
  11. Revoking a grant no longer blocks its query. Before, asking the same query again after its grant was revoked returned "Grant revoked" until the grant would have expired. Now the query is evaluated afresh: policy issues a new grant, or it goes to approval again. The revoked grant itself still can’t be fetched.

Upgrading to 0.11.0-alpha

Back up the database, then move to 0.11.0-alpha: run ./scripts/install.sh --version 0.11.0-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags instead; funl changed too, so keep all three on the same version. Upgrade vkit to 1.4.0 and the Python SDK to 0.4.0 as well: item 1 below ships in vkit, and the MCP tool only tells agents about time buckets from SDK 0.4.0.

One database migration runs when the control plane starts: an unreviewed_fields column on request_activities, empty for existing rows.

  1. Agents get unreviewed columns masked under the starter pack (vaultkitcli#45). This is a security fix, and it ships in the CLI: starter 2.1.0 adds mask_unknown_for_agents, which masks every column labelled unknown (full, so values come back as *****) when an agent token (requester_role: agent) reads it, in every environment, until someone gives the column a real label. Before, starter allowed these columns and only recorded why, and on a real schema they are where personal data hides: vaguely named text and JSONB columns such as notes, meta, payload or value. To get it, upgrade vkit, then run vkit policy pack upgrade starter, vkit policy bundle and vkit policy deploy.
    • Masks combine and the strictest decision wins, so no allow policy, at any priority, unmasks these columns, and a partial or hash mask on them loses to full.
    • In production, ai_safety still asks security to approve an agent reading an unknown column. Approval doesn’t lift masks, so the column stays masked after it.
    • Because the columns are fully masked, an agent’s query can no longer filter, group or sort on them, or aggregate their values (MIN, MAX, SUM, AVG; counting still works). It is denied with the existing “masked fields” reasons. Review the column to allow that.
    • People (not agents) are unaffected: they still read unknown columns in clear, flagged by flag_unknown_sensitivity, unless your own policies say otherwise.
    • An agent token created with a role other than agent doesn’t match, as with ai_safety.
  2. Activity says when a request touched unreviewed columns. A request’s details list the requested columns still labelled unknown when it was decided: “N columns are unreviewed and masked until you review them”, or just “unreviewed” when they weren’t masked, with how to review them. Requests recorded before this release show nothing.
  3. Scans list unreviewed columns. The scan response has an unreviewed list per dataset, and vkit scan <datasource> (with the next vkit) prints them and how many there are. Older vkit versions ignore the field.
  4. AQL can group by a time bucket (#106). A group_by entry can now be {"field": "created_at", "bucket": "quarter", "alias": "quarter", "timezone": "America/Toronto"}, with buckets day, week, month, quarter and year, so a trend is one grouped request instead of one request per period. It works on the intent API and /requests, on timestamp and date columns, and follows the masking rules for grouping: denied on fully or partially masked columns, allowed on hashed ones. The bucket, alias and time zone are part of the fingerprint. Both the control plane and funl must be upgraded: an older funl rejects the request with invalid JSON. See Time buckets.
  5. Approving a request no longer fails when its grant ref collides. A new grant’s ref could match one in another organization, and the approval then failed with a 422. Refs now carry 10 random bytes, are checked for uniqueness across all organizations, and are drawn again on a collision. Existing refs keep working. A ref on its own still authorises nothing.
  6. The control plane refuses bundles that leave out their packs’ policies. Bundles from vkit 1.4.0 list each pack’s policy ids, and deploying one that’s missing any of them returns 422. Bundles without the list, from older vkit versions, are accepted as before. vkit 1.4.0 also refuses to build such a bundle, and names the missing files.
  7. Agents page:
    • Grants a person approved are listed on their own. Grants that only cache a policy decision fold into one line per agent (“N queries allowed by policy”), with a button to revoke them all.
    • Grants issued under an older policy bundle no longer work, so they’re listed as “Inactive under current policy”, greyed out, and left out of the live counts. The note says whether rolling back to that bundle would make them work again. They can still be revoked.
    • In the API, live_grant_count now counts only grants that still work, and inactive_grant_count is new.

Upgrading to 0.10.0-alpha

Back up the database, then move to 0.10.0-alpha: run ./scripts/install.sh --version 0.10.0-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags instead. Upgrade vkit to 1.3.0 at the same time. The Python SDK 0.3.1 works unchanged.

Four database migrations run when the control plane starts:

  1. Revoking now cuts off access immediately. This is a security fix. Before, revoking an agent token stopped new requests, but the token’s live grants kept working until they expired, its pending approvals stayed open, and a query already running still returned its rows. Now revoking a token also revokes its grants and denies its pending approvals. A query in flight returns no rows, and a revoked or expired token gets 401 with code: token_revoked or token_expired and the reason.
  2. Every revoke needs a reason. That covers tokens, grants and the new revoke all access for an agent. Without one, the control plane returns 422 A reason is required, so vkit grant:revoke and vkit agents tokens revoke from vkit 1.2.2 and earlier fail. vkit 1.3.0 requires --reason. Agents see the reason in their errors, so don’t put secrets in it.
  3. New Activity page. It’s the audit log of every request: who asked, for what, the decision and why, and, for admins, the executed SQL. It has filters, a link for each request, and CSV export.
    • Members see only their own requests and their agents’.
    • Executed SQL and query parameters are shown only to admins.
  4. Query parameters are now stored, and cleared after 30 days. Parameters are filter values, so they can hold personal data. Set ACTIVITY_PARAMETER_RETENTION_DAYS to change how long they’re kept, or 0 to never store them. An invalid value stops the control plane at startup. Expired parameters are hidden at once and cleared at start-up and after new queries. On an instance that rarely restarts or sees no queries, run bin/rails activity:clear_expired_parameters from cron.
  5. New Agents page. It groups agent tokens by name and shows each agent’s tokens, live grants and recent requests. Admins can revoke one token, one grant, or all access for an agent. Members see only agents whose tokens they created, read-only.
  6. Agent tokens record who they act for and who created them. Use vkit agents tokens create --for <email> (vkit 1.3.0) to set the person an agent acts for. Its requests then appear in that person’s Activity. Tokens created before this release act for no one, and their creator shows as unknown.
  7. API changes.
    • Every request response, including denials, now includes request_id, the id shown in Activity.
    • Each request is identified by a correlation id: the control plane’s request id, which it also sends to funl as X-Correlation-ID.
    • New endpoints: /activity and /agents.
  8. The audit log is in the control plane’s Postgres. The docs no longer describe configurable audit sinks, which never existed. Activity’s own tables are always in Postgres. Its Raw event view needs the Postgres audit sink, and says so if it’s off.

Upgrading to 0.9.3-alpha

Back up the database, then move to 0.9.3-alpha: run ./scripts/install.sh --version 0.9.3-alpha in the deploy repository, then pull and restart. With your own compose file, update all three image tags instead. There are no database migrations, and nothing changes in the control plane, funl or the API. vkit 1.2.2 and the Python SDK 0.3.1 work unchanged.

This release only changes the console:

  1. The console has the direction B look of vaultkit.io. That means a paper background, ink text, IBM Plex type, and orange only for actions and links. The sidebar, header, sign-in, registration and activation screens are restyled; the other pages pick up the new colours and type.
  2. The console no longer loads fonts from Google. IBM Plex is served by the console itself, so a browser opening it makes no requests to Google Fonts.
  3. New favicon and app icons, an ink tile with a paper mark.
  4. The session-expired notice is ochre, not red.

Upgrading to 0.9.2-alpha

Back up the database, update all three image tags in docker-compose.yml to 0.9.2-alpha, then pull and restart. Upgrading from 0.8.0 or earlier? Read the 0.9.1-alpha and 0.9.0-alpha notes too. vkit 1.2.1 and the Python SDK 0.3.1 work unchanged.

Skip 0.9.1-alpha. Its console breaks every deployment behind a TLS proxy, as item 1 explains. 0.9.2-alpha includes all of its fixes.

One database migration runs when the control plane starts. It adds policy_approvals.denial_reason and moves existing denial reasons there. Denying used to overwrite the policy’s reason for asking for approval, so that reason is gone for requests denied before this release.

  1. The console works behind a TLS proxy. The 0.9.1-alpha console replaced X-Forwarded-Proto with http, so the control plane redirected every request to HTTPS, forever. Check that your proxy sends X-Forwarded-Proto: https. If Cloudflare is in front, use an SSL mode that reaches your proxy over HTTPS, or the proxy will report http.
  2. Plain HTTP needs FORCE_SSL=false. The control plane redirects anything that isn’t HTTPS, so a trial on http://<server-ip>:5173 needs that setting in .env. Leave it out of production.
  3. The control plane is no longer published on port 3000 in deploy/alpha. The console proxies to it, so point your reverse proxy at port 5173. Check your own docker-compose.yml: if port 3000 is still published, remove it unless a multi-domain proxy outside Docker needs it. Anything that calls :3000 directly needs to use the console URL instead.
  4. Every login now lasts one hour. Password sign-in lasted two hours, and OIDC and CLI logins also lasted two despite being meant to last one. Tokens issued before the upgrade keep their original expiry. Agent tokens have their own expiry and aren’t affected. Scripts that use a login token through VKIT_TOKEN and run for more than an hour should use an agent token.
  5. The console handles expired sessions. It goes to sign-in with “Your session expired. Sign in again to continue.” and returns to the same page. Failed requests show an error with a retry, not an empty page.
  6. The Approvals page is redesigned.
    • It has three tabs: Waiting on you, Your requests and History. Requests show why the policy held them, what the agent would get, and the exact query.
    • Approve and Deny wait five seconds with Undo before they’re sent. If your session expires during those seconds, the decision is lost and the request stays waiting.
    • A deny reason is now optional, and it reaches the requester and their agent through GET /requests/:id.
  7. Members have their own Overview, with what’s waiting on them, their active grants and their recent requests. New members see how to connect an agent. Admins keep the existing Overview.
  8. API changes.
    • GET /approvals?state=decided lists past decisions. Use it instead of state=approved, which returns an empty list.
    • Deciding a request that’s already decided, or approving one queued under an older policy bundle, now returns 409. They used to return 403 and 500.
    • On a denied approval, reason is the policy’s reason, and the approver’s is in denial_reason. Integrations that read the approver’s reason from reason need updating.

Upgrading to 0.9.1-alpha

Update all three image tags in docker-compose.yml to 0.9.1-alpha, then pull and restart. There are no database migrations. Upgrading from 0.8.0 or earlier? Read the 0.9.0-alpha notes too.

Upgrade the clients as well: vkit 1.2.1 verifies TLS certificates when signing in, and the Python SDK 0.3.1 passes policy denial reasons, including the new ones below, through to MCP agents. vkit 1.2.0 and SDK 0.3.0 still work.

  1. Filters on masked fields are denied. Full and partial masking change the values a query returns, but filters compared the unmasked column, so a filter could confirm or recover a masked value.
    • A request whose filters name a field that is fully or partially masked for the requester is denied. This includes nested groups and joined tables.
    • having is denied on any masked field, hash masking included.
    • Hash-masked fields can still be filtered in filters; the comparison is against the hash.
    • Grants are rechecked when reused, so an existing grant whose query filters a masked field stops working. Request again without that filter.
    • Agents and scripts that filtered on masked fields now get a denial. Drop the filter, or ask for a policy that doesn’t mask the field for that requester.
  2. The console image is a production build served by nginx on port 80. The 0.9.0-alpha image ran the Vite development server on port 5173, which the 5173:80 port mapping never reached. The new image proxies the API and sign-in routes to control-plane:3000, so keep the control plane’s service name as control-plane. The console is still at http://<host>:5173.

Upgrading to 0.9.0-alpha

Update all three image tags in docker-compose.yml to 0.9.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

Two database migrations run when the control plane starts:

Upgrade the control plane before vkit. vkit 1.2.0 can write tenant_column into bundles, which a 0.8.0 control plane rejects. Then upgrade to vkit 1.2.0, which this release needs for the steps below.

  1. Requester clearance and region are set by admins.
    • Users and agent tokens have a clearance (low, medium or high) and a region (EU, US, CA or APAC). Set them in the console (Team, then Edit member), through the users and agent-token APIs, or with vkit agents tokens create --clearance --region.
    • Policies match them as requester_clearance and requester_region. Values in a request are ignored: vkit request --requester-region and --requester-clearance, and the intent API’s requester_region and requester_clearance.
    • Policies that matched a region the request claimed stop matching until admins set regions.
  2. Masking combines every matching mask policy, evaluated with the requester’s context. When two policies mask one field, the strictest method wins (full, then hash, then partial). An approval lifts the approval requirement, not the masks: some fields that came back unmasked after approval are now masked.
  3. The schema classifier was rewritten.
    • It matches whole words, so description, tip and company are no longer flagged as IP addresses or card numbers.
    • Secrets, government IDs, payment cards, bank accounts and health data are now rated high, and secrets have their own credential category.
    • A text or JSON column it can’t place is rated unknown for review, not low.
    • Rescans keep labels from a deployed bundle or a manual edit, and list the classifier’s disagreements as suggestions, which vkit scan prints. unknown labels, and labels that only came from earlier scans, are replaced.

    After upgrading, rescan each datasource, review the changes and suggestions in datasets/registry.yaml, and redeploy.

  4. The policy packs are now 2.0.0.
    • Run vkit policy pack upgrade. The 1.x clearance, region, analyst and financial policies never fired; 2.0.0 replaces them with policies that do.
    • vkit policy bundle refuses policies that can never match, including those in the 1.x financial_compliance and ai_safety packs, so a bundle that built before may fail until you upgrade.
    • Create the approval groups the packs name (data_owner, security, finance_manager); until then only admins can approve.
  5. Tenant isolation for shared tables (opt-in).
    • Mark a dataset with tenant_column: <column> in datasets/registry.yaml, and issue agent tokens for one tenant each: vkit agents tokens create --tenant <id>.
    • Every query on a marked dataset, directly or through a join, is confined to the token’s tenant. Grants and approvals are bound to it, and the audit log records it.
    • A requester without a tenant, including every user, is denied on marked datasets.
    • Nothing changes until a dataset is marked. vkit policy bundle refuses a dataset that has another dataset’s tenant column but isn’t marked; set tenant_column: false for a table every tenant may read.

Use the Python SDK 0.3.0 or later for MCP agents, as in 0.8.0.

Upgrading to 0.8.0-alpha

Update all three image tags in docker-compose.yml to 0.8.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

There are no database migrations.

  1. Reworded agent requests reuse their approval. Agents send a free-text purpose with each request, and it used to count toward how VaultKit recognises a repeat request. Rewording it sent an approved request back for approval, and a reworded request queued a second approval next to a pending one. The purpose no longer counts: the same query, from the same requester in the same context (environment, region, clearance), reuses its grant until it expires, or joins the pending approval. The purpose is still stored and audited, and approvers see the purpose of the first request.

    Grants and pending approvals created before the upgrade were recognised the old way, so a rerun of one of them asks for approval once more.

  2. The console has the new VaultKit logo. The sign-in pages, the sidebar, the not-found page and the favicon use the refined mark from vaultkit.io, and there is an icon for the iOS home screen. The browser tab now reads “VaultKit Console”, and a shared console link previews with vaultkit.io’s image instead of a broken one.

Use vkit 1.1.6 or later:

Agents using the MCP server need the Python SDK 0.3.0 or later (pip install "vaultkit>=0.3.0") to run aggregate queries. With 0.2.0, agents fetch rows and count them themselves.

Upgrading to 0.7.0-alpha

Update all three image tags in docker-compose.yml to 0.7.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

This release redesigns sign-in and organization registration, and tightens how both behave. There are no database migrations.

  1. OIDC_ENABLED now switches SSO off everywhere. It used to affect only what the CLI was offered. With OIDC_ENABLED=false:
    • browser SSO sign-in sends people back to sign in with “SSO sign-in is turned off on this control plane”;
    • organization activation reports the same reason;
    • the CLI’s SSO login answers 403 sso_disabled.

    If you run with OIDC_ENABLED=false but still sign in with SSO in the browser, browser SSO stops working. Set OIDC_ENABLED=true, or remove the line (SSO is on by default).

  2. One identity provider, and one SSO organization, per control plane.
    • SSO always uses the control plane’s OIDC_ISSUER. Registration no longer asks for an issuer URL; it shows the configured provider and checks it server-side (GET /auth/identity_provider).
    • Organization creation runs the same check, and ignores any oidc_issuer it’s sent.
    • Only one SSO organization can use the provider (this was already true in the database). A second SSO registration is refused with sso_in_use, and the page offers email and password instead.
    • When OIDC_ISSUER isn’t set, or the provider is unreachable, SSO registration is unavailable and the page says why.
  3. Email-first sign-in. The sign-in page asks for an email first, and its domain decides the next step:
    • an email on a domain that an active SSO organization allows (its allowed email domains) goes to that organization’s SSO;
    • everyone else gets the password step, which offers “Sign in with instead" for people invited from other domains.

    The new POST /auth/sign_in_method never reveals whether an account exists.

  4. Sign-in no longer reveals accounts. Password sign-in now gives the same 401 for a wrong password, an unknown email, and a member of an SSO organization. Before, SSO members got 403 "This organization uses SSO", with an OIDC_ENABLED=false variant added in this release. Scripts that looked for that 403 should treat a 401 as “use SSO or check the credentials”.
  5. Passwords need 12 to 128 characters, with no rules about character classes. The control plane enforces it (it used to accept 6), and the console’s uppercase, lowercase and digit rules are gone. Existing passwords keep working; the rule applies when a password is set.
  6. Organization creation API changes (POST /api/v1/organizations and /organizations/password):
    • a slug is required, and it’s used as given, for SSO organizations too: lowercase letters and digits in hyphen-separated words, up to 60 characters;
    • a taken slug is 422 slug_taken. VaultKit no longer adds -2;
    • errors are 422 { "error": <code>, "message": … }, with these codes:
      • slug_taken, slug_invalid, name_required, email_invalid, domains_invalid;
      • password_too_short, password_too_long;
      • sso_unavailable, sso_in_use;
      • cannot_create, the generic code, which also covers an email that already has an account.
    • The SSO response no longer includes activate_url. The activation start path is /auth/oidc/org_activation/start?org=<slug>.
    • An unfinished SSO sign-up can be resumed with the same slug and admin email.
  7. The activation endpoint shows less. GET /api/v1/organizations/:slug/activation returns only the name of an organization waiting for activation, and the same 404 for active and unknown organizations. It no longer returns the admin email or issuer.
  8. No open sign-up. POST /api/users (a route with no controller behind it) is gone, and returns 404.
  9. Password sign-up has no email verification, and the console no longer claims it does. A new email-and-password organization goes straight to sign in. There’s also no “Forgot password?”: password users have no self-service recovery yet, so whoever runs the control plane resets passwords (for example, with bin/rails console).

Use vkit 1.1.5 or later: vkit request now shows requests that are waiting for approval, with their approver roles. Before, it printed “Unexpected response” and exited with status 1. The Python SDK needs no changes.

Upgrading to 0.6.0-alpha

Update all three image tags in docker-compose.yml to 0.6.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

This release redesigns the console (Overview, Team, a new Approvals page, user drawers and the 404 page) and adds the team access model behind it. It includes one database migration, which runs automatically when the control-plane container starts.

  1. Users migration. users gains access_level (admin or member), approve_any, approval_groups, last_seen_at and deactivated_at. Existing users are converted without changing what they can do:
    • admin stays an admin.
    • approver becomes a member who can approve any request.
    • member, or no role, becomes a member.
    • Any other role, such as finance_manager, becomes a member in that approval group.

    users.role itself is kept. Policies match it as requester_role, so they keep applying to the same people. It stays admin for admins: promoting or demoting someone in the console updates it too.

  2. Approval access model. A user can sign off on a request when one of its outstanding approver roles is in their approval groups. Admins and members who can approve any request can sign off on any one outstanding role. Each role still needs a different person, and nobody can act on their own request.
    • Manage this on the Team page, or with access_level, approve_any and approval_groups[] on POST and PATCH /api/v1/orgs/:slug/users.
    • The old role parameter still works: approver sets approve-any, and any other role becomes an approval group.
    • A refused sign-off now says “You aren’t in an approval group for …” instead of “Your role (…) cannot act on requests for …”.
    • The new Approvals page in the console lists what’s waiting on you, with approve, and deny with a reason. vkit approval:* keeps working.
  3. Removing users. Admins can remove someone from the Team page, or with DELETE /api/v1/orgs/:slug/users/:id. Users are deactivated, not deleted, so their history stays intact.
    • They can no longer sign in, by password or SSO, and tokens they already have get 401.
    • Their active grants are revoked.
    • Their pending requests are denied with “Requester was removed from the team”.
    • Approvals they already signed off on keep their sign-off.
    • You can’t remove yourself or the last admin.
    • Adding the same email again brings them back.
    • Agent tokens they created keep working. Revoke those separately with vkit agents tokens revoke.
  4. FUNL status is real now. GET /api/v1/system/status used to report funl as down whenever FUNL_ENDPOINT was unset, which was always, since deployments set FUNL_URL. The control plane now probes FUNL_URL/health with a one-second timeout, and reports running, down or not_configured. Keep FUNL_URL set, as the Quick Start’s .env does. The response also includes the release version.
  5. Another organization’s URL now returns 404. API calls to /api/v1/orgs/<another org's slug>/... used to return 403 when that organization existed and 404 when it didn’t, which revealed which slugs exist. Both now return 404 {"error": "Not Found"}. Policy bundle uploads also stop ignoring the slug in the URL. If a script checked for 403 on cross-organization calls, check for 404 instead.

Other changes:

Use vkit 1.1.4 or later; no CLI or Python SDK update is needed for this release.

Upgrading to 0.5.0-alpha

Update all three image tags in docker-compose.yml to 0.5.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

This release tightens how access requests are approved and how masked fields can be queried, and fixes two sign-off problems with SSO. It includes one database migration, which runs automatically when the control-plane container starts.

  1. Approval policies must name an approver role. Uploading a policy bundle now fails with 422 if any require_approval policy has no approval.approver_role. The error lists the policy ids. Bundles built with vkit policy bundle already require the role. Bundles that are active now keep working, but a request that matches an approval policy with no role now needs an admin (or a user with the approver role) to approve it. Previously anyone in the organization except the requester could approve it. Invalid bundles (schema or checksum errors) now also return 422 instead of 500.
  2. Every matched approver role must sign off. When a request matches several approval policies (for example finance on amount and security on ssn, or two joined datasets), each of their roles must approve. Previously one approver from any of them was enough.
    • Each role needs a different person. Nobody can sign off twice, and the requester can’t sign at all.
    • Admins and users with the approver role can still sign for any role, but only one role per sign-off.
    • The grant is issued after the last sign-off. Until then, approving returns status: "pending" with the roles still waiting, and the request stays in the queue of the people who still need to act.
    • Any eligible approver can deny the whole request.
    • Approvals pending at upgrade time keep their single routed role.
  3. Grant lifetimes are capped by the policy. An approved grant now lasts for the policy’s ttl_seconds by default, or the shortest TTL when several approval policies match. An approver can choose a shorter lifetime, but not a longer one. Previously the approver’s ttl_seconds (CLI default one hour) applied, with no maximum. A ttl_seconds that isn’t a positive integer now returns 422. Approvals pending at upgrade time are capped at one hour. If your policies set no ttl_seconds, grants still last one hour.
  4. Grouping or sorting by a fully or partially masked field is denied. Masking only changes returned values, so group_by, or order_by on a masked field, revealed how many distinct values were behind a mask and how they sorted. Such queries now get 403 with a reason like Grouping or sorting by fully or partially masked fields is not allowed: GROUP BY email. This includes a masked field selected as a plain column next to aggregates with no group_by, because those columns are grouped implicitly. Fields with hash masking can still be grouped and sorted, and COUNT over masked fields is still allowed.
  5. Okta sign-in works with email verification. Okta sends email_verified only in its userinfo response, not in the ID token, so every Okta sign-in was rejected as unverified. The control plane now reads it from userinfo when the ID token doesn’t include it, for the same user and the same email address. Users whose Okta email is still unverified are still rejected.
  6. Fixed: some SSO sign-ins ended in 401 on every page. Exchanging a login session twice at the same time could hand the console an empty token. This was seen mostly with the development console, which runs the sign-in step twice. The control plane now answers the second exchange with 410, and the console exchanges each sign-in once. Users who hit this only need to sign in again.

Use vkit 1.1.4 or later to see which approver roles a request still needs. vkit approval:approve also no longer defaults --ttl to one hour, so grants get the policy’s lifetime. Older CLIs keep working, but print an empty grant ref after a partial sign-off. The Python SDK needs no changes.

Upgrading to 0.4.0-alpha

Update all three image tags in docker-compose.yml to 0.4.0-alpha, then pull and restart. Upgrading from an older release? Read the notes for each version in between as well; their changes also apply.

This release hardens how the control plane talks to funl, how organization data is scoped, and how access requests are approved. There are no database migrations.

  1. Upgrade the control plane and funl together. Every call from the control plane to funl now carries a token issued for that single request: valid for about a minute and bound to a SHA-256 of the exact request body. A new funl-runtime rejects requests from an older control-plane, and a new control-plane talking to an older funl-runtime loses that protection. Deploy all three images from the same release.
  2. Funl’s port is no longer published. Run funl-runtime with expose: 8080 in docker-compose.yml, not ports: 8080:8080. The control plane reaches funl at http://funl-runtime:8080 on the Compose network. Anything that called funl from outside Docker stops working, which is intended. If your own docker-compose.yml publishes funl’s port, remove that mapping, and don’t route funl through a reverse proxy. Funl now also accepts only tokens signed by the control plane (RS256, issuer vaultkit-control-plane), one token type per endpoint. See Secrets & Security Notes.
  3. Rails console and scripts need an organization. Querying organization-owned records (users, grants, tokens, datasources, audit logs…) with no organization set now raises MultiTenant::MissingOrganization instead of returning every organization’s data. In bin/rails console, set Current.organization first, or wrap deliberate cross-organization work in MultiTenant.without_tenant { }. See Troubleshooting for examples. VaultKit has no background jobs or rake tasks that need changing.
  4. Approvals are stricter. Only users whose role matches the request’s routed approver role, admins, and users with the approver role can approve or deny a request. Requests with no routed role can be acted on by anyone except the requester. Nobody can approve or deny their own request, admins included. Users who could previously approve requests outside their role now get 403. Check that each approver role your policies route to is held by at least one user other than the people who request that data.
  5. In-flight sign-ins fail once with a 400. The OIDC state parameter is now signed and expires after 15 minutes. Any SSO sign-in that’s mid-flow while you deploy gets a 400 on the callback, because its state came from the old version. Signing in again works. A vkit login caught mid-flow keeps waiting after the browser shows the 400; press Ctrl+C and run it again.
  6. New optional query limits for funl-runtime: FUNL_MAX_CONCURRENT_QUERIES (default 50), FUNL_MAX_CONCURRENT_QUERIES_PER_ORG (10), FUNL_QUERY_WAIT (2s) and FUNL_QUERY_TIMEOUT (20s). See Query limits (optional) above.
    • The defaults keep today’s behaviour under normal load. Invalid values stop funl at startup with the variable named.
    • FUNL_MAX_CONCURRENT_QUERIES also caps funl’s active database connections, so keep it within Postgres’s max_connections divided by the number of funl instances.
    • Clients may now get 503 “Query engine is busy, retry shortly” (an organization, or funl as a whole, is at its limit; retry after a second) or 504 “Query timed out” from grant fetches, instead of the generic 502.

The Python SDK and the vkit CLI need no changes for this release.

Upgrading to 0.3.0-alpha

Update all three image tags in docker-compose.yml to 0.3.0-alpha, then pull and restart. Upgrading from 0.1.x? Read the 0.2.x-alpha notes below as well; their behaviour changes also apply.

This release tightens SSO (OIDC) sign-in. Organizations that use email and password are unaffected, apart from gaining the Teams & Roles page described below.

Before you upgrade an SSO organization

What changes

After you upgrade

  1. Sign in to the console as an admin of each SSO organization.
  2. On Settings → Teams & Roles, either add the people who need access, or enter your company’s email domains under Allowed email domains.
  3. Ask a non-admin user to sign in, to confirm your identity provider’s emails are accepted.

Upgrading to 0.2.x-alpha

Update all three image tags in docker-compose.yml to 0.2.1-alpha, then pull and restart. Use 0.2.1-alpha rather than 0.2.0-alpha: the code is the same, but the 0.2.0-alpha images were published for linux/arm64 only and do not run on x86_64 hosts. From 0.2.1-alpha on, images are published for both linux/amd64 and linux/arm64. The control-plane image also moves from Ruby 3.1 on Debian 11, which no longer receives updates, to Ruby 3.4 on Debian 13. This is internal to the image and needs no configuration changes.

Behaviour changes to be aware of (compared with 0.1.x):


Troubleshooting

Containers start but UI shows 502

OIDC redirect loops or 404s

Cannot access the Console


After deployment:


Support

If you are a design partner and need help:


VaultKit is designed to deploy cleanly, predictably, and without surprises. If something feels harder than it should be, that’s a signal — and we want to hear about it.