GitHubWaitlist

Changelog / Chronos Gateway

Chronos Gateway 0.5.0

Breaking default: the cloud link reads only, and sees counts; The docs and the console say plainly what merges with no person; A child run may ask for part of what its parent may change

With Chronos DB 0.9.037 changesDownloads

  • Breaking default: the cloud link reads only, and sees counts. GATEWAY_CLOUD_ALLOW now defaults to read (was read,merge,discard,undo) and GATEWAY_CLOUD_SHARE to counts (was diffs), in the binary, deploy/compose.yaml and the connector's Helm values: by default the cloud could merge a held world no person approved, and pull rows. A connector that merges from the dashboard must now say so: GATEWAY_CLOUD_ALLOW=read,merge,discard,undo and GATEWAY_CLOUD_SHARE=diffs. The link logs what it allows as it starts, and warns when that includes merge (gateway #103). Events queued before the upgrade go up as the new setting says: under counts, without the messages and reasons an event queued under diffs carried.
  • Tests: an end-to-end test missing its database now says so (SKIPPED (not run): <test> needs <variables>), and with CHRONOS_E2E_REQUIRED=1 fails instead of passing. Releases run with it and keep the log (gateway #95).
  • The docs and the console say plainly what merges with no person. Under the default rules a run that changes up to 500 rows, deleting none, merges into Postgres with nobody seeing it. The README, the quickstart and the self-host guide now say so and name review_every = true to hold every change (for the AI reviewer first, when one is set); the console's Overview and Get started show the same note under the rules whenever they let changes through unseen. The default rules are unchanged (deletes were already 0). (gateway #111)
  • Docs: the README names engine v0.6.2 and every test file with its database; the self-host guide no longer says two gateways can't share a data folder above its high-availability section; the connector docs, chart, compose file, installer and --help say the Chronos Cloud link is not offered today (gateway #118).
  • A child run may ask for part of what its parent may change. A parent run made with may_change read as if it might change nothing (the engine keeps that scope as objects; the gateway read only text), so every child asking for any of it was refused (400 scope, "within what the parent may change ()"). Tests: undo, act_as and child runs now have end-to-end tests beside Postgres (gateway #96).
  • Docs and messages name the engine release that has MySQL read checks and AUTO_INCREMENT inserts: 0.5.0. They said 0.4.11 and 0.4.12, versions that were never released (engine tags go from 0.4.10 to 0.5.0) (CHRONOS-228).
  • Licence: the Functional Source License (FSL-1.1-ALv2). The gateway moves from the Business Source License 1.1 to the Functional Source License 1.1, ALv2 Future License: free for any use (production, inside a company, free and open projects) except a competing commercial product or service such as a hosted gateway, and each release becomes Apache-2.0 two years after it is published. A root LICENSE and NOTICE, license = "FSL-1.1-ALv2" in Cargo.toml, the image label, the README and the guide. The Python and TypeScript clients are MIT, each with its own LICENSE. Each release tarball carries LICENSE and NOTICE beside the binary, and the image at /usr/share/doc/chronos-gateway/. The engine it bundles (chronos) is under its own licence (FSL-1.1-ALv2 after engine 0.7.0, BUSL-1.1 up to it), as NOTICE says; enterprise/ is unchanged (gateway #115).
  • An Agent Skill and an AGENTS.md snippet for coding agents (docs/agents/, published as agents/): change data only in the run, propose once, stop at a hold, never approve its own change, with the 14 tools a run has and the HTTP calls its token may make. Linked from the quickstart and the guide, which say the gateway, not the skill, enforces it (gateway #123).
  • Contributing. CONTRIBUTING.md (build, tests and which database each end-to-end file needs, DCO sign-off), SECURITY.md (private reporting), a code of conduct, and issue and pull request templates. The README's Python client test command now works (python3 -m unittest discover failed to import the tests).
  • Undo is reconciled after a crash, and merges are found however old. An undo records its intent on the run before the engine writes; at the next start, or the next undo of the run, one cut off after the engine wrote is recorded undone (or partly_undone) with its real row count and "reconciled": true, and one that never landed is dropped. A merge whose answer was lost is looked for in the engine's history past 2,000 events (asked for 8,000, 32,000, ... up to 256,000). The console's undo dialog says what an undo puts back and what it doesn't (CHRONOS-280, gateway #112).
  • A benchmark harness (tests/bench.rs, ignored; CHRONOS_TEST_PG, CHRONOS_BIN, optionally CHRONOS_TEST_MYSQL): added latency of a point select and a one-row update through a run against the database straight, time to open a run at 1,000, 100,000 and 1,000,000 rows attached, and one-row merges a second serial and 8 at once. One command gives every figure; BENCHMARKS.md says how, and holds no figures until it has been run (CHRONOS-301, gateway #105).
  • GET /metrics and email to approvers. Prometheus text with runs by status, the oldest hold's age, events, webhook deliveries and effects by status, mails sent and failed, then the engine's series as chronos_engine_... (GATEWAY_METRICS_TOKEN closes it). With GATEWAY_SMTP_URL, GATEWAY_SMTP_FROM and GATEWAY_APPROVER_EMAILS each held change is mailed to its approvers with the link Slack gets, sent apart from the propose so a mail server never slows it. New dependency: lettre. Slack approve buttons stay CHRONOS-244 (CHRONOS-293, gateway #109).
  • chronos-gateway backup <dir> and restore <dir>. A backup while the gateway runs: the store copied with VACUUM INTO, each engine's folder copied by the running engine (its backup op) or as it is when stopped, the keys, and a manifest. restore lays one into an empty data folder only. The guide has an upgrade and rollback procedure: the engine's format is one-way, so a rollback is a restore of the backup made before (CHRONOS-274, gateway #113).
  • Open runs survive an engine crash. Each run's world, and each child run's, is made durable as soon as it is forked (alter world ... set (durable = true)), so a hard stop of the engine or a leader's machine no longer loses a run's work: it goes on and merges after the restart or failover. A world that can't be made durable is discarded and the start fails, so there are no half-durable runs. GATEWAY_RUN_DURABLE=off keeps the old behaviour (a run's writes skip the fsync, and an open run lost with the engine answers 409 world_lost) (CHRONOS-323, gateway #97).
  • A run's 64 KB metadata limit is checked inside the write (CHRONOS-259): PATCH /v1/runs/:id/meta measured the run it had loaded, so two updates at once could each pass and together store more. Store::merge_meta now checks the merged result in its transaction; past 64 KB it stores nothing and the answer is 413 too_big (was 400).
  • Breaking defaults: TLS on both sides (CHRONOS-316). The gateway had no TLS of its own and connected to the database without checking its certificate. Now: GATEWAY_TLS_CERT and GATEWAY_TLS_KEY (PEM) make it answer https itself (HTTP/1.1, upgrades kept). It refuses to start over plain http on an address other machines reach (was a warning), unless GATEWAY_ALLOW_PLAIN_HTTP=on says a TLS proxy is in front; the images and Helm charts set that, since they listen on all addresses in a container. A Postgres URL without sslmode to another machine now connects with verify-full (was prefer), and a MySQL or MariaDB one with ssl-mode=VERIFY_IDENTITY (was PREFERRED); the URL handed to the engine says so too. On this machine the old defaults stay. sslrootcert=<file> names a private CA (RDS, Cloud SQL). An explicit prefer, require or allow to another machine still works, with a warning. A database whose certificate doesn't check out now fails to connect: add sslrootcert, or set the old sslmode explicitly.
  • Breaking: developer keys have scopes; the decider is the key, not the body (CHRONOS-313). A key may do runs (start, read, change, propose runs), approve (approve, reject, undo, approval links) and/or admin (everything: settings, keys, the console); a route outside its scopes answers 403 scope. Existing keys, the gateway's first key and GATEWAY_API_KEY keep every scope. Later keys get runs unless made otherwise: keys create <name> --scope approve, POST /v1/keys {scopes}, checkboxes in the console. Only admin keys sign in to the console. A decision made with a key records {by: <key name>, key: <key id>, via: "api"}; a by the caller sends is kept as on_behalf_of, unverified (it was the recorded decider). keys list prints scopes and warns when several active keys have admin. The Python and TypeScript clients take scopes on key creation.
  • GATEWAY_REFRESH_EVERY defaults to 1h while the engine follows changes (CHRONOS-291): with GATEWAY_FOLLOW on (beside Postgres or MongoDB; MySQL can't follow yet), main is current already, so the timer refresh that read every attached table whole every 5 minutes now runs hourly unless set. Docs state the limits that stay: the first connect reads every table whole, merges into one database run one at a time, and (with an engine after 0.6.2) a refresh beside Postgres skips the rows of tables Postgres's statistics show unwritten.
  • High availability: writes are fenced by the lease's epoch (CHRONOS-320). The fence between an old leader and a new one was time alone, so a leader paused past its lease (a frozen VM) could wake and merge as a second writer. The lease now has an epoch that rises at each takeover; before each call that can write the database (merge, undo, a review's decision, merging or undoing SQL and MCP tools) the leader checks in the store that the lease is still its own at that epoch and not run out, else refuses (503 no_leader) and stops. A leader giving the lease up now expires it rather than deleting the row, so the epoch keeps rising. /v1/status shows the epochs. Left: the engine doesn't check a token inside its write-back, so a pause between the check and the write can still let one write through.
  • Secrets stay in their mounts (CHRONOS-315). With GATEWAY_SOURCE_FILE, the gateway no longer copies the database's URL into <data>/source.url. It reads the mounted file at each engine start and passes the URL in the engine's environment (CHRONOS_SOURCE_URL), so a rotated secret is taken at the engine's next start. The copy an older gateway made, or that POST /v1/connect wrote, is removed at start, with a log line. A group-readable mount (a Secret with defaultMode: 0440) works as before. New GATEWAY_ENGINE_TOKEN_FILE: the engines' admin token from a mounted file (24+ characters), read at each start and never written to engine.json, which then holds the port only. The Helm chart has an optional engineToken.existingSecret, and deploy/compose.yaml has commented engine_token lines. With HA, mount both files at the same path on every gateway. A database connected under a name still keeps its URL in its own source.url.
  • A child run merges as its own agent (CHRONOS-311). A child run's propose merged its world into the parent's with the engine's admin token, so the gateway, not the engine, decided what reached the parent's world. Now POST /v1/runs/:id/children asks the engine, as admin, once, for GRANT WRITE ON WORLD <parent world> TO <child agent>. The child's agent forks and merges by that grant alone (read, fork, write_own, merge_own), with no write given and taken away. Its propose merges with its own token, and the engine judges it. A refusal answers 403 scope with the engine's reason. The grant goes with the parent's world when that is merged or discarded. The gateway's own scope check stays as an early 400. Needs engine 0.6.2 (GRANT ... ON WORLD).
  • A sentence on each held change (CHRONOS-243). With GATEWAY_EXPLAIN=on, a model writes one plain sentence on what a held change does and a risk note (low, medium or high, and what to check), for a person who isn't an engineer. It runs on the reviewer's model, or its own (GATEWAY_EXPLAIN_URL, _MODEL, _KEY). It sees only the reviewer's sanitized view, read as gateway_explainer (read only, no unmask): no intent, no tenant, no masked value, and free text as placeholders. It decides nothing. It is kept on the run (outcome.explain), sent as merge.explained, and shown in /v1/runs/:id/changes (explain), on the console's Review card and in <chronos-approve>, marked "Written by a model; check the rows". A failing model leaves no sentence and changes nothing else.
  • An undo report (CHRONOS-235). An undo now keeps what it did on the run: the rows put back (over each undo of it) and the rows not put back, each with why, in words, with masked columns read (masked), at most 500 of each with the totals always whole. New GET /v1/runs/:id/undo returns that report: who undid it and when, effects not undone, the merges undone and the undo's own. The console's run page shows it as an Undo report on undone and partly_undone runs, with what undo can and can't do in one sentence. The code is shared, so it works beside Postgres, MySQL, MariaDB and MongoDB. Runs undone before this have their counts, without row lists.
  • Held side effects, documented and tested end to end (CHRONOS-233). A new "Held side effects" section in the self-host guide works through a refund email that goes out only once its change is approved: the receiver, its signature check in Python and TypeScript, retries, GET /v1/effects and what an undo says. There is a 30-line receiver in docs/examples/refund-email/. The e2e test now covers a failed delivery that is tried again, the signature, delivery after approval only, a rejected run sending nothing, and the undo listing the effect in effects_not_undone.
  • Who launched each run (CHRONOS-230). POST /v1/runs takes on_behalf_of, and it is checked: either an ID token your identity provider gave the gateway's client ({"id_token": ...}), or a sign-in to the gateway ({"session": ...}). A plain name is kept as via: "unverified", and it is refused when GATEWAY_OIDC_REQUIRE=on. New POST /v1/keys/personal gives a person signed in a key for their agent: it can start and work runs only, and it expires after 8 hours unless asked for less, at most 7 days. Every run started with it is launched by that person. The person appears as launched_by on the run, on every event and webhook of it, in its undo report, in the console run page and in the key list. Child runs take their parent's.
  • Docs: what a run can't do (CHRONOS-297). The self-host guide's new section says it plainly. A run may not change a table's shape: its merge is refused (55000), so change the shape in your database and the next refresh takes it. A run speaks Postgres's SQL beside MySQL and MariaDB too, with examples. The README no longer reads as if agents could change the schema.
  • Clients: labels, webhooks, run metadata and an approval's version. Python and TypeScript read labels back (labels(), GET /v1/labels), list webhooks (webhooks()) and delete one (delete_webhook / deleteWebhook), and add a Slack webhook (format="slack" / addWebhook(url, events, "slack")). TypeScript's Run has setMeta, as Python's set_meta; Python's Approval keeps the run's version for approve(version=...) (gateway #143, #144, #145, #148, #149).
  • The command line checks a command before it does anything. A mistyped command (chronos-gateway srve) no longer leaves a gateway-data/ folder behind or hides behind a bad setting: it says unknown command 'srve' (or "keys revoke needs an id"), shows the usage lines and exits 2. --help now lists the run limits, GATEWAY_FIELDS, GATEWAY_EFFECTS*, GATEWAY_OIDC_ADMINS, GATEWAY_REVIEWER_MAX_ROWS, GATEWAY_REVIEWER_COLUMNS and RUST_LOG (gateway #140, #142).
  • Docs: the self-host configuration tables have GATEWAY_FIELDS and the GATEWAY_EFFECTS* settings; the API's webhooks table gives every reply and the events limit (100, at most 1000), with an example of adding a webhook and of a delivery. Tests: unit tests for how table names read as singulars and plurals, and values as words (gateway #141, #146, #147).
  • A masked column no longer reads as a broken run. Engines up to 0.6.2 refuse every agent's merge on a table with a masked column (the row API's mask check, asked of a merge too), so masking a column made its table read-only for runs. The engine's fix (CHRONOS-240, in the release after 0.6.2) lets an agent's merge through, as its own agent and under its merge policy, its reads still masked. Until then the gateway answers that refusal with 403 masked, saying to upgrade the engine; the run is failed with its world kept, so it proposes again after. The gateway still merges as the run's agent and never gives it unmask. A unit test and an end-to-end test propose on a masked table (gateway #94).
  • The timer refresh beside MySQL and MariaDB skips tables with no commit (CHRONOS-291): with the engine release after 0.7.0, as beside Postgres, GATEWAY_REFRESH_EVERY's refresh doesn't read the rows of a MySQL table whose UPDATE_TIME hasn't moved since the last full read. The self-host guide's "Large tables" says so. No gateway code changed.
  • High availability: the leader's epoch reaches its engines, and a three-node test (CHRONOS-320). The leader starts each engine with CHRONOS_LEADER_EPOCH (its lease's epoch) and logs it; engines after 0.7.0 print it in engine.log. deploy/ha-test/kind-3-node.sh runs the failover on a three-node kind cluster with an NFS volume: the leader's node frozen with docker pause, a merge sent to it refused as it wakes, the run merged through the new leader. Written, not yet run. A unit test checks the variable is set only when gateways share a store.
  • Security: the 2026-11-30 review.
    • Runs and approvals:
      • A run's SQL is confined by the engine (H1). Every run statement the gateway relays, POST /v1/runs/:id/sql, the MCP sql tool and the MongoDB tools, goes with "confined": true; the engine then holds the session to the run's world itself (no merge, no world switch or set chronos.world, nothing on other worlds, roles, agents, policies or settings). The gateway sets it on the MCP tool's arguments whatever the client sent. Engines before 0.9.0 ignore that key, so run this release on engine 0.9.0 or later. The run agent keeps merge_own and write_main: the gateway's own propose merges as that agent, and merging into main needs them (an agent with a policy and a tenant still changes main only by merging).
      • The SQL scan reads text as the engine's lexer does (H1). It knows E'...' strings (a \' doesn't end one), nested /* */ comments, B''/X''/U&'' strings and dollar-quote tags as the engine has them, and refuses (400 forbidden_sql) what it won't guess at: non-ASCII whitespace (U+00A0 and its kin), control and format characters (U+FEFF, U+200B) or other non-ASCII symbols outside strings, a string, comment or dollar quote left open, and a number run into a name. So select E'\''; merge ...; --' and a leading U+00A0 before merge no longer pass.
      • More statements refused in a run's SQL (M1): switch, set [session | local] chronos.world, reset chronos.world, reset all, set_config('chronos.world', ...), propose, approve, withdraw, review, transfer, rebase, simulate, replay, grant/revoke ... on world, delete world, attach evidence, and explain analyze of any refused statement.
      • A signed-in person sees and decides only changes they may (H2). GET /v1/me/held lists, and POST /v1/me/runs/:id/approval makes approvals for, only held runs the person may approve: someone GATEWAY_OIDC_ALLOW (or GATEWAY_OIDC_ADMINS) names, with an email (not a key's console sign-in), who isn't the run's end user, its launcher or its proposer. Others get 403 own_change / not_a_person.
      • No one approves their own change (M4). A run records who started and proposed it (each developer key's id and person's email, runs.proposed_by, added to both stores), beside who launched it. An approval by the same person (console, single sign-on, a personal key's person) or the same developer key is refused with 403 own_change, through every path (the API, a link decided signed in, /approvals). An admin key and GATEWAY_API_KEY are let through: they can make themselves a key with the approve scope, so refusing them would protect nothing; give the backend that runs agents a runs key, as the guide says.
      • An approval merges a version someone was shown (M2). Approving a run in conflict, or one held with no version on record, without naming version is refused with 400 version_required (it used to merge the world's version of that moment). A held run still defaults to the version it was held at, what every notice of the hold showed; a world that moved since is refused 409 stale as before. The approved merge stays the engine admin's, after those checks: the run's agent merging again would only be held again by its policy, which is what asked for the person (the code says so).
      • Signing in needs a verified email (M5). An ID token is taken only with email_verified: true, and its email only from email, never preferred_username. For a provider that vouches for every email without the claim (Entra ID), GATEWAY_OIDC_UNVERIFIED_EMAIL=on (off by default) takes a token with no email_verified and its upn for a missing email; false is refused either way.
      • Fewer changes merge with no person by default. The default rules are now max_rows = 25 (was 500) and rows_per_hour = 1000 (was 5000): what lands with no one looking is a few rows, one task for one customer; a bigger change waits for a person, or for rules someone loosened on purpose. A policy already set (GATEWAY_POLICY_RULES, PUT /v1/policy) is unchanged.
      • Links anyone holding may decide are short-lived. Without single sign-on, an approval made for no approver (as every Slack and email link is) and an undo link now last GATEWAY_OPEN_LINK_TTL (4 h) unless their maker asks longer with expires_in (up to GATEWAY_APPROVAL_TTL); they still work once. Refusing to decide by a link without sign-in, the other way the review offered, would end the documented setup without single sign-on (the <chronos-approve> widget put to a customer's end user, who has no sign-in here); with single sign-on, approver binds a link to a person and GATEWAY_OIDC_REQUIRE=on binds every link.
      • A personal key lists its own runs. GET /v1/runs with a personal key lists the runs it launched (of the latest 500), not every tenant's. No other caller is held to one tenant (developer keys are the backend's, across its tenants), so the list is unchanged for them.
      • Tests: unit tests for the scan (E-strings, nested comments, Unicode spaces, the new statements), confined on run SQL and the MCP tool, approvals that name no version, self-approval by person and key, the verified email, short-lived links and a personal key's run list; tests/sso.rs checks /v1/me/held and /v1/me/runs/:id/approval refuse a person's own changes. The test identity provider now says email_verified.
    • AI reviewer and the cloud link:
      • Text inside jsonb values, arrays and keys no longer reaches the AI reviewer or the explainer. Text at any depth of a value, and every key (column names too), is shown by the same rule as a column's text: one word as it is, else a placeholder; 4 levels and 20 items deep at most, a whole change at most 24,000 characters (rows past it left out, and said so). The change goes to the model as JSON between <data> and </data>, every < and > in it escaped, and both system prompts say all of it is data. A model's approval of a change it wasn't shown whole (more rows than GATEWAY_REVIEWER_MAX_ROWS, or past the cap) or of one that deletes rows is passed to a person. Unit tests plant instructions in a jsonb value, a key and a fence.
      • GATEWAY_CLOUD_SHARE=counts sends counts only, as documented. world.held no longer carries the reasons as the engine tells its admin (they can quote rows), the tenant or the run's intent; run.* events carry no tenant or intent; events queued under diffs lose them too. The cloud's show_reviews is read as the read-only agent chronos_cloud_reader, so its reasons are values-free, and keeps each review's counts but not its effects, run or scope. No answer under counts keeps a tenant, intent, prompt, row_rules, pg_settings or scope, at any depth (world metadata, the audit's runs, agents). Unit tests.
      • Cloud agents ops keep off the gateway's own agents and never get a token. create_agent and alter_agent from the cloud are refused for gateway_... agents (gateway_reviewer, gateway_explainer), the reviewer's and explainer's configured agents, run_... and chronos_cloud_reader, and for any admin right. A created agent's token stays on the connector, sealed in its store, and the cloud gets token: null; chronos-gateway cloud-agent-token <name> prints it on that machine. Unit tests.
    • Engine child, connectors and releases:
      • The gateway proves the engine it runs is its own. Each start of the managed engine listens on a port picked then, over TLS, with a certificate signed by an authority made for that start alone (its key never written down; the engine's key in engine-tls.key, mode 600). The gateway trusts that authority only, so a local process that takes the port first (or after a crash) can't answer as the engine and is never sent the admin token, an agent's token or a row. chronos-gateway backup reaches a running engine the same way (the port and the authority's certificate are in engine.json). One loop keeps each database's engine running.
      • The engine gets none of the gateway's secrets. chronos serve and chronos attach start with an empty environment plus PATH, HOME, the temporary folder, locale, TZ, the system's certificates, RUST_LOG, RUST_BACKTRACE and the engine's own CHRONOS_ settings; not GATEWAY_* (sign-on, SMTP, model keys, the store URL) or anything else.
      • MongoDB uses TLS by default. A MongoDB URL to another machine that names no tls/ssl gets tls=true, for the check and the engine alike; tls=false named in the URL is kept, and the check warns about it. Loopback hosts and Unix sockets are unchanged.
      • role_sql quotes each table name whole. A table named billing.invoices in public was granted as table invoices of schema billing.
      • The MongoDB setup script quotes the database name (db = db.getSiblingDB("..."), a JSON string) instead of use <name>, so a name can't add statements.
      • MongoDB errors lose every credential. The scrubber now takes the user and password out of any scheme://user[:password]@ (also mongodb+srv, a user alone, percent-encoded or unencoded passwords) and the values of password, authMechanismProperties and other secret query keys.
      • Breaking default: /metrics is no longer open to anyone. Without GATEWAY_METRICS_TOKEN it takes a developer key (or a signed-in console session), or a request from this machine when the gateway listens on loopback and no proxy forwarded the request (X-Forwarded-For, Forwarded, ...). GATEWAY_METRICS=open opens it as before.
      • Backups are owner-only from the start. The store's copy is created mode 600 before SQLite writes into it (it was chmodded after), and the backup's folders are 700.
      • Webhooks reach public addresses only. A webhook's host is resolved at each delivery and refused if any address is loopback, private, link-local (cloud metadata), shared, multicast or reserved, IPv4 inside IPv6 included; the delivery connects to exactly the addresses checked, through no proxy, and follows no redirect. POST /v1/webhooks refuses such a URL (400 webhook_target). GATEWAY_WEBHOOK_ALLOW (hosts, addresses, CIDR blocks) allows internal receivers.
      • Releases check the engine they bundle. release/build.sh verifies the engine tarball's cosign signature (the release account) beside its checksum before it goes in the image, and hands cosign the identity token's file path instead of the token, so it never shows in ps. install.sh checks signatures whenever cosign is installed, warns clearly when it isn't, requires them with CHRONOS_VERIFY=1 and skips them with CHRONOS_VERIFY=0.
      • The Python client keeps the key on its own origin. A redirect to another host, port or scheme is followed without Authorization.
  • High availability: a new leader never talks to the old leader's engine (CHRONOS-320). With gateways sharing a store, a leader paused past its lease (a frozen VM, SIGSTOP) could still have its engine on the port kept in engine.json; the new leader took it for its own and sent it a merge, which reached the database before that engine was stopped. Since the engine is started on a port and a certificate authority of its own each time (below, "The gateway proves the engine it runs is its own"), the new leader trusts only the engine it started. The end-to-end failover test (tests/e2e_ha.rs) caught it; its status polls now time out after 3 s, since a follower forwards them to the frozen leader.
  • An old engine loop no longer overwrites a new engine's files. A database disconnected while its engine waited to restart, then connected again under the same name, could have the old loop wake and rewrite the new engine's TLS files and engine.json (and the gateway's pin) with a port nothing listened on. The loop now checks that it is still current, under the lock a stop counts under, before it writes them, as it already did before starting the engine.
  • Breaking default: Slack and mail links open the console without single sign-on. A held merge's Slack message and mail now link to the change in the console (/console#/review/<run>), where a person signs in to decide, and a merged one to the console to undo: a link left in a channel or a forwarded mail decides nothing. GATEWAY_OPEN_LINKS=on keeps the links that decide by themselves (once, GATEWAY_OPEN_LINK_TTL). Links your backend makes (POST /v1/runs/:id/approval, the widget) are unchanged.
  • Developer keys held to a tenant. POST /v1/keys {name, scopes, tenant} makes a key that starts, lists, reads and decides only that tenant's runs (another's is 404), starts runs of it when the body names no tenant, and reads no event log or effects (403 tenant_key). It can't have the admin scope. GET /v1/keys shows each key's tenant.
Chronos Gateway 0.5.0 · Chronos