From 78ee590f56ddd43deda2b4a037689570d6716c95 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 07:54:59 -0600 Subject: [PATCH] release: v0.6.0 notes and install-doc literals The v0.6.0 notes PR, as docs/development.md#releasing steps 1 and 2 describe it (INN-180). A minor release: it carries migration 00019. - CHANGELOG.md: Unreleased becomes the v0.6.0 section, titled. A lead paragraph states what an operator sees: enforcing asks for evidence wherever the console offers it (no observed traffic fails the verdict, both mode-change dialogs draw the review's verdict and take the acknowledgment, gaps are named as stored), the command line and the API say they are unguarded, the console is restyled to design package v4, and the control plane records a sync stream's end against the stream that ended. #254, the architecture's description of the renewal check, gains the entry it had none of. A closing paragraph states the upgrade: migration 00019 is additive, nothing under proto/ or the agent changes since v0.5.2 so v0.5.x agents need not be upgraded with the control plane, and a stop can take fifteen seconds. - README.md, docs/reference/versioning-and-install.md, and docs/deploy/README.md name v0.6.0, the tag these docs ship in. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Claude --- CHANGELOG.md | 7 ++++++- README.md | 12 ++++++------ docs/deploy/README.md | 2 +- docs/reference/versioning-and-install.md | 14 +++++++------- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e99543b..e8a7bec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ Notable changes to Innerwall, newest first. Versions follow semantic versioning; before 1.0, a minor version may change anything. -## Unreleased +## v0.6.0 — the console's new design, and a review that asks for evidence + +Enforcing now asks for evidence wherever the console offers it. A scope with no traffic recorded in simulation in the range no longer reads safe to enforce (#257), and a change to enforced from the fleet's **Change mode for selected…** or the workload page's **change…** draws the simulation review's verdict for each workload it would move and, past any verdict that is not safe, asks for the acknowledgment the review's promotion asks for (#94); the review also names evidence gaps as they are stored, not as one span (#160). `innerwall workload set-mode` and `POST /api/v1/mode-changes` still apply a change to enforced as asked, and now say so (#256). The console is restyled to design package v4 (INN-174). Beside it, the control plane records a sync stream's end against the stream that ended: an offline mark is written only while the workload's record names the ending stream (#109, migration 00019), a stream whose open is not recorded is ended rather than served (#264), and a shutdown waits, for a bounded time, for every open stream to write its offline mark and snapshot stamp before the database closes (#113, #260), with the compose stack giving it the time to (#259). - **A scope with no observed traffic is not safe to enforce** (#257). The simulation review called a scope safe when every workload in it simulated on its latest policy with no evidence gap and nothing that would be dropped, even when no traffic at all was recorded in simulation in the range: a workload switched to simulation a moment ago read "Safe to enforce", with only a caveat ("No flows were stored in this range; no observed traffic stands behind this verdict"), and promoting it, or enforcing it from the fleet's **Change mode for selected…** or the workload page's **change…**, asked for no acknowledgment. No traffic recorded in simulation in the range is now a failing condition of its own, in place of that caveat: "No traffic was recorded in simulation in this range — no observed traffic stands behind this verdict". The headline reads "Not safe to enforce yet" with "Nothing was observed in simulation in this range, so the review cannot show what enforcing would drop.", the would-block view no longer shows its all-clear for a scope where nothing was observed, and enforcing takes the acknowledgment at the review's promotion and in both mode-change dialogs, as any other failing condition does. The condition judges the scope as a whole: any traffic recorded on any of its workloads, however little, satisfies it. It says that nothing was observed, not why, and sets no minimum time in simulation. Console only. ADR-0001 takes a dated amendment. - **`innerwall workload set-mode` and `POST /api/v1/mode-changes` say they are unguarded** (#256). Both accept a change to enforced with no evidence check and no acknowledgment, by decision; the command's usage and help and the operation's description in `api/openapi.yaml` now say so, and name the simulation review in the console as where the evidence is weighed. No behavior changes. A server-side evidence guard stays on the roadmap. @@ -15,6 +17,9 @@ Notable changes to Innerwall, newest first. Versions follow semantic versioning; - **A stream ending on one control-plane replica no longer marks offline a workload whose newer stream another serves** (#109). A sync stream's offline mark is written by the replica that served it, after the stream has gone. An agent directed to reconnect redials at once, and behind a load balancer its next stream can open on another replica, or on the incoming process of a deploy while the outgoing one writes the marks of the streams its shutdown ended. Nothing ordered the two processes' writes, so the old stream's mark could land after the new stream had recorded pending and synced: the console showed the workload offline while its stream was live, and **Resend snapshot** (`innerwall workload resend-snapshot`, `POST /api/v1/workloads/{id}/resend-snapshot`) was refused as offline, until the agent's next acknowledgment, which on a quiet workload can be a long time away. Each stream is now given a random identifier when its replica registers it, recorded with the stream's open (migration 00019), and the offline mark is written only while the workload's record still names the ending stream; when a newer stream has opened, the mark writes nothing and the replica logs `offline mark not written: a newer sync stream of the workload has opened since this one` at info level. The lines a sync stream logs from its own handler (`sync stream opened`, `sync stream closed`, `policy applied`, and the rest) now carry its `stream_id`. A record no stream has opened since the upgrade names none, and its stream's mark is written as before; the outgoing process of the deploy that brings this release still writes its marks unconditionally. Nothing in the agent, the wire contract, the operator API, or the workload read changes. - **A control-plane shutdown records every open stream's workload offline** (#113). Shutdown gives open agent calls ten seconds to end, which sync streams never do on their own, and then ends them; it returned without waiting for their handlers, and `serve` closed its database connections while the handlers were writing their workloads' offline marks, so marks failed with `closed pool` (logged as `marking workload offline`) and those workloads went on reading as they did while connected until their agents next connected. Once it has ended the streams, shutdown now waits for every agent call's handler to return, for at most five seconds more, before the connections close; a handler still running then is logged once at warning level, and what it still writes fails as before. A stop with agents connected takes at most fifteen seconds, up from ten. Nothing in the agent, the wire contract, or the schema changes. - **A change to enforced outside the simulation review shows the evidence and asks for the acknowledgment** (#94). The fleet's **Change mode for selected…** and the **change…** beside the mode on the workload page set any mode in one step, enforced included: a workload enrolled minutes earlier, with no flows and no time in simulation, could be enforced with one click, with no verdict and no acknowledgment, while the review's promotion asks for one past any verdict that is not safe. A change to enforced from either dialog now reads, for each workload it would move, the verdict the review composes for that workload alone over the review's default range (the last 24 hours), with the same reads and the same composition, and draws the review's verdict block. When every such workload's verdict is safe, the change is one step, as a promotion is. Otherwise the block counts them ("No simulation evidence for N of M selected", "Not safe to enforce for N of M selected"), lists the workloads behind each count with the review's reason, and the confirm, "Enforce anyway on N workloads", writes nothing until one acknowledgment for the selection is checked. While the evidence is read, or if it cannot be, nothing is written. The dialog stays the deliberate way to enforce what the review would not offer, such as a re-enrolled host whose previous identity earned enforcement. Changes to visibility or simulation stay one step. Console only: `innerwall workload set-mode` and `POST /api/v1/mode-changes` still accept a change to enforced with no evidence and no acknowledgment. ADR-0001 takes a dated amendment. +- **The architecture describes the agent's renewal check** (#254). `ARCHITECTURE.md` described the agent's renewal timer and its two clocks, but not the wall-clock check v0.5.2 added (#218, ADR-0016's dated amendment). The sync daemon's paragraph and the agent's renewal loop now say that the daemon compares the wall clock with the renewal point when the sync stream is established and on each heartbeat, renews at once when the point has passed, sends nothing of its own for the check, and never moves the schedule. Documentation only; v0.5.2 already ships the behavior. + +One migration, 00019, adds the nullable `sync_stream_id` column to `workloads`; it is additive, and `serve --migrate`, which the compose file runs, or `innerwall migrate` applies it. There is no agent-contract change: nothing under `proto/` or its generated code differs from v0.5.2, and the agent carries no code change from v0.5.2, so v0.5.x agents keep working against a v0.6.0 control plane and need not be upgraded with it; upgrade the control plane first, as always. The operator API's contract is unchanged; the description of `POST /api/v1/mode-changes` gains a sentence. After upgrading, a scope with no traffic recorded in simulation in the range reads "Not safe to enforce yet", and enforcing it from the review or from either mode-change dialog takes the acknowledgment; a change to enforced from either dialog reads the review's evidence before it writes anything. A stop with agents connected can take up to fifteen seconds: the compose file of the release's checkout allows twenty, and any other supervisor of `innerwall serve` that kills it sooner loses the offline marks still being written. During the deploy that brings this release, the outgoing v0.5.x process still writes its offline marks unconditionally, and a workload's record names no stream until its agent's first stream after the upgrade, so its mark is written as before until then. ## v0.5.2 — an entry admits what it says, and renewal survives a suspend diff --git a/README.md b/README.md index a8c3d34..a03312d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Open-source microsegmentation for heterogeneous server estates: VMs, bare metal, A small agent on each workload observes the connections that reach it and programs the operating system's native firewall. A control plane turns label-based policy into per-host rulesets, pushes them over persistent streams, and renders the estate's real traffic as a live dependency map. An operator console embedded in the control plane shows that map, the fleet, the policy, and what enforcing it would break. -**Status: v0.5.2.** Enrollment and short-lived workload identity, the policy sync stream, flow telemetry with evidence gaps, policy authoring with dry runs, simulation, and enforcement on Linux (nftables), and the operator console all work end to end. Releases ship binaries — downloadable, checksummed, and signed — and a published control-plane image, which the Docker Compose quickstart now runs exactly as published, never rebuilding it from the checkout. Install from a release: [docs/reference/versioning-and-install.md](docs/reference/versioning-and-install.md). What is deliberately not built yet, and what comes next, is in [ROADMAP.md](ROADMAP.md); what changed in each release is in [CHANGELOG.md](CHANGELOG.md). +**Status: v0.6.0.** Enrollment and short-lived workload identity, the policy sync stream, flow telemetry with evidence gaps, policy authoring with dry runs, simulation, and enforcement on Linux (nftables), and the operator console all work end to end. Releases ship binaries — downloadable, checksummed, and signed — and a published control-plane image, which the Docker Compose quickstart now runs exactly as published, never rebuilding it from the checkout. Install from a release: [docs/reference/versioning-and-install.md](docs/reference/versioning-and-install.md). What is deliberately not built yet, and what comes next, is in [ROADMAP.md](ROADMAP.md); what changed in each release is in [CHANGELOG.md](CHANGELOG.md). ## The console @@ -39,15 +39,15 @@ Each image puts a screen of the shipped console in its dark theme (left) beside > [!IMPORTANT] > **Before you start: decide where the agents will run.** The agent runs only on Linux, as root, with nftables. If any agent will run on a machine other than the one running the control plane (always the case when Docker runs on macOS or Windows), first read [Name the control plane before the first start](docs/deploy/multi-host-evaluation.md#name-the-control-plane-before-the-first-start). The gateway's certificate is generated once, at the first start, and names only that machine's local names, so an agent on another machine cannot enroll against it. If the stack already started without the right names, `innerwall ca issue-server` reissues the certificate from the same signing authority and a restart presents it; nothing is enrolled again ([a stack that has already started](docs/deploy/multi-host-evaluation.md#a-stack-that-has-already-started)). -The supported v1 deployment is one control-plane binary and one Postgres (ADR-0017). Run the released image with Docker Compose, or install the released binaries. These docs describe v0.5.2, and every command below names it. +The supported v1 deployment is one control-plane binary and one Postgres (ADR-0017). Run the released image with Docker Compose, or install the released binaries. These docs describe v0.6.0, and every command below names it. ### With Docker Compose ```sh git clone https://github.com/innerwall-dev/innerwall.git cd innerwall -git checkout v0.5.2 # the release these docs describe; a fresh clone is main -echo 'INNERWALL_IMAGE=ghcr.io/innerwall-dev/innerwall:0.5.2' > .env +git checkout v0.6.0 # the release these docs describe; a fresh clone is main +echo 'INNERWALL_IMAGE=ghcr.io/innerwall-dev/innerwall:0.6.0' > .env docker compose up -d # pulls the released control-plane image and starts it with Postgres ``` @@ -69,7 +69,7 @@ Open `https://localhost:8080/` and log in. The certificate is self-signed, so th ### With the release binaries -The control plane is one binary, for Linux or macOS: download `innerwall_0.5.2__.tar.gz`, verify it, and install it as [versioning and install](docs/reference/versioning-and-install.md#install-from-a-release) shows (the agent below takes the same steps). Then, with a reachable Postgres: +The control plane is one binary, for Linux or macOS: download `innerwall_0.6.0__.tar.gz`, verify it, and install it as [versioning and install](docs/reference/versioning-and-install.md#install-from-a-release) shows (the agent below takes the same steps). Then, with a reachable Postgres: ```sh export INNERWALL_DATABASE_URL='postgres://innerwall:innerwall@127.0.0.1:5432/innerwall?sslmode=disable' @@ -105,7 +105,7 @@ cp ./state/ca/ca.crt ./ca.crt On the host to protect, download the agent, verify it against the release's signed checksums, and install it (`ARCH` is `amd64` or `arm64`): ```sh -VERSION=0.5.2 ARCH=amd64 +VERSION=0.6.0 ARCH=amd64 ASSET=innerwall-agent_${VERSION}_linux_${ARCH}.tar.gz base=https://github.com/innerwall-dev/innerwall/releases/download/v$VERSION for f in "$ASSET" checksums.txt checksums.txt.sig checksums.txt.pem; do curl -fsSLO "$base/$f"; done diff --git a/docs/deploy/README.md b/docs/deploy/README.md index 7c12c29..1c3d71b 100644 --- a/docs/deploy/README.md +++ b/docs/deploy/README.md @@ -5,7 +5,7 @@ One control-plane binary and one Postgres, co-located or adjacent (ADR-0017). `docker-compose.yml` at the repository root is that deployment. In a checkout of the release's tag, name the release's control-plane image in `.env` and start it: ```sh -echo 'INNERWALL_IMAGE=ghcr.io/innerwall-dev/innerwall:0.5.2' > .env +echo 'INNERWALL_IMAGE=ghcr.io/innerwall-dev/innerwall:0.6.0' > .env docker compose up -d ``` diff --git a/docs/reference/versioning-and-install.md b/docs/reference/versioning-and-install.md index f2f060e..ed19a51 100644 --- a/docs/reference/versioning-and-install.md +++ b/docs/reference/versioning-and-install.md @@ -15,7 +15,7 @@ Each release carries both binaries, the control-plane image, and what is needed | `checksums.txt.sig`, `checksums.txt.pem` | The cosign signature over `checksums.txt`, and the certificate it was made with | | `ghcr.io/innerwall-dev/innerwall:` | The control-plane image, for `linux/amd64` and `linux/arm64`, signed | -`` is the tag without its `v`: release `v0.5.2` carries `innerwall-agent_0.5.2_linux_amd64.tar.gz` and the image `ghcr.io/innerwall-dev/innerwall:0.5.2`. Each archive holds the binary and `LICENSE`. Images are tagged by version only; nothing is tagged `latest`. +`` is the tag without its `v`: release `v0.6.0` carries `innerwall-agent_0.6.0_linux_amd64.tar.gz` and the image `ghcr.io/innerwall-dev/innerwall:0.6.0`. Each archive holds the binary and `LICENSE`. Images are tagged by version only; nothing is tagged `latest`. Signing is keyless. No signing key exists to leak: the certificate names the release workflow, at the tag, as the signer, and the signature is recorded in the public transparency log. Verifying takes two checks. The signature proves `checksums.txt` came from that workflow at that tag, and the checksum proves the archive is the one the file lists. @@ -24,7 +24,7 @@ Signing is keyless. No signing key exists to leak: the certificate names the rel Set the release and the asset (for the control plane, `innerwall_${VERSION}__.tar.gz`), and download it with the checksum file, its signature, and its certificate: ```sh -VERSION=0.5.2 +VERSION=0.6.0 ASSET=innerwall-agent_${VERSION}_linux_amd64.tar.gz base=https://github.com/innerwall-dev/innerwall/releases/download/v$VERSION for f in "$ASSET" checksums.txt checksums.txt.sig checksums.txt.pem; do curl -fsSLO "$base/$f"; done @@ -59,8 +59,8 @@ A host without cosign can be served by a machine that has it: verify there, copy **The image.** The [quickstart](../../README.md#with-docker-compose) runs it with Docker Compose by naming it in `.env` as `INNERWALL_IMAGE`. The image is signed by the same workflow, by digest; to verify it before running it: ```sh -cosign verify ghcr.io/innerwall-dev/innerwall:0.5.2 \ - --certificate-identity https://github.com/innerwall-dev/innerwall/.github/workflows/release.yml@refs/tags/v0.5.2 \ +cosign verify ghcr.io/innerwall-dev/innerwall:0.6.0 \ + --certificate-identity https://github.com/innerwall-dev/innerwall/.github/workflows/release.yml@refs/tags/v0.6.0 \ --certificate-oidc-issuer https://token.actions.githubusercontent.com ``` @@ -75,7 +75,7 @@ Build from source when no release asset fits: another architecture, an unrelease ```sh git clone https://github.com/innerwall-dev/innerwall.git cd innerwall -git checkout v0.5.2 # the release to build; without it, the build is of main +git checkout v0.6.0 # the release to build; without it, the build is of main make console # builds the console into ui/dist/ make build # bin/innerwall and bin/innerwall-agent, the console embedded ``` @@ -94,9 +94,9 @@ Both binaries report one version string, semantic-version shaped, with the commi | String | Built from | |---|---| -| `v0.5.2+6007581f652b` | a release, or a build of its tag from source | +| `v0.6.0+6007581f652b` | a release, or a build of its tag from source | | `dev+f347cd966f58` | an untagged commit | -| `dev+f347cd966f58.dirty` | an untagged commit with uncommitted changes (a tagged one reads `v0.5.2+6007581f652b.dirty`) | +| `dev+f347cd966f58.dirty` | an untagged commit with uncommitted changes (a tagged one reads `v0.6.0+6007581f652b.dirty`) | | `dev+unknown` | a build that carries no commit at all | The commit is the one the Go toolchain embeds in every build made in a git checkout, so a plain `make build` needs no flags. The Docker image builds with git present for the same reason. A release sets both parts at link time, to the same string a source build of its tag reports.