Skip to content

IndraMesh Core 1.0.2

Latest

Choose a tag to compare

@weboliver weboliver released this 29 Nov 14:35
· 1 commit to main since this release

[1.0.2] - 2026-11-27

Added

  • Query API (sorting) — objects can be sorted by any attribute and by several fields at once on the REST list, in AQL and in GraphQL; a saved view or an export no longer needs a client-side sort.
  • Query API (dates) — relative date expressions such as now(-7d), startOfDay() and endOfMonth(), and the rest of the set, are accepted wherever a date is compared; a saved query keeps its meaning instead of being recomputed every day.
  • Query API (counts) — a filtered object set reports its total count on GraphQL and in the REST group response (total), so a view can show "x of y" from the same request that returns its page or its groups instead of fetching every row.
  • Query API (grouping) — objects can be grouped by one attribute, so the counts per attribute value arrive in one request instead of one request per value.
  • Query API (aggregates) — a time histogram and the numeric aggregates sum, minimum, maximum and average are available over a grouped result, so a dashboard series comes from one query.
  • Installation (host tuning, optional) — ./optimization.sh measures the host and proposes values. It asks two questions about the expected load (many or few imports, many or few concurrent users) and covers PostgreSQL, the number of ARQ workers, the number of backend processes, ARQ concurrency, the connection pool and the OpenSearch heap. It is a dry run by default. --apply writes the values and records what it changed, and --undo restores the previous state. The new BACKEND_WORKERS setting (1–4, default 1) starts several backend processes. Every process holds its own connection pool, so raise it only together with the pool the tool proposes. The default installation keeps one worker and one backend process. See "Host Tuning" in docs/OPERATIONS.md.

Changed

  • REST API (API change) — deleting a container now starts a task instead of running the delete inside the request. DELETE /object-types/{id}, DELETE /schemas/{id} and DELETE /sources/{id} answer 202 Accepted with {"task_id": …} and a Location: /api/v1/tasks/{id} header instead of 204 No Content; the delete itself runs in the worker, in one transaction, and the task list shows its progress. A large delete used to outlast the gateway's 60-second read timeout — 211.7 s at 100k objects and 2 067.2 s at one million in this release's measurements — so the caller got a 504 while the database was still working. Everything the request can decide is unchanged: 404 for a missing container, 403 and record-level deny rules as before, 409 when the container is locked or another delete of it is already running (a repeated DELETE answers 202 with the same task id). Clients that waited for 204 must now follow the task to SUCCESS. While a container is being deleted, starting an import, export or reindex into it, or deleting a container below it, answers 409 — an object type below a schema or source delete, and a schema below a source delete, included; deleting a source whose schema or object type is being deleted answers 409 as well. A write that meets a row the delete has locked fails after a few seconds with 409 instead of waiting for the delete to finish, and that bound now ends with the request's transaction, so it can no longer slow down plugin or background writes that share the connection pool. A DELETE task is visible to the user who started it and to superusers only; the 202 body says whether this caller can read the task it carries (watchable), so a repeated delete by another user never hands out a task that user cannot open. An interrupted delete — the worker stopping, crashing or restarting while it runs — rolls back, leaves the container and everything below it untouched, ends FAILED (Delete interrupted (worker stopped) — nothing was deleted; start the delete again) and is started again with a new DELETE; the container stays usable in the meantime, and starting another worker never fails a delete that is still running. A delete that is still queued is bounded by the queue, not by a clock: the worker runs up to ten jobs at once, so a delete may wait behind long imports or connector syncs for hours, and only a queued task whose background job no longer exists — and that is at least an hour old — ends FAILED with the same message. PATCH /tasks/{id} refuses any status write on a delete task (422), because that status belongs to its worker. Answering 202 here is a named exception to the compatibility promise, with its reason and its compensation, and the stability document's new section "Exceptions in the 1.x line" states it as one.
  • REST API — when every pooled database connection is in use, a request is now answered with 503 Service Unavailable and Retry-After: 5. It waits at most DB_POOL_TIMEOUT seconds for a connection (new setting, default 5). Before, it waited 30 seconds and then ended with 500. Clients should retry after the time the header names. The ARQ worker still waits up to 30 seconds (WORKER_DB_POOL_TIMEOUT), so an import burst does not fail a background job. The search route also no longer holds its database connection during the OpenSearch call. That held connection was what used up the pool under mixed read and import load. Under 50 concurrent users a single backend process with the default pool reaches this bound; the "Host-Tuning (optional)" section of the release notes names the lever.
  • Valkey — the worker no longer stores ARQ job results. Valkey snapshots with save 900 1 300 100 in Compose and in the Helm chart. The previous built-in default also saved every 60 seconds once 10 000 keys had changed, so under import load it wrote the whole data set about once a minute. Persistence stays on because the token and session blocklists live only in Valkey. After a crash, up to 15 minutes of revocations can come back valid; this window is accepted for 1.0.2 (see "Valkey persistence" in docs/OPERATIONS.md).
  • Imports — an import run's report is now a JSON object instead of a list: four counters (created, updated, unchanged, failed) and the error list. The import list returns the counters and an error count, the detail view returns the stored object, and rows written by an earlier release keep their original list form.

Performance

1.0.2 is a performance release. All figures below were measured on one development machine (WSL2, 32 GB) with generated test data, one run per cell unless a row says otherwise. The Before column of the first table is strictly 1.0.1, read from the 1.0.1 reference runs with the same profiles and tools. The second table compares against the development tree just before a fix, where no 1.0.1 run measures the same workload. The third table lists what has no 1.0.1 counterpart at all: the one-million-object profile and the cache footprint. Every row names the commit its after value was measured on. The figures show the direction and size of the change, not a guarantee for other hardware.

Area Measurement Before (1.0.1) 1.0.2 Measured at
Jira connector pull of 1 200 objects with 15 600 values 1 046.945 s for 75 of 1 200 objects (the run failed); timing reference 1 053.07 s and 44.399 commits per object, measured with plugin 1.0.1 on the 1.0.2 Core — not a 1.0.1-Core run 271.148 s for 1 200 of 1 200 objects, 2.158 commits per object (3.88× faster than the timing reference, 20.6× fewer commits) 30bb15e4d
Search time until a 100 000-object import is searchable 471.789 s 206.453 s (2.29× faster) 83741fce9
Concurrent use mixed read and write load, 10 000 objects, 50 concurrent users, p50 / p95 1 730.224 / 8 026.016 ms, 0 % failed 5 759.414–10 238.197 / 26 602.084–30 989.328 ms, 2.563–3.123 % answered 503 83741fce9
Concurrent use the same load, 100 000 objects, 50 concurrent users, p50 / p95 1 792.538 / 7 370.874 ms, 0 % failed 9 997.530 / 30 888.438 ms, 3.257 % answered 503 83741fce9
Concurrent use login under load, p95 3 309.165 ms 1 757.075 ms (−46.9 %) 83741fce9

The two mixed rows are a regression, and they are published as one. Under 50 concurrent users the mixed read and write load now ends 2.563–3.257 % of its requests with 503 and reaches a p50 of 5.8–10.2 s, where 1.0.1 answered every request at a p50 of 1.7–1.8 s. The cause is the bounded pool wait this release introduced: a request that finds every pooled database connection in use is answered 503 after five seconds instead of queueing. The default single backend process holds a pool of ten connections with twenty overflow, and 50 concurrent users exhaust it; 1.0.1 queued instead, which is why it kept its p95 near eight seconds. The SQL itself did not get slower — in the same window the delete and list statements ran in single-digit milliseconds. The lever is the number of backend processes: with a second process and the tuning values the same load answered every request, at a p95 of 3 364.1 ms (see "Host-Tuning (optional)" below). A deployment that carries 50 concurrent users on the default single process will see this.

Before the fix — the before side is the development tree just before the change; no 1.0.1 run measures these workloads.

Area Measurement Before the fix 1.0.2 Measured at
CSV import new rows, ms per row 259.39 ms 79.02 ms (3.3× faster) 30bb15e4d
CSV import re-import of unchanged rows, ms per row 80.43 ms 1.91 ms (42× faster) 30bb15e4d
RBAC and permissions restricted object list, 100 000 objects, 5 000 deny rules (median) 826.859 ms 178.344 ms (−78.4 %) 434fa761b
Concurrent use the same mixed load, throughput, at four backend processes with the tuning values 9 241 requests 16 514 requests (+78.7 %) 813c24950

The CSV baseline is a 5 000-row run of the same import path and the after value is the 100 000-object run. Repeated runs of the same shape on this tree spread from 66.40 to 82.05 ms per row; 79.02 is the measured value of the release run, not the best of them.

New — no 1.0.1 counterpart. The one-million-object profile and the cache footprint were not part of the 1.0.1 reference run.

Area Measurement Before the fix 1.0.2 Measured at
Search full reindex of 1 000 000 objects 986 804 / 988 232 of 1 000 000 documents (1.18–1.32 % lost per pass) 1 000 000 of 1 000 000 indexed 434fa761b
CSV export 1 000 000 objects aborted at 12.6 GB worker memory, no result completes in 1 646.269 s, 290 MB peak 434fa761b
Data model deleting an object type with 1 000 000 objects aborted at 10.8 GB backend memory, nothing deleted completes in 2 067.188 s, 183.6 MB peak, runs as a task 548c91bad
Valkey memory under a continuous import stream 539 038 keys, 274 MB, one full snapshot per minute 386 663 keys, 147.51 MB, 3 snapshots in about 15 minutes 4ca85a5c1

That the figures describe the published tree is checked by a diff, not asserted: between the headline measurement commit and the release commit, over the shipped paths, nothing changed but this release's version marking, this changelog section, the stability document's new exception section and the three stateful image patch bumps. The figures were measured on PostgreSQL 18.4, OpenSearch 3.9.0 and Valkey 9.1.1, while the release ships PostgreSQL 18.7, OpenSearch 3.10.1 and Valkey 9.1.4, which close published security findings — not re-measured on the bumped images but proven by an upgrade proof on existing data, the security scan and the regular release checks.

  • Indexing got slower. A full reindex takes 66.2 % longer at 10 000 objects and 88.4 % longer at 100 000 objects. That is the cost of no longer losing documents; at one million objects the difference is 3.2 %.
  • Deleting is limited by PostgreSQL. Deleting a container costs about 2.1 ms per object in PostgreSQL; at one million objects the measured delete runs 2 067.188 s in the background.

Host-Tuning (optional)

./optimization.sh proposes the host values and states what each one changes; it is a dry run unless --apply is passed. The measurements below show what the tuning and the process counts buy. They are optional: the default installation keeps one worker, one backend process and the untouched defaults.

  • More worker containers do not shorten two concurrent CSV imports. Two 10 000-row imports at once took a median pair total of 247.5 s on one worker container, 344.8 s on two and 325.5 s on four. For imports, one worker container stays the recommendation. The import path is mostly application work: about 21 % of a fresh CSV import's time is SQL, about 41 % of a Jira pull's.
  • More backend processes carry more concurrent users. With the tuning values, the 100 000-object mixed load at 50 concurrent users reached a p95 of 62 298.8 ms on one backend process (the stage collapsed and 0.77 % of the requests failed on the pool), 3 364.1 ms on two and 2 871.4 ms on four; the completed requests were 4 792, 12 375 and 16 514. Login p95 fell from 1 691.3 ms on one process to 715.4 ms on two and 691.7 ms on four.
  • The second backend process is what removes the mixed regression of the table above. With two processes and the tuning values the same load had 0 failed requests and a p95 of 3 364.1 ms.
  • A single backend process with the default settings does not reach the concurrent-use values in the table above. They are a code-and-tuning result, and the process count is part of it.
  • The PostgreSQL memory values showed no measurable gain for the CSV import or the Jira pull on the measured machine, because both are limited by the application's own CPU work. They are meant for data sets larger than the page cache and for large sorts, groupings, vacuum and index builds, and that case is not measured here.

Security

  • HTTP surface — the request body limit now counts the bytes actually received. A chunked or header-less body above the limit answers 413, a malformed length header answers 400 instead of 500, and the three upload paths keep streaming untouched.
  • Public API — an always-on per-IP rate limit and a failed-authentication counter now bound the public realm: an invented bearer token is refused after 30 failures in a fixed 60-second window instead of opening a cache lookup and a database query per request, while a valid token keeps its own bucket beside it.
  • Authentication — an access token must carry the full claim set (exp, iat, sub, jti, sid, token_version); a token signed with the server key but missing one of them answers 401, which closes the revocation bypass by omission.
  • Authentication — the refresh cookie's Secure flag is now a stated policy: always forces it over plain HTTP, never is the explicit opt-out, and an unset, empty or unrecognised value resolves to always in production.
  • Search — a fresh installation ships without the OpenSearch demo users, and both install paths delete the removable ones on every start. The sixth user is reserved by the search engine and survives on an installation upgraded with its data volume; the deployment guide documents the one-time reset and reindex.
  • Deployment — the database, search and cache services moved to their own internal network, and the database, worker and cutover services no longer receive the whole environment file. Every Compose service runs with no-new-privileges and a dropped capability set, and the frontend image runs with a read-only root.

Fixed

  • Data consistency — a new consistency check inventories orphaned record permissions, blobs, search documents, translations, key sequences and outbox backlog, reports text or JSON with a documented exit code, and repairs within the configured grace window and ceilings. It runs daily from the worker and is also available as an operator command.
  • Data consistency — deleting a container collects the blobs it removes and deletes them after the database commit instead of refilling the orphan inventory, and deleting an object type no longer removes a surviving descendant's record permissions, translations or search documents.
  • Imports and exports — the terminal counters of an export are reconciled to the rows actually written, so a delete between two pages no longer turns a finished export into a failed run; a row that fails alone no longer replays rows that already committed; and an import run's report carries its counters and its error list together.
  • References — object reference rows written by the CSV import or the API carry the correct reference type, a reference attribute's audit entry names the stored attribute, and an audit read no longer reveals an unresolvable reference row to a non-superuser.
  • Queries — an AQL date comparison kept through several object types and through reference functions now returns the same rows as the single-type form, and a minute or hour offset is a real duration across both daylight-saving transitions while day and week offsets stay local calendar steps.
  • Sorting and grouping — an attribute declared on an inheriting ancestor now sorts and groups by what the object inherits, while ambiguous, hidden and denied names keep their one 422.
  • REST API — a PATCH on an object that changes nothing writes nothing: no audit row, no hook, no outbox entry and no Updated touch, and a values-only patch no longer needs the object-level update right.
  • REST API — a repeated schema delete answers 202 with the same task id, and a running object-type delete of that schema blocks the schema delete with 409, matching the source and object-type routes.

Upgrade steps

  • Re-run the installer, on Compose and on k3s. On an existing installation it overwrites nothing in .env and fills only empty or placeholder values; for this release it appends GRAFANA_ADMIN_PASSWORD to an existing .env and re-applies the ownership of an existing log-collector data volume (the collector runs as uid 473 now, and a volume written by the earlier root process otherwise restarts forever). Skipping it leaves the application stack healthy but log collection down and Grafana unavailable. The procedure is "Upgrading to a New Release" in docs/DEPLOYMENT.md.
  • The new database revisions apply automatically. Three revisions are new against 1.0.1: the container-delete task and its heartbeat, and the reference-type repair. The backend applies the whole chain when it starts — there is no separate migration step.
  • Object history after the upgrade from 1.0.1. A non-superuser no longer sees audit entries for references that were deleted before the upgrade or that name no reference attribute. The entries are kept, and superusers still see them.
  • An installation upgraded from 1.0.1 keeps the reserved OpenSearch demo user. Fresh installations ship without demo users. On an upgraded installation the startup cleanup deletes the five removable ones and reports the reserved one; the one-time volume reset and full reindex in docs/DEPLOYMENT.md removes it, and no data is lost because the search index holds derived state only.
  • A database created under 1.0.0 and never repaired can still hold a search index that covers only part of its object types. python -m app.maintenance repair-search-indexes reports where an index diverges and rebuilds only that part, and a second run is a no-op.

Language behaviour

The date format of the core interface follows the interface language the user chose, while a plugin page that formats dates itself may still follow the browser. A language keeps one English display name, which an administrator can edit. The system attribute names stay English because they are the API and import contract.

Known limitations (1.0.2)

The release notes carry the limitations of this release in one place, at category level. Every count below is the number of remaining deferred items in that category after the 1.0.2 re-count; the total is the sum of the category rows and includes the four risks accepted for 1.0.1 (still open) and the two accepted for 1.0.2.

Category Count Limitation and workaround
Plugin trust boundary and plugin API surface 15 Bundled plugin frontends run in the application origin and plugin code runs in-process; the plugin API is wider and less versioned than the public statement suggests, and some promised capabilities have no Core caller. Workaround: install only first-party plugins and keep the plugin set fixed for the deployment.
Accepted by-design trust boundaries 3 Three behaviours are accepted rather than fixed: a short cache of record-permission decisions can delay a newly added DENY, bundled plugins intentionally carry application trust, and the duplicated permission factories enforce identical rules. Workaround: wait out the cache window after changing a DENY, and do not install third-party plugins.
Migration history and downgrade fidelity 12 1.0 ships a fresh database baseline; the historical migration chain contains destructive upgrade steps and downgrades that cannot restore what they removed, and the roundtrip is not tested. Workaround: back up a pre-1.0 installation before upgrading and treat the upgrade as one-way.
Write-path atomicity, task and queue consistency 20 Some multi-step writes still commit in separate transactions, and a failed queue enqueue can leave a task or export row pending forever; the worker topology assumes a single replica. Workaround: check the reported result of a long-running import or export before retrying, and keep one worker replica.
Data-model integrity and catalog consistency 6 Name uniqueness and several catalog invariants are enforced in application code rather than by the database, so concurrent writers can create duplicates or inconsistent references. Workaround: create catalog objects one at a time and avoid concurrent edits of the same schema.
Import and export contracts and payload handling 4 Import definitions accept attribute bindings that belong to another object type, export filenames collide within the same second, and the accepted CSV upload body is buffered in memory before it reaches the temporary file. Workaround: validate a definition with a small dry run and do not start two exports of the same definition in the same second.
Frontend failure reporting and browser-surface hygiene 25 Many frontend reads and writes render a failure as an empty state or report nothing at all, and search text or filter values persist in the URL and browser storage. Workaround: reload after a failed action and verify the result explicitly; clear browser storage on a shared machine.
Deployment, infrastructure and observability 17 The shipped deployment is single-node-oriented: rate limits, backup coverage, storage-service authentication, chart portability and log-store authentication remain hardening items, and the optional observability and Kubernetes-dashboard front doors are off by default and are an explicit operator decision when switched on. Workaround: keep the stack on a trusted network, back up the database and the encryption key together, and do not expose the log store.
Dependency currency, secrets and review-material hygiene 9 Low-severity dependency advisories, file-permission and temporary-root findings, and credential-shaped strings in private review artifacts remain. No live production credential is involved, and the dependency upgrades that mattered for the release shipped. Workaround: re-run the dependency scans before the next public release and keep the review artifacts private.
Backend robustness, dead code and remaining contracts 13 Several error paths echo raw exception text, the search index can resurrect a deleted document after a race, translation upserts and startup seeds can collide, and some dead routes and symbols remain; reference and value lists can stay stale for up to a minute after a public-API object write, permission checks on wide public-API writes cost one lookup per attribute type, and a GraphQL document with a very long fragment chain is answered with a generic error instead of the limit error. Workaround: treat a 500 as an unknown result rather than a failed one, re-read the object before retrying, and run the documented index repair after the upgrade.
Review-tooling and process gaps 20 The private review tooling carries unresolved hygiene warnings and Info findings (cleanup coverage, fixture credentials, exit-code contracts, scan-rule coverage), plus four skipped Info findings from an earlier phase. No operator action is required; this is maintainer tooling.
Unread remainders and triaged-only todos 22 Some deep plugin engine paths, cluster-only deployment checks, a dynamic scan and the personal-data classification were not completed before the release; the Jira connection cannot be rebound after a URL change, the first binding of a Source created without a Jira connection takes the URL valid at that moment, and the disposable-test sandbox remains a todo. Workaround: keep Jira Source and Target URLs stable (a changed URL needs the binding to be deleted and rebuilt), create Jira Sources together with their connection, test write paths only on disposable data, and verify cluster-only behaviour on the target installation.
Accepted risks 1.0.1 4 Four behaviours are accepted for 1.0.1 and remain open rather than changed: a rotated-out refresh cookie stays valid until its own expiry (at most eight hours) because rotation keeps no server-side store and therefore detects no reuse; a holder of the role-management permission can still add any permission to a role they hold; Jira sources and targets created under 1.0.0 that point at an address inside the deployment network are refused until a superuser allows it per row; and the content-security policy keeps its outbound image allowance because connector icons are still rendered directly. Workaround: end a session by logging out or changing the password when a token may have leaked, grant the role-management permission only to trusted operators, set the Jira internal-address allowance deliberately during the upgrade, and read connector icons as a trusted-source feature.
Accepted risks 1.0.2 2 Two behaviours are accepted for 1.0.2 rather than changed: an installation upgraded from 1.0.1 with its OpenSearch data volume or claim intact keeps the reserved demo user until the documented one-time volume reset and full reindex is run (no data is lost — the search index is derived state); and after a crash up to 15 minutes of revoked tokens and ended sessions can come back valid, because the blocklist is persisted by snapshot only. Workaround: run the documented volume reset on an upgraded installation once, and treat a crash of the cache service as shortening no revocation — log affected users out or rotate credentials when a token may have leaked in that window.
Total 172 All remaining deferred rows of the private ledger after the 1.0.2 re-count, including the four risks accepted for 1.0.1 and the two accepted for 1.0.2.

Six risks are accepted across the two releases, and each maps to one operator step: the 1.0.1 set (session lifetime after a rotation, the role ceiling, the Jira internal-address allowance and the outbound image allowance) is answered by the upgrade steps above and by staying with trusted operators, and the 1.0.2 set by the one-time OpenSearch volume reset and by treating a cache crash as leaving revocations undone for up to 15 minutes.