Repository navigation
v0.55.0
0.55.0 - 2026-11-23
Breaking changes
Settings columns are encrypted at rest
Six columns that hold free-form JSON settings are now encrypted at rest with OTARI_SECRET_KEY, and the upgrade drops the cleartext columns:
| Table | Column |
|---|---|
org_provider_keys |
client_args |
provider_credentials |
client_args |
provider_endpoints |
default_params |
search_tool_credentials |
options |
org_web_search_keys |
options |
organization_guardrails |
validate_kwargs |
Each is a place a credential legitimately lives. Bedrock needs aws_secret_access_key in client_args, an endpoint behind a content delivery network or an identity-aware proxy needs that edge's authentication header, and a guardrail can take its vendor key as a parameter.
Drain running tasks, do not roll. The upgrade drops columns the previous release reads, so any pod still on 0.54.0 fails until it cycles out. Migrations run on start when auto_migrate is on, which is the default, so a rolling replacement applies the migration while old pods are still serving.
OTARI_SECRET_KEY must be set before upgrading. The migration refuses to run without it rather than sealing rows with a key the deployment cannot open later.
Take an inventory before upgrading. The upgrade drops the clear columns, so afterwards there is no record of which entries were stored and no way to tell which credentials to rotate. On PostgreSQL:
SELECT 'org_provider_keys.client_args' AS source_column, provider AS provider_or_profile, k AS arg_name, count(*)
FROM org_provider_keys,
jsonb_object_keys(CASE jsonb_typeof(client_args::jsonb)
WHEN 'object' THEN client_args::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
UNION ALL
SELECT 'provider_credentials.client_args', provider_type, k, count(*)
FROM provider_credentials,
jsonb_object_keys(CASE jsonb_typeof(client_args::jsonb)
WHEN 'object' THEN client_args::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
UNION ALL
SELECT 'search_tool_credentials.options', provider, k, count(*)
FROM search_tool_credentials,
jsonb_object_keys(CASE jsonb_typeof(options::jsonb)
WHEN 'object' THEN options::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
UNION ALL
SELECT 'organization_guardrails.validate_kwargs', profile, k, count(*)
FROM organization_guardrails,
jsonb_object_keys(CASE jsonb_typeof(validate_kwargs::jsonb)
WHEN 'object' THEN validate_kwargs::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
UNION ALL
SELECT 'provider_endpoints.default_params', provider, k, count(*)
FROM provider_endpoints,
jsonb_object_keys(CASE jsonb_typeof(default_params::jsonb)
WHEN 'object' THEN default_params::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
UNION ALL
SELECT 'org_web_search_keys.options', provider, k, count(*)
FROM org_web_search_keys,
jsonb_object_keys(CASE jsonb_typeof(options::jsonb)
WHEN 'object' THEN options::jsonb ELSE '{}'::jsonb END) AS k
GROUP BY 1, 2, 3
ORDER BY 4 DESC, 1, 3;
The CASE is required. These are SQLAlchemy JSON columns declared without none_as_null=True, so a Python None is stored as the JSON scalar null rather than as SQL NULL, and jsonb_object_keys raises cannot call jsonb_object_keys on a scalar as soon as it meets one.
Also count the value shapes, because the query above drops every non-object row without saying so. Substitute each table and column in turn:
SELECT coalesce(jsonb_typeof(client_args::jsonb), 'sql null') AS shape, count(*)
FROM org_provider_keys GROUP BY 1 ORDER BY 1;
Expect object, null and sql null only. A string, number, array or boolean row holds a bare value under no entry name, and the sealing step skips it before the column is dropped, so that value is destroyed rather than encrypted. Inspect any such row first.
On PostgreSQL, rewrite the tables afterwards. Dropping a column is a catalog change, and the sealing update leaves behind the row version it replaced, so the cleartext stays readable in the table's pages after the upgrade reports success:
VACUUM FULL org_provider_keys, provider_credentials, provider_endpoints,
search_tool_credentials, org_web_search_keys,
organization_guardrails;
pg_repack does the same without the exclusive lock. Two limits apply either way. The write-ahead log still holds the old row images until its retention window rolls over, and it has already streamed to every replica. On managed PostgreSQL the underlying disk blocks cannot be scrubbed, because the rewrite writes a new file and unlinks the old one. Rotating at source is the only complete remedy.
An address records that it was proved, not that it was not
The user table carried a negative stamp beside its verification stamp, where set meant the address was not proved by its holder. It is replaced by email_proven_at, set when the mailbox answered or a provider verified the address, so a proved address is now one column read. The migration derives each row from the pair it carried, so no row changes meaning and no deployment action is needed.
Anything reading the old column must be changed, and the sense is now inverted: what used to be email_vouched_at IS NOT NULL is now email_proven_at IS NULL.
The word "vouched" leaves the address vocabulary with it. AddressProof.VOUCHED is now AddressProof.SHARED, so an adapter written against SignupInvitePort needs the new member name. Two route descriptions and the generated OpenAPI document and dashboard client change to match. Uses of the word for OAuth providers and trace spans are a different subject and are unchanged.
Upgrade notes for overlays
These are internal moves with no deployment action, listed because an overlay bound through OTARI_BOOTSTRAP compiles against them.
DeploymentAdministrationAccess moved into the identity domain. It is now exported from gateway.services.identity rather than gateway.services.tenancy.deployment_user_service, and it takes its collaborators (UserRepository, OrganizationMemberRepository, BootstrapOperatorMarker) rather than a session. An overlay gating its own router on deployment-wide authority should take the DeploymentAdministrationAccessDep dependency from gateway.api.deps instead of constructing the reader, which is what every gate and read inside the gateway now shares.
What an identity signs in with is derived from one type. Callers that re-derived the means from credential columns should read that type instead.
Changed behavior
Master key rotation from a dashboard session now requires a step up. The caller must be the bootstrap operator and must re-enter their account password. A request carrying the master key in a header is unchanged. A deployment operator who is not the bootstrap operator can no longer rotate the master key from the dashboard, and an account with no password set cannot rotate from there at all.
A link is now treated as sent only when it reaches its recipient. The operator's password link, the invitation accept link and the ways offered in a refusal all ask whether mail can deliver, not merely whether mail is configured. The console transport shows a message to the deployment operator and delivers it to nobody, so on a deployment using it those links are now returned to be passed on by hand, and a password chosen through one no longer records the address as proved by a mailbox that never saw the link.
A block guardrail with no guardrails service configured is refused with 424, not 502. It carries the code guardrail_not_configured, as provider_not_configured does, because no retry fixes a configuration gap. The message no longer names OTARI_GUARDRAILS_URL, which a tenant of a hosted deployment cannot set. The request is still refused.
Clearing stored secrets now clears these settings too. Clearing an account's or an organization's stored secrets previously cleared only the API key, which left the settings behind. It now clears both.
Rotating OTARI_SECRET_KEY now re-seals search tool options. Rotation previously re-sealed the API key alone, and selected only rows holding one, so a keyless backend keeping its credential in the provider options was never visited. Its options stayed under the retired key and became unreadable when that key was dropped.
A write that would drop unreadable ciphertext is refused, rather than silently replacing a value the deployment can no longer open.
More credential-shaped entry names are masked when settings are read back over the management API.
The new-password hint no longer states a byte ceiling. It gives the minimum only. A password over 72 bytes still gets its own message as it is typed, and is still refused.
New
A guardrail block says which categories fired. Each entry in the 403 now carries categories, a list of what the guardrail reports, empty when it names nothing. explanation is unchanged. The Otari-Guardrails header carries the same list when it is not empty, which is where a monitor verdict is read. The names come from a vendor or from a service the caller chose. A check keeps them from any-guardrail's categories for a guardrail an organization defined, and from an optional categories list on a guardrails service's /validate result.
A guardrail span records what fired. The span carries otari.guardrail.categories as a list attribute. The stored value is capped as a whole, so categories past the cap are left off rather than losing the span.
A guardrail that could not be evaluated has a stable error code. The 502 now carries guardrail_unavailable in Otari-Error-Code and in the body, so a client can tell it from a provider outage without matching on the message.
The model listing reports temperature in supported_parameters, so a client can check before it sends the parameter.
Fixes
Organization membership scope now matches on SQLite. The query deciding which spend identities an organization may name compared a UUID column against its hyphenated string form. SQLite stores the column as CHAR(32) hex, so the comparison never matched there. PostgreSQL deployments were not affected.
A model a vendor refuses natively is served as chat. A provider with its own Responses API can still refuse one model. That used to fail the attempt and move the plan to another provider, another model or a 502. Such a refusal is now recognized and the model is served through chat.
A stored routing policy accepts a catalog id. A request already accepted an id such as z-ai/glm-5.3, but a stored policy refused it, because the write read the id as provider/model and found no such provider. Both write surfaces now check the offering the id resolves to in the workspace, and the policy keeps the id as written.
A refusal that every candidate shares now gives the reason. A request with more than one candidate answered a 400 with a generic message. When every candidate gives the same sentence, the detail now ends with it. Different sentences keep the generic message.
A timeout on the last candidate no longer reads as a total timeout. A plan whose first candidate refused the request and whose last timed out answered "All upstream providers timed out", which invites a retry that fails the same way. The detail now says only the last candidate timed out, and how many earlier ones refused or failed otherwise. The old wording stays for a plan where every candidate timed out.
An error after a tool loop locks in says why backups were not tried. Once a candidate answers the first round of a tool loop, a later error ends the request rather than moving to a backup. The status and code were right but the detail did not say this, so a 429 from a fallback policy looked like the policy did nothing.
A gateway-run search or fetch that raised is reported as a failure. Such a call was recorded in otari_tool_calls as failed with no error. Its entry now carries "tag": "internal_error".
The import cycle rule reads package edges correctly. It counted both package edges backwards, so every cycle running through a package initializer was invisible. That is the shape a domain move makes.
Performance
The agent hook parses a transcript with one reused JSON decoder.
Security
This release fixes three reported issues.
- GHSA-qhcg-982r-27rv (High) — on SQLite, the organization-membership term of the organization scope never matched, so a member of any organization who held no API key became nameable by every organization. SQLite is the default for the shipped container image. PostgreSQL deployments are not affected.
- GHSA-mcmh-5r28-4h9r (High) — a dashboard session could rotate the deployment master key and receive it in the response, without ever proving possession of the current key. That credential then satisfied the step up on the bootstrap-operator handover and on the bootstrap operator's password link. Affects deployments using a first-run generated master key, the default when
OTARI_MASTER_KEYis unset. - GHSA-7564-mhwj-2859 (Medium) — the six columns above stored credentials in cleartext. Read the breaking-changes section before upgrading: the inventory cannot be taken afterwards, and on PostgreSQL the upgrade alone does not remove the cleartext from the table's pages.
Rotate at source any credential the inventory identifies, and treat existing backups, snapshots and replicas as holding it in cleartext.
Full Changelog: v0.54.0...v0.55.0