Repository navigation
v0.3.0
The first ironflowx binary (#139).
Release archives contain the binary and MIT licence, with a separate SHA-256 checksum for each
archive. They target Linux x86-64 and AArch64 (static musl, D81), and macOS on Apple silicon.
The foundation crates and facade share version 0.3.0. The host, CLI, HTTP door and CLI generator
are built from this repository and have publish = false.
-
Server crash tests (#154). Linux and macOS exercise the real host's restart after SIGKILL under load, during drain, and around bootstrap and recovery key publication. The release workflow check rejects builds with the private fault hooks.
-
Serve shutdown (#153): SIGINT or SIGTERM stops admitting calls and drains for up to 10 seconds before closing the engine. A signal during open lets it finish and publish a minted key. A second signal exits 1 immediately. A ledger fault before close exits 8 even without traffic. A control-plane failure still allows serving. The dev and release binaries abort on panic (D63, D72).
-
Docs (#134): corrects 0.2.0's #97 entry and
Engine::open's page. A bootstrapping open that fails before its ledger is in place tries to undo itself; if the undo fails, a bootstrap it did not delete stays unmarked, for a later open to finish. If an open's mark commits but it does not return, no later open reports its lost secret. No behavior change. -
Docs (#135): qualifies 0.2.0's #93, #94, #96, #97 and #98 entries. A control-plane commit that SQLite fails after writing it to the WAL, such as at a failed fsync, is unsettled: the next open of
control.dbmay find it landed, with or without a crash (D48). An open that failed may so have finished its bootstrap, losing a minted secret, or have rotated its seed, against its answer, and acreate_key,revoke_key,recover_admin_keyor recorded expiry that failed may have taken effect. A failed creation or recovery can therefore leave a key incontrol.dbwhose secret the call never returned.architecture.mdsays what a host does about each. No behavior change. -
Docs: a review of the docs against the code.
ErrorKind::Unavailable's page no longer says that only the ledger answers it, until reopened: a control-plane failure can be retried at once, unless a call has panicked under its lock.Engine's pages list every error kind, what a drop withoutclosedoes and the need for tokio, andClock's says thatnowmust not panic.architecture.mdadds what a cancelled key change can still do, what a backup is, file modes, andLedger::openon an engine's root. No behavior change. -
Secret checks (#131): the check that no error type holds a
Secretcovers a generic error used with one; the search for stored or logged secrets covers a refusedrecover_admin_keyand escaped bytes; with__fault-points, the key hook is told a recovered key and its secret (TEN-3's stated exception). CI checks the error code eachcompile_faildoctest names. No behavior change without__fault-points. -
Error kinds and operations (#141):
ErrorKind::retryable()is true forUnavailableonly:UnknownandResourceExhaustedare no longer retryable, and their hints still say what to do (D70, which supersedes that half of D44). It promises no second event, not no second key.ErrorKindgainsInternal(D69), which breaks an exhaustive match on it, andexit_code().OperationgainsALL,rpc()andchanges_state(). -
A page of events (#142):
list_eventsstops a page before its data and metadata pass 3 MiB, with at least one event if any is left, andnextcontinues from there; until now only the count limited a page, so do not take one shorter than its limit for the last. The read store loads no event past the page.EventsView::events_beforetakes aPageBudgetin place of a count, which breaks an implementation or a call of it: onlylist_eventsmakes one, and it says, by its size, whether to load each event (D73). -
Engine health (#143): a host asks an open engine how it is with
Engine::health, which reports the control plane and the ledger each alone, and learns of a ledger fault with no traffic fromEngine::faulted, a future that resolves once, when the ledger becomesUnavailable; a close in which nothing fails leaves it pending. Neither takes a key, and neither is an operation (TEN-1). Both are inironflowx-operations, withHealthandControlPlaneState;Ledgergainsstateandfaulted, withLedgerStateandFault. A read whose caller gave up now fails the ledger as any other does, if its query panics or the read store fails; until now a later call found out, or, of a read-store failure that had cleared, none.Ledger::closeon a runtime that has shut down, which panics, now waits for the writer before it releases the directory. -
Serve (#144):
ironflowx serveopens the engine in a data directory, writes a minted key toadmin.key, and answerswhoamiover Connect, gRPC and gRPC-Web, with/healthand/ready. Two new crates, both unpublished:ironflowx-doors, the HTTP door, andironflowx-bin, the binary.ironflowx-protogains its.protofiles and three features, none on by default:client, the proto client (Client,InvalidUrl), which carrieswhoamiand answersInternalfor every other operation;wire, the generated messages and their mapping; andserver, the generated service traits. With none on, its dependencies do not change. D50, D51, D53, D55, D59, D62, D75–D78. -
CLI (#145):
ironflowx whoamiasks an engine who a key is, andironflowx versionsays what the binary is. A command is generated from the proto at build time, and a method without a command, a summary or a valid example fails the build. An answer is JSON on stdout, with every field that is notoptional, in one line or, on a terminal, indented; a failure is one envelope on stderr and its kind's exit code. The key comes from--key-fileorIRONFLOWX_KEY, never fromadmin.keyunasked; the engine from--urlorIRONFLOWX_URL; a call takes at most 30 s. A usage error,serve's too, is an envelope and exit 2, whereserve's was text, andironflowxalone, which printed help, is one. Two new crates, both unpublished:ironflowx-cliandironflowx-codegen, the generator.ironflowx-proto'sClientgainswith_timeout, itswirefeatureFILE_DESCRIPTOR_SET, and its proto the custom optionscli,summary,exampleandjson_text. D52, D61, D64, D65. -
Keys and environments over the wire (#146):
create_key,list_keys,revoke_keyandlist_environmentsare served over Connect, gRPC and gRPC-Web,Clientcarries them, and each is a command:keys create,keys list,keys revoke,environments list. Scopes travel as strings (D71). A request the wire cannot carry (a limit of 0, an unknown scope, a time finer than a millisecond or outside years 0001–9999) isInvalidbefore the key is read, andClientrefuses such an expiry before it sends. Where no engine answered,ClientanswersUnknownforcreate_keyandrevoke_key, andUnavailablefor a read as before. The hint of acreate_keythat answersUnavailableas it stores its key no longer says to retry at once, in process too, but to list the keys before the retry, and again after the engine reopens. TheCreateKeyanswer is the one wire message that holds a key, which itsDebugdoes not print (TEN-3). -
Events over the wire (#147):
emit,emit_batch,get_eventandlist_eventsare served over Connect, gRPC and gRPC-Web, so every operation is, andClientcarries them all: none isInternalfrom it any more. Each is a command:events emit,events emit-batch,events get,events list. Data and metadata are JSON text in a string field, stored and returned byte for byte (D54); text that is not UTF-8 isInvalidbefore the key is read, andClientrefuses such data or metadata before it sends, a batch whole (D74). Where no engine answered,ClientanswersUnknownforemitandemit_batch, a batch answered with another number of results than it has items, and an emit over 16 MiB; its message for the four names the Connect code alone, or that the answer does not decode, since a body can hold event data. Branch onnext: a page shorter than its limit is not necessarily the last. A Connect JSON client with a 4 MiB receive limit raises it, to 16 MiB: a page can be nearly 6.5 MiB in JSON, where escaping can double it, and stays under 4 MiB in binary, on gRPC and on gRPC-Web. D49. -
What the client knows, and
https(#148): where no engine answered,Clientsays what may have happened. A call whose connection never opened isUnavailable, a state change too, where it wasUnknown; so a retry of it is safe. A state change that may have run staysUnknown, but for an answer the client cannot tell from the engine's (architecture.md, Wire, known limits). A code of the server's library, sent as a Connect server sends it, with no detail, is its own kind:invalid_argument,out_of_rangeandfailed_preconditionareInvalid,resource_exhaustedisResourceExhausted, andunimplementedisInternal, with the hint that the engine is older than the client. A request over 16 MiB isResourceExhaustedand not sent, where a write wasUnknownand a readUnavailable. The message of a failure that is not the engine's, of a call that was sent, names the HTTP status, the Connect code, or that the answer does not decode, and nothing of the body, wherewhoami's,list_environments',list_keys' andrevoke_key's held the body's text. The hint of anUnknownemit fits the request, the engine's as the client's own, which had none: anemitwith an idempotency key keeps the engine's; one without says to check first what landed, and anemit_batchto retry unchanged only if every item had a key and keeps it.ironflowx-protogains the featureclient-tls, off by default, which addshttpsURLs toClient, with roots from the system's store; without it they areInvalidUrl, as before. The CLI takeshttpsURLs. D56. -
Every operation from the CLI (#149): a command takes its request from flags, one per scalar field (
ironflowx events emit --name order.placed --data '{"id":1}'), or whole from--json, as text,@<file>or-, stdin; JSON text is sent byte for byte, from a flag or@<file>.--jsonrefuses a field the request does not have, at any depth, where the door ignores it, so a mistypedidempotency_keystores no event (D79); a JSON value in place of JSON text; and an array for a message. Event data and metadata are printed as the JSON they hold, with only the whitespace between tokens removed, where they were a string of it (D65).keys createrefuses a label that repeats the caller's own key, since its answer, the new key in it, would not be printed;events getandevents liststill refuse to print an event that holds it (TEN-3). -
describe(#150): the CLI lists every operation with its scope, summary and whether it changes state, together with the exit codes. Ask about one operation for its wire request and printed answer schemas, and a request example. Both commands work without a key or a running engine. D67, D82. -
Host through the engine (#174):
ironflowx-operationsexportsis_bootstrapped, a blocking read of the bootstrap mark that creates no directory or database, and re-exportsHostClock,OpenErrorandStoreError. The binary uses the engine to check whether a bootstrap is marked before it accepts an existingadmin.key. The binary drops its direct normal dependencies on the ledger and control plane crates, and CI checks that boundary. -
Proto client through the facade (#175):
ironflowxgains opt-inclientandclient-tlsfeatures. An embedder can useironflowx::proto::Clientas itsOperationsadapter over HTTP, or over HTTPS withclient-tls. Both features are off by default. -
Host startup (#151):
servereads flags and environment settings, accepts a seed, and probes writes and hard links before it can mint. Refusals exit with the corresponding kind and end stderr with the error envelope. Call logs carry the operation, outcome, duration and any validly formatted presented key's ID.seed generatemakes a key and prints it with its ID. D57, D58, D60, D68, D80. -
Admin-key recovery from the CLI (#152):
ironflowx recover-keyworks with or without a running engine. It checks and probes the file destination before recovering a key toadmin.key. Use--stdoutto receive the key and its ID as JSON. A delivery failure names the key ID and says how to revoke it. D60.