Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ an absent invariant.
71. **A failed record-seal pack ends the run non-zero; only the known empty case exits zero.** `@claude 2026-10-19`: the record-seal's command ran `trailryx-node read --pack` and, on any failure, printed "nothing sealed here to pack yet" and exited 0, so every failure read as a run with nothing to seal (GOTCHAS 151). The command now keeps trailryx-node's output and status. Only the line trailryx-node prints for an empty ledger exits 0, and that run does not verify. Any other failure exits with trailryx-node's own status and prints its reason. Single event files that fail to import are still counted and skipped, by design, as the manifest's comment says.
*(gate: `scripts/record-seal-fails-closed.sh`, which reads the record-seal script from the manifest and runs it under stand-in `trailryx-node` and `trailryx-verify` in four cases: a pack that succeeds, the empty case, a failure whose message also contains the word "nothing", and an absent subject. Five cases in `scripts/gates-have-teeth.sh`, four that must fail and one pass. Red first: on the unfixed manifest the gate failed twice, "a failed pack exits 0" and "a failed pack prints the known empty line". Not covered: a real trailryx-node image run against an empty data directory and a failing one; the empty-case line is trailryx-node v1.4.0's wording, read from its tag, so a release that changes it makes the job fail until the gate says the new line.)*

72. **The Keyryx custody and witness run one keyryx release, and the record seal runs one trailryx-node release, each pinned by tag and digest.** `@claude 2026-10-19`: `keyryx/manifests/59-keyryx.yaml` names `keyryx:v0.1.5` by its index digest for both custody and the witness (v0.1.3 from 2026-10-26, when it shipped the Go 1.27.3 fix for GO-2026-6809, until 2026-11-07, when v0.1.4 made a new key at the bound retire its owner's oldest, keyryx#27; v0.1.2 before that), and `manifests/40-routines-and-secrets.yaml` names `trailryx-node:v1.5.0` by its index digest for the record seal. Both digests carry a legacy `.sig` signature tag on ghcr.io (a registry read, 2026-10-19 for trailryx-node and 2026-11-07 for keyryx v0.1.4, whose signature cosign v3.1.3 also verified on forge that day; admission by the policy controller is measured separately, invariant 58). A tag and its digest move together, and the two Keyryx images are the same image.
72. **The Keyryx custody and witness run one keyryx release, and the record seal runs one trailryx-node release, each pinned by tag and digest.** `@claude 2026-10-19`: `keyryx/manifests/59-keyryx.yaml` names `keyryx:v0.1.5` by its index digest for both custody and the witness (v0.1.3 from 2026-10-26, when it shipped the Go 1.27.3 fix for GO-2026-6809, until 2026-11-07, when v0.1.4 made a new key at the bound retire its owner's oldest, keyryx#27; v0.1.2 before that), and `manifests/40-routines-and-secrets.yaml` names `trailryx-node:v1.6.0` by its index digest for the record seal. Both digests carry a legacy `.sig` signature tag on ghcr.io (a registry read, 2026-10-19 for trailryx-node and 2026-11-07 for keyryx v0.1.4, whose signature cosign v3.1.3 also verified on forge that day; admission by the policy controller is measured separately, invariant 58). A tag and its digest move together, and the two Keyryx images are the same image.
*(gate: `scripts/keyryx-release-pins.sh`, which holds the release pins and refuses any image that is not one of them, or an absent subject; five cases in `scripts/gates-have-teeth.sh`, four that must fail and one pass. Red first: on the v1.6.0 manifests the gate failed on the three images it names. Not covered: whether the pinned images run on a cluster; the signature check is a registry read, not a verification.)*

73. **The record seal is pinned to the one ES384 key custody publishes for trailryx-root, by its RFC 7638 thumbprint, and the pin is kept until the operator rotates it on purpose.** `@claude 2026-10-19`: trailryx-node v1.5.0 refuses to start with `TRAILRYX_SIGNER=keyryx` and no `TRAILRYX_KEYRYX_KID`, and reads only the P-384 key whose thumbprint is the pin (its release notes, `docs/releases/v1.5.0.md`, and `crates/trailryx-node/src/keyryx.rs`). `keyryx/policy.json.tmpl` declares trailryx-root as ES384; v1.6.0 declared ES256, which the node cannot use. `lib/keyryx-install.sh` (`keyryx_pin_trailryx_kid`) reads custody's trailryx-root key set through a one-shot probe pod with the consumer label, and writes the kid of its one ES384 key into the `stack-wiring` ConfigMap, which the record-seal reads as a non-optional `configMapKeyRef`. It refuses a set with no ES384 key, a first install with more than one, a pin the set no longer holds, and a rotation to a kid the set does not hold. A re-run keeps the pin. **Rotation, on purpose:** when custody publishes a successor ES384 key, re-run the launcher with `KEYRYX_ROTATE_KID=<the successor's kid>`, read from `GET /v1/jwks/trailryx-root`; the pin moves to it and nothing else does. The kid is public, and nothing about the key but its kid is printed.
Expand Down
25 changes: 25 additions & 0 deletions docs/releases/v1.16.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# stack-k8s 1.16.0

A minor release that moves the record seal to trailryx-node v1.6.0. The record plane now writes a closing record for a hold wardryx closed by its lifetime (`approval_expired`, read as a timeout) or that its own agent withdrew (`approval_withdrawn`, read as no verdict); under v1.5.0 both were refused as unknown types. Neither reads as a denial. The image also carries the lockfile that clears every advisory with a reachable fix.

## Upgrade first

1. **Re-run the launcher, or apply the manifests of this tag.** No new object, no changed claim, no new setting. One image moves by tag and digest:

| Image | 1.15.0 | 1.16.0 |
|---|---|---|
| trailryx-node (the record seal) | v1.5.0 `f15215cd` | v1.6.0 `68c413c2` |

The seal's Keyryx signer, its pinned key and its credential are unchanged.
2. **Going back to 1.15.0 needs nothing special.** Apply the 1.15.0 manifests. Records written under v1.6.0 carry mapper version 115 and stay valid; v1.5.0 refuses the two types again from the next line it reads.

## What changed

- **The record seal pin** moves to trailryx-node v1.6.0 in `manifests/40-routines-and-secrets.yaml`. The gates that name the pin (`keyryx-release-pins.sh` and its teeth case) read the new one.

## Evidence

- CI on this release's pull request: `gates`, `fast-gates` and the six teeth shards.
- The digest was read from the registry with `docker buildx imagetools inspect`, and its provenance was verified with `gh attestation verify -R TAIPANBOX/trailryx`.

Full changelog: https://github.com/TAIPANBOX/stack-k8s/compare/v1.15.0...v1.16.0
2 changes: 1 addition & 1 deletion manifests/40-routines-and-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ spec:
# else, and this job needs `trailryx-node`, `trailryx-verify`
# and a shell. That is why it is a second image over there
# rather than more inside the first one.
image: ghcr.io/taipanbox/trailryx-node:v1.5.0@sha256:f15215cd9708724e83fbd8493f2bf7d2a11980b37edf3b887081d8e17da18bab
image: ghcr.io/taipanbox/trailryx-node:v1.6.0@sha256:68c413c2d6d0bd3bde4ad3478e6ee9ebc3a95e5a0d1b26d1d1ca5f588baf20a8
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
# One import per file in the bus directory, then one pack over the
Expand Down
2 changes: 1 addition & 1 deletion scripts/gates-have-teeth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4072,7 +4072,7 @@ run_case "keyryx-release-pins: the witness is left on keyryx v0.1.3" fail \
"is not the release pin"
run_case "keyryx-release-pins: the record seal is left on trailryx-node v1.4.0" fail \
'./scripts/keyryx-release-pins.sh' \
"$(py 'edit("manifests/40-routines-and-secrets.yaml", "trailryx-node:v1.5.0@sha256:f152", "trailryx-node:v1.4.0@sha256:f152")')" \
"$(py 'edit("manifests/40-routines-and-secrets.yaml", "trailryx-node:v1.6.0@sha256:68c4", "trailryx-node:v1.4.0@sha256:68c4")')" \
"is not the release pin"
run_case "keyryx-release-pins: one keyryx digest is not the tag's" fail \
'./scripts/keyryx-release-pins.sh' \
Expand Down
4 changes: 2 additions & 2 deletions scripts/keyryx-release-pins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import sys

PINS = {
"keyryx": ("v0.1.5", "sha256:967dd49907d48edea9cb0af926ec9beae39de31909ced8149eff1546200d99e7"),
"trailryx-node": ("v1.5.0", "sha256:f15215cd9708724e83fbd8493f2bf7d2a11980b37edf3b887081d8e17da18bab"),
"trailryx-node": ("v1.6.0", "sha256:68c413c2d6d0bd3bde4ad3478e6ee9ebc3a95e5a0d1b26d1d1ca5f588baf20a8"),
}
bad = []

Expand Down Expand Up @@ -56,5 +56,5 @@ if bad:
print("FAIL " + b)
print(f"{len(bad)} problem(s). See CLAUDE.md invariant 72.")
sys.exit(1)
print("OK: custody, the witness and the record seal run the release pins: keyryx v0.1.5 and trailryx-node v1.5.0, each by tag and digest.")
print("OK: custody, the witness and the record seal run the release pins: keyryx v0.1.5 and trailryx-node v1.6.0, each by tag and digest.")
PY
Loading