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
- Breaking default: the cloud link reads only, and sees counts.
GATEWAY_CLOUD_ALLOWnow defaults toread(wasread,merge,discard,undo) andGATEWAY_CLOUD_SHAREtocounts(wasdiffs), in the binary,deploy/compose.yamland 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,undoandGATEWAY_CLOUD_SHARE=diffs. The link logs what it allows as it starts, and warns when that includesmerge(gateway #103). Events queued before the upgrade go up as the new setting says: undercounts, without the messages and reasons an event queued underdiffscarried. - Tests: an end-to-end test missing its database now says so (
SKIPPED (not run): <test> needs <variables>), and withCHRONOS_E2E_REQUIRED=1fails 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 = trueto 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
--helpsay 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_changeread 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 (400scope, "within what the parent may change ()"). Tests: undo,act_asand 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_INCREMENTinserts: 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
LICENSEandNOTICE,license = "FSL-1.1-ALv2"inCargo.toml, the image label, the README and the guide. The Python and TypeScript clients are MIT, each with its ownLICENSE. Each release tarball carriesLICENSEandNOTICEbeside 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), asNOTICEsays;enterprise/is unchanged (gateway #115). - An Agent Skill and an
AGENTS.mdsnippet for coding agents (docs/agents/, published asagents/): 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 discoverfailed 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(orpartly_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.mdsays how, and holds no figures until it has been run (CHRONOS-301, gateway #105). GET /metricsand 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 aschronos_engine_...(GATEWAY_METRICS_TOKENcloses it). WithGATEWAY_SMTP_URL,GATEWAY_SMTP_FROMandGATEWAY_APPROVER_EMAILSeach 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>andrestore <dir>. A backup while the gateway runs: the store copied withVACUUM INTO, each engine's folder copied by the running engine (itsbackupop) or as it is when stopped, the keys, and a manifest.restorelays 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=offkeeps the old behaviour (a run's writes skip the fsync, and an open run lost with the engine answers 409world_lost) (CHRONOS-323, gateway #97). - A run's 64 KB metadata limit is checked inside the write (CHRONOS-259):
PATCH /v1/runs/:id/metameasured the run it had loaded, so two updates at once could each pass and together store more.Store::merge_metanow checks the merged result in its transaction; past 64 KB it stores nothing and the answer is 413too_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_CERTandGATEWAY_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), unlessGATEWAY_ALLOW_PLAIN_HTTP=onsays 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 withoutsslmodeto another machine now connects withverify-full(wasprefer), and a MySQL or MariaDB one withssl-mode=VERIFY_IDENTITY(wasPREFERRED); 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 explicitprefer,requireorallowto another machine still works, with a warning. A database whose certificate doesn't check out now fails to connect: addsslrootcert, or set the oldsslmodeexplicitly. - 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/oradmin(everything: settings, keys, the console); a route outside its scopes answers 403scope. Existing keys, the gateway's first key andGATEWAY_API_KEYkeep every scope. Later keys getrunsunless made otherwise:keys create <name> --scope approve,POST /v1/keys {scopes}, checkboxes in the console. Onlyadminkeys sign in to the console. A decision made with a key records{by: <key name>, key: <key id>, via: "api"}; abythe caller sends is kept ason_behalf_of, unverified (it was the recorded decider).keys listprints scopes and warns when several active keys haveadmin. The Python and TypeScript clients takescopeson key creation. GATEWAY_REFRESH_EVERYdefaults to 1h while the engine follows changes (CHRONOS-291): withGATEWAY_FOLLOWon (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/statusshows 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 thatPOST /v1/connectwrote, is removed at start, with a log line. A group-readable mount (a Secret withdefaultMode: 0440) works as before. NewGATEWAY_ENGINE_TOKEN_FILE: the engines' admin token from a mounted file (24+ characters), read at each start and never written toengine.json, which then holds the port only. The Helm chart has an optionalengineToken.existingSecret, anddeploy/compose.yamlhas commentedengine_tokenlines. With HA, mount both files at the same path on every gateway. A database connected under a name still keeps its URL in its ownsource.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/childrenasks the engine, as admin, once, forGRANT 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 nowritegiven and taken away. Its propose merges with its own token, and the engine judges it. A refusal answers 403scopewith 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 asgateway_explainer(read only, nounmask): no intent, no tenant, no masked value, and free text as placeholders. It decides nothing. It is kept on the run (outcome.explain), sent asmerge.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. NewGET /v1/runs/:id/undoreturns 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 onundoneandpartly_undoneruns, 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/effectsand what an undo says. There is a 30-line receiver indocs/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 ineffects_not_undone. - Who launched each run (CHRONOS-230).
POST /v1/runstakeson_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 asvia: "unverified", and it is refused whenGATEWAY_OIDC_REQUIRE=on. NewPOST /v1/keys/personalgives 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 aslaunched_byon 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'sRunhassetMeta, as Python'sset_meta; Python'sApprovalkeeps the run'sversionforapprove(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 agateway-data/folder behind or hides behind a bad setting: it saysunknown command 'srve'(or "keys revokeneeds an id"), shows the usage lines and exits 2.--helpnow lists the run limits,GATEWAY_FIELDS,GATEWAY_EFFECTS*,GATEWAY_OIDC_ADMINS,GATEWAY_REVIEWER_MAX_ROWS,GATEWAY_REVIEWER_COLUMNSandRUST_LOG(gateway #140, #142). - Docs: the self-host configuration tables have
GATEWAY_FIELDSand theGATEWAY_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 isfailedwith its world kept, so it proposes again after. The gateway still merges as the run's agent and never gives itunmask. 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 whoseUPDATE_TIMEhasn'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 inengine.log.deploy/ha-test/kind-3-node.shruns the failover on a three-node kind cluster with an NFS volume: the leader's node frozen withdocker 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 MCPsqltool 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 orset 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 keepsmerge_ownandwrite_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 (400forbidden_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. Soselect E'\''; merge ...; --'and a leading U+00A0 beforemergeno 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, andexplain analyzeof any refused statement. - A signed-in person sees and decides only changes they may (H2).
GET /v1/me/heldlists, andPOST /v1/me/runs/:id/approvalmakes approvals for, only held runs the person may approve: someoneGATEWAY_OIDC_ALLOW(orGATEWAY_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 403own_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 403own_change, through every path (the API, a link decided signed in,/approvals). Anadminkey andGATEWAY_API_KEYare let through: they can make themselves a key with theapprovescope, so refusing them would protect nothing; give the backend that runs agents arunskey, 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
versionis refused with 400version_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 409staleas 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 fromemail, neverpreferred_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 noemail_verifiedand itsupnfor a missingemail;falseis refused either way. - Fewer changes merge with no person by default. The default rules are now
max_rows = 25(was 500) androws_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 lastGATEWAY_OPEN_LINK_TTL(4 h) unless their maker asks longer withexpires_in(up toGATEWAY_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,approverbinds a link to a person andGATEWAY_OIDC_REQUIRE=onbinds every link. - A personal key lists its own runs.
GET /v1/runswith 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),
confinedon 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.rschecks/v1/me/heldand/v1/me/runs/:id/approvalrefuse a person's own changes. The test identity provider now saysemail_verified.
- A run's SQL is confined by the engine (H1). Every run statement the gateway relays,
- 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 thanGATEWAY_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=countssends counts only, as documented.world.heldno 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 underdiffslose them too. The cloud'sshow_reviewsis read as the read-only agentchronos_cloud_reader, so its reasons are values-free, and keeps each review's counts but not its effects, run or scope. No answer undercountskeeps atenant,intent,prompt,row_rules,pg_settingsorscope, at any depth (world metadata, the audit's runs, agents). Unit tests.- Cloud
agentsops keep off the gateway's own agents and never get a token.create_agentandalter_agentfrom the cloud are refused forgateway_...agents (gateway_reviewer,gateway_explainer), the reviewer's and explainer's configured agents,run_...andchronos_cloud_reader, and for anyadminright. A created agent's token stays on the connector, sealed in its store, and the cloud getstoken: null;chronos-gateway cloud-agent-token <name>prints it on that machine. Unit tests.
- 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
- 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 backupreaches a running engine the same way (the port and the authority's certificate are inengine.json). One loop keeps each database's engine running. - The engine gets none of the gateway's secrets.
chronos serveandchronos attachstart with an empty environment plusPATH,HOME, the temporary folder, locale,TZ, the system's certificates,RUST_LOG,RUST_BACKTRACEand the engine's ownCHRONOS_settings; notGATEWAY_*(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/sslgetstls=true, for the check and the engine alike;tls=falsenamed in the URL is kept, and the check warns about it. Loopback hosts and Unix sockets are unchanged. role_sqlquotes each table name whole. A table namedbilling.invoicesinpublicwas granted as tableinvoicesof schemabilling.- The MongoDB setup script quotes the database name (
db = db.getSiblingDB("..."), a JSON string) instead ofuse <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]@(alsomongodb+srv, a user alone, percent-encoded or unencoded passwords) and the values ofpassword,authMechanismPropertiesand other secret query keys. - Breaking default:
/metricsis no longer open to anyone. WithoutGATEWAY_METRICS_TOKENit 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=openopens 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/webhooksrefuses such a URL (400webhook_target).GATEWAY_WEBHOOK_ALLOW(hosts, addresses, CIDR blocks) allows internal receivers. - Releases check the engine they bundle.
release/build.shverifies 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 inps.install.shchecks signatures whenever cosign is installed, warns clearly when it isn't, requires them withCHRONOS_VERIFY=1and skips them withCHRONOS_VERIFY=0. - The Python client keeps the key on its own origin. A redirect to another host, port or scheme is followed without
Authorization.
- 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
- Runs and approvals:
- 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=onkeeps 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 (403tenant_key). It can't have the admin scope.GET /v1/keysshows each key's tenant.