8 Commits

14 changed files with 81 additions and 16 deletions
+5
View File
@@ -13,6 +13,11 @@ runner: nixos
env: env:
CARGO_TERM_COLOR: "never" CARGO_TERM_COLOR: "never"
CARGO_BUILD_JOBS: "8" CARGO_BUILD_JOBS: "8"
# Each of control's integration tests starts its own edge, Caddy and upstreams, and the tests give edge a 2 s
# margin to hear control's confirmation (production: 30 s). Run all at once on the shared runner, a status call
# can take longer than that and edge reverts the trial by itself, as designed (runs rc344zj96yjz1 and
# rqzephjsp7983, 2026-12-02). Four at a time keeps the runner within the margin.
RUST_TEST_THREADS: "4"
steps: steps:
- id: workspace-tests - id: workspace-tests
run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c cargo test --workspace --no-fail-fast run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c cargo test --workspace --no-fail-fast
+19
View File
@@ -0,0 +1,19 @@
{
"commit": "d0c1ac2548224aa9c7b4d3a5586a0bc6f74beb78",
"nixpkgs": "c56a87d8e41ce69bd2af57eb35dcc117a9dfca33",
"outputs": {
"ianitor": {
"narHash": "sha256-hlX5oiJQPTieETbjojaZnPUGcSgPrKqO2vPsr2o2Xok=",
"narSize": 24455232,
"storePath": "/nix/store/p1fjjxz514ccaqyvzag43mpagj0akiqk-ianitor-1.0.0"
},
"ianitor-web": {
"narHash": "sha256-cR8Lq5LNQoQ7xWa40jpjmRybUC8tS9XuXAtojDmCg2c=",
"narSize": 598000,
"storePath": "/nix/store/vsrm3326zm440gwp17nqg3g3bixb3cmm-ianitor-web-1.0.0"
}
},
"sourceTree": "bf05c78a942bb6915c588760eef97a97ddf4efc0644c73f6ea2941bb9fde97f5",
"system": "x86_64-linux",
"version": "1.0.0"
}
+18
View File
@@ -0,0 +1,18 @@
Ianitor 1.0.0 is the first version meant to run beside Caddy on a real server.
- **Hardened edge.** A 60-second deadline for request headers (slow clients cannot hold a connection open), DNS
lookups on their own bounded threads, pipelined requests on both listeners, and a Unix socket for running beside
Caddy, on which edge trusts only Caddy's forwarded address.
- **The control plane on its own socket.** The web UI reaches control through a socket that only edge can use; the
sign-in proof is honoured only there.
- **Five test layers.** The same requests against Ianitor and Caddy with the answers compared, h2spec and testssl.sh,
fuzzing of the config, header rules and share tokens, NixOS VM tests, and load and soak runs against Caddy, with
the results kept as data, including where Caddy is faster (plain HTTP/1.1 under heavy load, new TLS connections).
- **A verifiable build.** The release publishes the Nix build's hashes. Anyone can rebuild the tag and compare.
- **The shared Domi design system.** The web UI's buttons, text fields, checkboxes and choices come from @domi/ui;
Settings, About shows the running version.
- **A new licence.** From this version Ianitor is under CPAL-1.0 and shows the Built on Domi credit. 0.2.0 and
earlier stay MPL-2.0.
Updates stay a deploy. Fabrica's Deploy moves the server to the new commit and switches back if the health check
does not answer.
Generated
+8 -8
View File
@@ -861,8 +861,8 @@ dependencies = [
[[package]] [[package]]
name = "domi-pki" name = "domi-pki"
version = "1.0.0" version = "1.0.1"
source = "git+https://gitea.marek-novak.cz/mnovak/domi-pki?tag=v1.0.0#b1ec5b3196fc22355270f381e5a7748c50e3380d" source = "git+https://gitea.marek-novak.cz/mnovak/domi-pki?tag=v1.0.1#801dfbdc75cff8ea545422b9ada2fa4a3b6693f8"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"rcgen", "rcgen",
@@ -1304,7 +1304,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-control" name = "ianitor-control"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"axum", "axum",
"base64 0.22.1", "base64 0.22.1",
@@ -1331,7 +1331,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-core" name = "ianitor-core"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"domi-pki", "domi-pki",
@@ -1348,7 +1348,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-diff" name = "ianitor-diff"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"bytes", "bytes",
"http-body-util", "http-body-util",
@@ -1366,7 +1366,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-edge" name = "ianitor-edge"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"arc-swap", "arc-swap",
"async-trait", "async-trait",
@@ -1394,7 +1394,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-fuzz" name = "ianitor-fuzz"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"ianitor-core", "ianitor-core",
"ianitor-edge", "ianitor-edge",
@@ -1403,7 +1403,7 @@ dependencies = [
[[package]] [[package]]
name = "ianitor-testkit" name = "ianitor-testkit"
version = "0.2.0" version = "1.0.0"
dependencies = [ dependencies = [
"bytes", "bytes",
"futures-util", "futures-util",
+2 -2
View File
@@ -12,7 +12,7 @@ members = [
exclude = ["tests/fuzz/fuzz"] exclude = ["tests/fuzz/fuzz"]
[workspace.package] [workspace.package]
version = "0.2.0" version = "1.0.0"
edition = "2024" edition = "2024"
rust-version = "1.89" rust-version = "1.89"
license = "CPAL-1.0" license = "CPAL-1.0"
@@ -23,7 +23,7 @@ ianitor-core = { path = "crates/core" }
ianitor-edge = { path = "crates/edge" } ianitor-edge = { path = "crates/edge" }
ianitor-testkit = { path = "tests/support" } ianitor-testkit = { path = "tests/support" }
# The Domi CA, shared with Fabrica (docs/32_coherence.md T3a); pinned by tag. # The Domi CA, shared with Fabrica (docs/32_coherence.md T3a); pinned by tag.
domi-pki = { git = "https://gitea.marek-novak.cz/mnovak/domi-pki", tag = "v1.0.0" } domi-pki = { git = "https://gitea.marek-novak.cz/mnovak/domi-pki", tag = "v1.0.1" }
serde = { version = "1.0.228", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145" serde_json = "1.0.145"
toml = "1.2.1" toml = "1.2.1"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "web", "name": "web",
"version": "0.2.0", "version": "1.0.0",
"private": true, "private": true,
"license": "CPAL-1.0", "license": "CPAL-1.0",
"description": "Ianitor Domi web UI (Svelte 5, runes, TypeScript strict). A pure client of the control API.", "description": "Ianitor Domi web UI (Svelte 5, runes, TypeScript strict). A pure client of the control API.",
+6
View File
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
/** Ianitor's version, from apps/web/package.json at build time (vite.config.ts `define`). */
declare const __IANITOR_VERSION__: string;
+2 -1
View File
@@ -13,6 +13,7 @@
import type { CreatedToken, ShareLink, TokenRow } from "../lib/types"; import type { CreatedToken, ShareLink, TokenRow } from "../lib/types";
let { tab }: { tab: string } = $props(); let { tab }: { tab: string } = $props();
const version = __IANITOR_VERSION__;
const TABS = [ const TABS = [
{ id: "general", label: "General" }, { id: "general", label: "General" },
{ id: "api", label: "API" }, { id: "api", label: "API" },
@@ -241,7 +242,7 @@
{/if} {/if}
{/if} {/if}
{:else} {:else}
<p>Ianitor Domi 0.1.0</p> <p>Ianitor Domi {version}</p>
<p>CPAL-1.0 (Common Public Attribution License 1.0). Ianitor 0.2.0 and earlier stay MPL-2.0.</p> <p>CPAL-1.0 (Common Public Attribution License 1.0). Ianitor 0.2.0 and earlier stay MPL-2.0.</p>
<div class="about-credit"><DomiCredit /></div> <div class="about-credit"><DomiCredit /></div>
<p>Built, tested and signed by Fabrica Domi</p> <p>Built, tested and signed by Fabrica Domi</p>
+4
View File
@@ -2,6 +2,7 @@
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution // Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
// License 1.0: see LICENSE (its Exhibit A is this file's notice). // License 1.0: see LICENSE (its Exhibit A is this file's notice).
import { readFileSync } from "node:fs";
import { svelte } from "@sveltejs/vite-plugin-svelte"; import { svelte } from "@sveltejs/vite-plugin-svelte";
import { defineConfig } from "vitest/config"; import { defineConfig } from "vitest/config";
@@ -11,9 +12,12 @@ import { defineConfig } from "vitest/config";
// $IANITOR_DEV_TOKEN, which `ianitor-control --dev` prints. // $IANITOR_DEV_TOKEN, which `ianitor-control --dev` prints.
const control = process.env.IANITOR_CONTROL ?? "http://127.0.0.1:7878"; const control = process.env.IANITOR_CONTROL ?? "http://127.0.0.1:7878";
const token = process.env.IANITOR_DEV_TOKEN; const token = process.env.IANITOR_DEV_TOKEN;
// The version Settings, About shows: package.json's, which scripts/check-version.mjs keeps equal to Cargo.toml's.
const version: string = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
export default defineConfig({ export default defineConfig({
plugins: [svelte()], plugins: [svelte()],
define: { __IANITOR_VERSION__: JSON.stringify(version) },
server: { server: {
host: "127.0.0.1", host: "127.0.0.1",
port: 5173, port: 5173,
+2 -2
View File
@@ -27,8 +27,8 @@ rustPlatform.buildRustPackage {
cargoLock = { cargoLock = {
lockFile = ../../Cargo.lock; lockFile = ../../Cargo.lock;
# domi-pki, the shared Domi CA (Cargo.toml pins tag v1.0.0): the NAR hash of its tree at that tag. # domi-pki, the shared Domi CA (Cargo.toml pins tag v1.0.1, CPAL-1.0): the NAR hash of its tree at that tag.
outputHashes."domi-pki-1.0.0" = "sha256-JdknFJ5cxsI1/MtWmvsItoE6f7znJjUr4C/rwUEz9i4="; outputHashes."domi-pki-1.0.1" = "sha256-C3l3Iqo1pFn/k977Y6TMGdh4aRDU76+W4/kyxv+1mXw=";
}; };
# libz-ng-sys (Pingora's compression) builds zlib-ng with CMake. # libz-ng-sys (Pingora's compression) builds zlib-ng with CMake.
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
+4
View File
@@ -137,6 +137,10 @@ discovery (ROADMAP §1.9). When it is time:
X.Y.Z` must pass. Write `.fabrica/notes/X.Y.Z.md`. Commit. X.Y.Z` must pass. Write `.fabrica/notes/X.Y.Z.md`. Commit.
1a. Pin: run `scripts/nix-pin.sh` on Linux with Nix at that clean commit and commit `.fabrica/nix/pin.json` 1a. Pin: run `scripts/nix-pin.sh` on Linux with Nix at that clean commit and commit `.fabrica/nix/pin.json`
([verify.md](verify.md)). The `pin` step refuses a missing pin and one made from other code than the tag's. ([verify.md](verify.md)). The `pin` step refuses a missing pin and one made from other code than the tag's.
Without Nix here: start `verify-nix` on the hub at that commit (`POST /api/runs`, pipeline `verify-nix`, the
branch as ref). Its `pin` step fails for want of a pin and logs the pin it would write as one
`pin.json: {…}` line; save that JSON, formatted by `jq -S .`, as `.fabrica/nix/pin.json` and commit only it.
Then run `verify-nix` again: `pin` must say `matches .fabrica/nix/pin.json`.
2. Tag and push: `git tag vX.Y.Z && git push origin vX.Y.Z`. 2. Tag and push: `git tag vX.Y.Z && git push origin vX.Y.Z`.
3. Start the `release` pipeline at `vX.Y.Z` from Fabrica. No Gitea webhook reaches the hub yet, so use the hub's 3. Start the `release` pipeline at `vX.Y.Z` from Fabrica. No Gitea webhook reaches the hub yet, so use the hub's
`POST /api/runs` with ref `vX.Y.Z`. `POST /api/runs` with ref `vX.Y.Z`.
+2
View File
@@ -42,6 +42,8 @@
pkg-config pkg-config
git git
jq jq
# control's pki tests sign an intermediate the way Mark does by hand (docs/pki.md)
openssl
caddy caddy
pebble pebble
h2spec h2spec
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@ianitor/ui", "name": "@ianitor/ui",
"version": "0.2.0", "version": "1.0.0",
"private": true, "private": true,
"license": "CPAL-1.0", "license": "CPAL-1.0",
"description": "Ianitor's own components on top of @domi/ui (the shared Domi design system): banners, dialogs, status, and adapters for Button and Segmented.", "description": "Ianitor's own components on top of @domi/ui (the shared Domi design system): banners, dialogs, status, and adapters for Button and Segmented.",
+7 -1
View File
@@ -59,7 +59,13 @@ new=$(printf '%s\n' "${entries[@]}" | jq -s --arg v "$version" --arg sys "$syste
'{version: $v, system: $sys, commit: $c, sourceTree: $t, nixpkgs: $n, outputs: add}') '{version: $v, system: $sys, commit: $c, sourceTree: $t, nixpkgs: $n, outputs: add}')
if [ "$mode" = --check ]; then if [ "$mode" = --check ]; then
[ -f "$pin" ] || { echo "no $pin to check" >&2; exit 1; } # With no pin yet, print the one this build would write: the NixOS runner has no commit rights, so its
# log is how the first pin of a release reaches the repo (docs/release.md, Handover 1a).
if [ ! -f "$pin" ]; then
echo "no $pin to check; this build's pin would be:" >&2
jq -S -c . <<<"$new" | sed 's/^/pin.json: /' >&2
exit 1
fi
# At a tag the commit is the pin's child (only pin.json differs), so the commit itself is not # At a tag the commit is the pin's child (only pin.json differs), so the commit itself is not
# compared; the source tree, nixpkgs and every hash are. # compared; the source tree, nixpkgs and every hash are.
if [ "$(jq -S 'del(.commit)' "$pin")" != "$(jq -S 'del(.commit)' <<<"$new")" ]; then if [ "$(jq -S 'del(.commit)' "$pin")" != "$(jq -S 'del(.commit)' <<<"$new")" ]; then