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:
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
VaultKit supports two deployment models out of the box.
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.
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.
git clone https://github.com/vaultkit-inc/deploy.git
cd deploy
./scripts/install.sh
This does the following:
.env.example → .envVAULTKIT_VERSION in .envvkit_priv.pem, vkit_pub.pem)To install a specific release, use ./scripts/install.sh --version 0.9.2-alpha.
.envEdit .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_HOSTandFRONTEND_BASE_URLalways point to the same URL because nginx inside the Console unifies frontend and backend behind a single entry point.
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) |
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
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.
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.
If you want separate frontend and backend domains:
.env:APP_HOST=https://api.acme.com
FRONTEND_BASE_URL=https://app.acme.com
app.acme.com → Console container (port 5173)api.acme.com → Control Plane container (port 3000)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.
By default, VaultKit runs Postgres inside Docker.
If you already have Postgres:
postgres service from docker-compose.ymlDATABASE_URL to your existing databaseDATABASE_URL=postgres://vaultkit:<password>@db.acme.internal:5432/vaultkit
.env must not be committed to version controlBack 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.
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.
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.
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.export lines with
the token filled in. The block on screen still shows <paste token>.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:
approval_groups (item 1). The migration
logs each user it changes, and doesn’t put the names back on rollback.self_approval on policy_approvals.source_dirty on policy_bundle_versions. Existing bundles count as clean.setup_sessions; a setup_session reference on policy_bundle_versions;
allow_replace on setup_sessions.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.admin is signed by admins only.member, approver or agent before
redeploying them.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.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.request.queued_for_approval has admin_fallback_groups, and approval
events have approver_source (and signed_roles on sign-offs).self_approval: true on the approval, its sign-off and its audit events. The
console’s Approvals page says “acting for you”.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.
403 setup_scope_forbidden. It can’t create
agent tokens or approve requests.vkit logout ends it.FRONTEND_BASE_URL, so check that it points at the
console people actually open.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).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.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.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:
vaultkit_describe (item 3), clear errors and approval progress for
agents (items 6 and 9).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:
approval_requirements on policy_approvals. It’s empty for existing approvals,
which keep needing every listed role.request_activities, request_executions and grants,
backfilled from existing runs.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.
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.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.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.vkit scan, review its labels,
and redeploy the bundle.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.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.
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.visibility is the strongest of its fields’ decisions. It used to be
allow for almost every dataset, because no field-based policy was matched.environment and dataset_region query parameters are ignored, as on the
intent API.404, for a requester with no tenant: they can’t query it. Datasets have
a new tenant_scoped flag.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.
request.denied audit event naming the policy that hides it.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./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.approval_requirements to
policy_approvals). Approvals queued before it need every listed role, as before.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.match.fields.usage: row (value
by value, MIN/MAX included) or aggregate (only COUNT, SUM, AVG or grouping).progress (summary, needed, items) and
requirements.GET /requests/:id and a pending intent response have approval_progress.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.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.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).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 |
error, a code (undefined_column, type_mismatch,
permission_denied, …) and the correlation_id. funl’s own errors are JSON
too.$n placeholders and
never the parameters. Activity shows it to admins.422 and 403 are deterministic. It retries
503 (honouring Retry-After), 504 and 502.422.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.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.last_run, and approvals carry
grant_last_run. They aren’t revoked automatically; revoke them from the Agents
page."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.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.
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.
partial or hash mask on them loses to full.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.unknown columns in clear,
flagged by flag_unknown_sensitivity, unless your own policies say otherwise.agent doesn’t match, as with
ai_safety.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.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.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.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.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.live_grant_count now counts only grants that still work, and
inactive_grant_count is new.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:
request_activities and request_executions; request_id and
correlation_id columns on audit_logs; agent_tokens.user_id; and the pg_trgm
extension, for searching request purposes. On an external database, the control
plane’s database user must be allowed to create the extension. PostgreSQL 13 and later
allow the database owner to; otherwise, run CREATE EXTENSION pg_trgm; as an
administrator first;request_executions;created_by_id, last_used_at, revoked_by_id and revoke_reason on
agent_tokens, and event_id on audit_logs, backfilled from existing data where
possible;refusal column on request_activities.401
with code: token_revoked or token_expired and the reason.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.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.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.request_id, the id
shown in Activity.X-Correlation-ID./activity and /agents.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:
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.
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.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.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.VKIT_TOKEN and run for more than
an hour should use an agent token.GET /requests/:id.GET /approvals?state=decided lists past decisions. Use it instead of
state=approved, which returns an empty list.409. They used to return 403 and 500.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.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.
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.filters; the comparison is against
the hash.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.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:
users.clearance and users.region;agent_tokens.tenant, schema_registry_entries.tenant_column, and an index on
audit_logs (organization_id, details->>'tenant').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.
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.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.description, tip and company are no longer
flagged as IP addresses or card numbers.high, and secrets have their own credential category.unknown for review, not low.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.
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.data_owner, security,
finance_manager); until then only admins can approve.tenant_column: <column> in datasets/registry.yaml, and
issue agent tokens for one tenant each:
vkit agents tokens create --tenant <id>.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.
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.
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.
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:
VKIT_ENDPOINT and VKIT_TOKEN when both are set, for
scripts and CI;vkit policy bundle keeps masking.default_method: partial (and full) as written.
Older versions compiled every method other than the old names to full. If a
deployed policy uses partial, rebuild and redeploy its bundle with 1.1.6 to get
partial masking instead of full;origin remote can now deploy.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.
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.
OIDC_ENABLED now switches SSO off everywhere. It used to affect only what the
CLI was offered. With OIDC_ENABLED=false:
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).
OIDC_ISSUER. Registration no longer asks for an
issuer URL; it shows the configured provider and checks it server-side
(GET /auth/identity_provider).oidc_issuer it’s sent.sso_in_use, and the page offers
email and password instead.OIDC_ISSUER isn’t set, or the provider is unreachable, SSO registration is
unavailable and the page says why.The new POST /auth/sign_in_method never reveals whether an account exists.
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”.POST /api/v1/organizations and
/organizations/password):
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;422 slug_taken. VaultKit no longer adds -2;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.activate_url. The activation start path is
/auth/oidc/org_activation/start?org=<slug>.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.POST /api/users (a route with no controller behind it) is gone,
and returns 404.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.
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.
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.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.
access_level, approve_any and
approval_groups[] on POST and PATCH /api/v1/orgs/:slug/users.role parameter still works: approver sets approve-any, and any other
role becomes an approval group.vkit approval:* keeps working.DELETE /api/v1/orgs/:slug/users/:id. Users are deactivated, not deleted, so their
history stays intact.
401.vkit agents tokens revoke.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.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:
X-Request-Id through CORS, so the console can show
it on error pages.Use vkit 1.1.4 or later; no CLI or Python SDK update is needed for this release.
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.
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.amount and security on ssn, or two
joined datasets), each of their roles must approve. Previously one approver from any
of them was enough.
approver role can still sign for any role, but only one
role per sign-off.status: "pending" with the roles still waiting, and the request stays in the
queue of the people who still need to act.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.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.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.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.
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.
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.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.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.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.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.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.
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.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.
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.
email_verified. Every SSO sign-in now
requires the identity provider to assert that the user’s email is verified. This
applies to existing users too, not only new ones. Okta, Google and Auth0 send the
claim; Microsoft Entra ID often does not, and its users will be refused with
“Your identity provider has not verified your email address”. If you use Entra ID,
stay on 0.2.1-alpha until this is configurable.acme.com does not include eu.acme.com.GET/POST/PATCH /api/v1/orgs/:slug/users and
GET/PATCH /api/v1/orgs/:slug/settings. New SSO organizations can set allowed
domains during setup. In email-and-password organizations, admins set an initial
password for each new user; VaultKit does not send invite emails yet.vkit login is rejected, the CLI now
stops straight away instead of waiting about 10 minutes for the login session to
expire. CLI releases after 1.1.2 (which include vaultkit-inc/vaultkitcli#26) also
print the reason; 1.1.2 and earlier print Unexpected response: 403.organizations.allowed_email_domains and
three columns to cli_login_sessions. Both only add columns and run automatically on
startup.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):
limit return at most 100 rows. limit must be
between 1 and 10,000; limit: 0 (previously “no limit”) is rejected.group_by, having, order_by,
aggregates and joins are now policy-checked against the dataset they belong to.
Requests that filter or aggregate on sensitive fields may now be denied or require
approval.MIN, MAX, SUM and AVG over a masked field
are denied. COUNT is still allowed.users.id and o.id), they are returned as users_id and o_id.limit get new
fingerprints, so they are evaluated again on first use after the upgrade.422 with funl’s message at fetch time, and other
funl failures return 502, instead of 500.AND/OR filters, in lists, and aggregates,
group_by, having and order_by (single dataset). Use Python SDK vaultkit>=0.3.0
for analytics; older control planes silently ignore those parameters.docker compose logs consoledocker compose ps/auth/oidc/callback resolves to the Console URL/auth/callback is handled by the React appdocker compose logs consoleAfter deployment:
If you are a design partner and need help:
docker compose logsVaultKit 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.