diff --git a/AGENTS.md b/AGENTS.md index 4809e12..76b0c09 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -875,6 +875,18 @@ calls and kind nodes must carry their own explicit bounds. helper uses the static test executable (`CGO_ENABLED=0`, set by `make e2e`); it proves no production edge topology or NetworkPolicy enforcement. +- With `KYQ_TEST_RELEASE_UPGRADE_MANIFESTS` naming an independently attested historical + catalog manifest directory, the NPM joins test installs seven previous Ky images and + upgrades Identity, Recovery, Pulse, Drive, Notes, Calendar and Post to the candidate. + It checks native owner/everyday sign-in, Identity JWKS, available Kubernetes Secret + payloads, Docker credential hashes and Recovery pairing/key retention; candidate Pulse + must deposit through its existing pairing. An everyday-owned calendar/event must retain + its text, times, identifiers and ETag and accept an If-Match edit after upgrading. + Non-migrating upgrades explicitly record the fixture operator's no-backup acknowledgement; + migrating upgrades still require verified backups. Fixture CA/relay plumbing stays explicit. + This verifies seeded native configuration and backup-pairing data, not every product's + ordinary content migration, offboarding or full restore. + ## Child DOX Index - `docs/AGENTS.md` — mdBook manual, chapter ownership and documentation checks. diff --git a/docs/RELEASE-ACCEPTANCE-2026-11-17-MAJOR.md b/docs/RELEASE-ACCEPTANCE-2026-11-17-MAJOR.md new file mode 100644 index 0000000..0fd0dc7 --- /dev/null +++ b/docs/RELEASE-ACCEPTANCE-2026-11-17-MAJOR.md @@ -0,0 +1,322 @@ +# Ky Suite candidate acceptance — Major, 2026-11-17 + +Status: **IN PROGRESS — not release qualified**. + +The [candidate matrix](release-candidate-2026-11-17-major.json) freezes installer runtime +source `48bfb674ab664f91b07b79fda6df221f75a23362`, all 14 catalog entries and their immutable +image references. All ten Ky primary images passed exact-tag/workflow GitHub attestation +verification. The previous catalog is installer `v0.6.0.8`, source +`724fc276c77a56c392ba0e402a2a90ddcd408257`. No runtime source or image pin was changed. + +## Current execution and evidence + +The seven-app configuration/pairing and Calendar content campaign +`kyq-acceptance-app-content-v3-20261117` **PASSED** at 20:35:59 UTC: +integration 1224.364 s, full controller 1400.410 s. Fresh gate/affected/full CI +passed 8.095 s / 4.491 s / 163.326 s. Tested source was `suite-calendar-etag`, +base `77d9f7aabee3bed6d7ccde361ef11ced4e4bde09`, frozen test patch +`314128ae7c2f3fa570954387110fc1fadc1d6de394f34bd2918faaceb6996510`. + +All seven actual previous-image upgrade commands, deployment/health and required verified +backups passed. Selected Docker credentials, Identity JWKS and Recovery pairing/key binding +were retained; candidate Pulse deposited using its prior pairing. The available Kubernetes +Secret payload count was **zero**, so this is not evidence that volume-held keys of every +product were compared. Candidate reciprocal native API sign-ins passed. The ordinary +Calendar event retained exact text/times/IDs/ETag/access and accepted a valid candidate +If-Match edit. The run also retained KyDNS's expected fail-closed/unsafe-gateway refusals; +successful edge sign-in remains unproven on this Docker topology. + +The consolidated review tree `suite-lifecycle-acceptance`, building on the tested Drive +extension, passed fresh affected compilation/relay6.689 s and full CI163.476 s (controller +170.240 s). Its341 non-documentation files, except the inherited exact Drive test, match +the successful app integration tree byte for byte; runtime, pins and dependencies match. +This reuses the named integration evidence and is not a fresh combined integration run. +No wider product-data/offboarding/restore qualification is inferred. + +The separate Messages history V1 passed fresh CI but failed before old-image chat or upgrade: +the candidate template bound a guest page the old initializer cannot create. Isolated V2 +uses the complete old manifest/Compose entry and restores the candidate entry only for +upgrade. V2 is running fresh checks; no Messages upgrade pass is claimed. + +Content-v2 remains exit1 / 1082.514 s (controller1256.364 s): exact Calendar readback +passed but the fixture's bare HTTP If-Match was rejected400. V3 only quoted that header +relative to V2. Every failed run/source remains preserved. + +The original content-v1 run failed 801.169 s before any upgrade: later apply replaced +Calendar's test-only CA mount/environment, so the new old-image seed sign-in returned +502 and its native log reported x509 unknown authority. It had already passed all seven +monitoring targets and old Recovery/Pulse pairing/deposit. No Calendar content or final +upgrade-retention outcome was obtained. + +The isolated correction makes the existing CA helper repeatable through keyed strategic +merge, skips a restart when the pod template is unchanged, and restores Calendar trust +before seeding. Calling it twice against the actual API server exercises duplicate-write +refusal. Upgrade deployment reuses the same fixture patch. Hostname/certificate validation +remains enabled; product TLS behavior and pins are unchanged. + +V1 failed before cluster creation on DNS. V2 failed on fixture target count/Post DNS. +V3 passed all seven monitoring targets and old-image pairing/deposit, then the real +Identity 0.6.0.1 → 0.6.1 deployment/health and verified pre-upgrade claim copy. It stopped +at Recovery's correct `ack_required` gate (integration exit 1 / 851.258 s; controller +1020.521 s). The test omitted the acknowledgement for a non-migrating upgrade. Final +all-app account/key/content retention assertions were not reached, so no completed +seven-app qualification is claimed. + +Private evidence root on Major: `/home/yoshi/.local/state/kyquickstart-acceptance/`. +Logs remain private; per-stage result files retain commands, timestamps, exit codes and +source hashes. Reruns have separate names and preserve every failure: + +| Directory | Role and final/current state | +| --- | --- | +| `20261117-major` | Original seven standard shards and docs passed; original optional HA/controller failure retained | +| `20261117-major-ha-rerun-1` | Corrected HA, Euro-Office and remaining controller passed; references original seven passes | +| `20261117-major-drive-upgrade` | Original queue superseded before execution | +| `20261117-major-drive-upgrade-v2` | Prerequisite refused the failed original baseline (exit 75); no Go checks ran | +| `20261117-major-drive-upgrade-v3` | Affected checks, full CI and real previous-Drive recovery passed | +| `20261117-major-app-upgrades-v1` | Affected/full CI passed; integration failed before cluster creation on DNS | +| `20261117-major-app-upgrades-v2` | Integration failed on fixture target count/Post DNS before upgrades; original results retained | +| `20261117-major-app-upgrades-v3` | Fresh full CI passed; integration stopped at the correct Recovery no-backup acknowledgement gate after Identity upgrade | +| `20261117-major-app-content-v1` | Full CI passed162.266 s; integration failed801.169 s at Calendar seed sign-in after fixture CA was replaced | +| `20261117-major-app-content-v2` | Gate/affected7.092 s /4.472 s and fresh CI162.151 s passed; integration1082.514 s failed at malformed fixture If-Match after seven upgrades/retention and exact Calendar readback | +| `20261117-major-app-content-v3` | PASS: gate8.095 s /affected4.491 s /full CI163.326 s; real integration1224.364 s /controller1400.410 s | + +All heavy work is serial under `/tmp/ky-heavy-test.lock`: Go cgroups have 2 GiB memory, +no swap, two CPUs and persistent caches. Docker/kind fixtures have their own bounds. +Disposable apps explicitly blank both production relay URLs. Existing services, +credentials, containers and the separate mail-capacity workstream stay preserved. + +## Executed checks + +| Check | Result | Fresh execution | +| --- | --- | --- | +| Ten Ky image release/source attestations | PASS | Major, selected immutable image digests | +| Baseline full `make ci` | PASS | 487.725 s, unmodified candidate source | +| Full `make ci` with safe HA fixtures | PASS | 148.221 s | +| `TestRelaysOffCatalog` | PASS | 53.519 s including compile | +| NPM edge integration shard | PASS | 480.770 s | +| NPM joins integration shard | PASS | 963.021 s | +| Messages / Kubernetes apply shard | PASS | 620.712 s; Messages 442.98 s, Kubernetes apply 176.25 s | +| Drive restore / KyYard shard | PASS | 550.107 s; Drive restore 297.30 s | +| nginx edge / node and pod failover shard | PASS | 909.374 s; core edge test 632.05 s | +| nginx joins shard | PASS | 954.632 s | +| Docker catalog startup/restart (within final shard) | PASS | Six products, 82.02 s | +| Docker KyYard runner (within final shard) | PASS | 6.01 s; test-built runner | +| Final standard e2e shard | PASS | 318.592 s; all seven standard shards passed | +| mdBook build / generated local links | PASS | Pinned 0.5.4; 0.026 s / 0.053 s | +| Pinned KyIdentity database-cluster HA | PASS (corrected fixture) | 526.26 s; original fixture failure retained | +| Pinned KyIdentity replicas | PASS (corrected fixture) | 272.23 s; operator-provided and installer-managed database cases | +| Combined corrected pinned-image HA stage | PASS | 804.611 s including compilation | +| Euro-Office integration | PASS | 385.807 s; existing health/callback/egress/lifecycle assertions | +| Corrected acceptance controller | PASS | 1368.495 s; references seven original standard passes | +| Previous-image Drive upgrade/recovery | PASS | 384.324 s; fresh full CI 163.607 s; combined controller 554.558 s | +| Initial seven-app extension (app-upgrades-v3) | FAILED; superseded by passing content-v3 | V3 full CI 162.783 s passed; integration 851.258 s stopped at Recovery acknowledgement; final retention checks not reached | +| Seven-app configuration + Calendar content | PASS (content-v3) | Fresh gate8.095 s /affected4.491 s /full CI163.326 s; integration1224.364 s/controller1400.410 s; prior failed runs retained | + + +The corrected controller completes the named fixture campaign, not the whole-suite +qualification. A generic fixture pass or a container restart cannot close a product's +content migration, offboarding or restored-service gate. + +## Per-product qualification ledger + +PASS applies only to the named assertions. Corrected content-v3 completed all seven native +configuration upgrades, specified retention and Calendar content checks. This is not +whole-suite release qualification or every product's ordinary content/offboarding/restore. + +| Product | Executed real-image evidence | Direct evidence still missing | +| --- | --- | --- | +| KyIdentity | Native owner creation, OIDC/setup amendments; historical 0.4.3 to candidate upgrade with verified pre-upgrade claim copy; both pinned replica/database HA cases including native sessions, database TLS, primary/node loss and stop/start/reinstall | Published previous-catalog upgrade passed with owner access and unchanged JWKS. HA does not prove every recovery topology; powered-off kind node return was not tested. | +| KyDrive | Native setup and SCIM; old 0.6.0.1 to candidate 0.6.1 failed-upgrade recovery from the upgrade's own verified snapshot; exact 300 KiB file, owner access, credential hashes/modes and removal/deletion replay; admin API 200, admin file 403 with separation refusal, everyday admin API 403 and everyday file download | Other workspace/content/migration/failure models; actual browser editing/save and synchronized or mounted desktop saves. | +| KyRecovery | Native administrative sign-in, everyday identity gate, throwaway public-key ceremony and capsule listing/deposit | Previous-catalog key/pairing retention passed. Restored service with existing capsules/ceremony, administrative revocation and session invalidation remain untested here. Deposit/listing is not product restore. | +| kyPulse | Native administrative sign-in, everyday identity gate, monitoring targets healthy and real paired deposit | Previous-catalog config/pairing binding and candidate deposit with prior credentials passed. Restored monitoring state and offboarding/session revocation remain untested. | +| KyNotes | Admin backup-status API 200 / ordinary containers 403 with admin-account refusal; everyday backup-status 403 / containers 200 | Native config/account upgrade passed. Real notes migration, offboarding/session revocation and restored notes remain untested. | +| KyCalendar | Admin users API 200 / calendars 403; everyday users API 403 / calendars 200 | Old-image event content/times/IDs/ETag/access and candidate edit passed. Offboarding/restored meetings and recurrence/meeting delivery untested. | +| KyPost | Native Docker setup, pre-bind-volume layout copy, admin users API 200 / everyday 403, session-ending restart and cold backup | Native config/account upgrade passed in IMAP-proxy mode. Real mail migration/restored mail, offboarding and dedicated-admin ordinary-mail denial remain untested. This fixture disables native mail listeners; it does not qualify the workforce mail stack. | +| KyDNS | Native setup, authoritative UDP/TCP DNS, forged-header rejection, unsafe-gateway trust refusal and fail-closed edge behavior | Successful edge/admin sign-in is UNPROVEN on Major because Docker rewrites source addresses. Previous zones/config upgrade, offboarding and restore remain untested. Never broaden trust to force a pass. | +| KyMessages | Real encrypted chat, offboarding and history restore; original device decrypts history and removals replay before Synapse starts. Dedicated admin chat sign-in receives KyIdentity access_denied and MAS has no admin account. | Previous-catalog upgrade remains untested. The admin negative check is native OAuth/MAS admission; independent downstream authorization with an otherwise-valid admin chat token is not established. | +| KyYard | Native admin sign-in/everyday identity gate, runner ownership and session/credential persistence; Docker startup/runner checks | Previous-catalog upgrade, offboarding and restored management service remain untested. Source-built runner fixtures do not qualify a published runner artifact. | +| Nginx Proxy Manager | Both NPM shards: routing, ownership, administrative bootstrap, token refresh and reruns | No general upstream data migration/recovery claim. | +| nginx edge | Both nginx shards plus node/pod failover, route reload/ownership and certificate assertions | Cluster topology/storage/network conditions beyond these fixtures. | +| CloudNativePG | Pinned operator/database HA fixture: synchronous replication, TLS, primary/node loss, hibernation/reinstall and object ownership | Node return and production storage/topology behavior beyond kind. | +| Euro-Office | Health, signed callback 200/401, restricted egress and lifecycle integration passed | Production source/build provenance, real browser editing/save and desktop-save qualification remain open. | + +Recovery/Pulse everyday denial in the shared sign-on helper occurs at KyIdentity's assigned +user gate. Role reporting after sign-in alone is not an independent management/content +API isolation check. Notes and Calendar do perform reciprocal API checks. The ordinary +Drive sign-on helper reports roles; the separate passed Drive recovery extension supplies +its real reciprocal admin/file API assertions. Post's sign-on helper checks `/api/users`, +so no ordinary-mail denial is inferred. + +Source anchors: + +- [NPM installation assertions](../test/e2e/npm_kube_test.go) and + [join orchestration and KyDNS fail-closed branch](../test/e2e/npm_joins_kube_test.go). +- [Drive role-reporting sign-in](../test/e2e/drive_kube_test.go), + [Calendar reciprocal authorization](../test/e2e/calendar_catalog_kube_test.go), + [Notes reciprocal authorization](../test/e2e/notes_catalog_kube_test.go) and + [Post admin endpoint authorization](../test/e2e/post_catalog_kube_test.go). +- [Historical Identity upgrade and Drive restore/removal replay](../test/e2e/restore_kube_test.go). +- [Docker startup/restart fixtures](../test/e2e/docker_catalog_test.go). +- [Messages encryption, admin admission and history-restore assertions](../test/e2e/message_chat_test.go). + +These relative links refer to the frozen baseline checkout. New opt-in upgrade assertions +remain in their named isolated worktrees pending consolidation into a mergeable PR. + +## Real previous-Drive recovery + +`KYQ_TEST_DRIVE_UPGRADE_MANIFEST` selects the exact attested old Drive manifest. The drill +seeds real data/accounts, invokes candidate upgrade, requires the native candidate health +endpoint to answer while an injected Docker health probe makes deployment fail, and then +restores the upgrade's own verified restic snapshot. Failed data moves aside. Exact file +bytes, owner access, secrets and subsequent SCIM removal/deletion replay must pass. +This qualifies the specific induced health failure; it is not every failed schema migration. + +The all-candidate baseline restore remains separate: historical Identity 0.4.3 upgrade, +Drive disaster/replacement restores, append-only refusal and removed/deleted-user replay. +No restored-leaver session was observed in that sample; this does not prove a zero-duration +access window under all conditions. + +The exact tested Drive tree is now [PR #206](https://github.com/Busnes-app/KyQuickStart/pull/206), +head `704cf0ab33cbb38cd5b1fbdcd745050d92172482`, built on #205 and now human-merged as `597ec94`. A separate committed/pushed +`drive-upgrade-acceptance` worktree preserves the completed execution checkout. All tracked +file bytes match the passed Drive worktree, so its local full-CI/real-image evidence applies; +GitHub current-head checks and authenticated security are pending. These gates use their +own event-driven watcher. The PR does not claim whole-suite qualification. + +## Seven-app native configuration upgrade extension + +`KYQ_TEST_RELEASE_UPGRADE_MANIFESTS` selects independently attested historical manifests +for Identity, Recovery, Pulse, Drive, Notes, Calendar and Post. The seven old primary-image +attestations bind exact repository/workflow/tag identities. Current transport templates, +fixture CA trust and blank relay settings remain explicit; this is not an old-installer +binary upgrade or a claim about every historical transport layout. + +The case seeds owner/OIDC/SCIM configuration, Recovery ceremony and Pulse pairing/deposit +on old images, then CLI-upgrades all seven to candidates. Passed assertions: native +owner/everyday access again, Identity JWKS unchanged, Kubernetes Secret payload hashes +that exist (the count can be zero), selected Docker key hashes, retained Recovery +pairing/service/key ID, and candidate Pulse deposit through the old pairing/token. +The separately described Calendar case seeds one real ordinary event. Notes/mail content and DNS/Messages/Yard upgrades are outside this case. +Full CI passed 169.321 s on V1/V2 source. V3 changed fixture monitoring, DNS and CA reuse, +so it ran fresh affected/full checks before integration (6.369 s / 162.783 s, both passed). The helper retains the original +four-target expectation for the ordinary edge suite and receives all seven explicitly for +the upgrade case. It still requires every target healthy; no health assertion is relaxed. +Content-v3 later completed with fresh full CI163.326 s and integration1224.364 s; retain its frozen source/hash as evidence. + +## Messages coverage audit and next upgrade case + +The passed candidate Messages baseline explicitly refused the dedicated admin at the +KyIdentity → MAS chat gate and checked that MAS had no such account. This evidence was +present in the executed test and is now recorded above; it does not create a direct +Matrix authorization result for an admin token the fixture never received. + +The optional previous-primary-image history V1 failed before old chat/upgrade on a mismatched +fixture template; its old image attestation passed. Corrected V2 and limits appear below. +The candidate crosses console migrations24–27 at `data_since: 0.6.0.2` and must take +a real verified pre-upgrade backup; no acknowledgement can substitute for it. + +## Calendar content case in corrected acknowledgement rerun + +The corrected optional extension runs in `suite-calendar-etag`, branch +`test/suite-calendar-etag`; earlier failed worktrees remain unchanged. +It creates a real everyday-owned calendar and event through the previous image's native +API. The passed candidate checks compare text (including Unicode/newlines), location, +times, calendar/event IDs, ETag and edit access through a newly signed-in session, then +use the old ETag for an optimistic-concurrency edit and verify unrelated fields remain. +No attendees or outgoing mail are involved. + +The original prepared source and patch remain in `20261117-major-calendar-content-prepared`. +After diagnosing V3's gate refusal, the isolated source now supplies the normal CLI +acknowledgement only where `Upgrade.Migrates(previousVersion)` is false and asserts that +it is recorded. Where migration is required, no acknowledgement flag is supplied and +`.pre-upgrade-backup` must be `ok`. The existing `TestUpgradeGate` regression runs +fresh before affected compilation, full CI and integration. This uses the intended +operator path in disposable fixtures; runtime gates remain unchanged. + +The new frozen run is `20261117-major-app-content-v3` in `suite-calendar-etag`; +earlier failed evidence/source remain intact. V2 did retain the seeded event exactly, then +failed because its edit sent an unquoted HTTP If-Match. V3 quotes the original ETag, as the +product API tests require, and the complete integration **passed1224.364 s**. +Calendar fixture trust is restored after later apply calls with the repeatable CA helper. +It qualifies this seeded event, not Calendar restore/offboarding/recurrence/meeting +transport or other products' content. Notes content needs its actual encryption/key flow; +arbitrary opaque bytes are not substituted as a user-note workflow. +The product already has native encryption-client and browser-format migration tests, but +these do not close the installed-image gate: the MCP test seeds users directly in its +router/database fixture, and the browser test injects an older ciphertext format rather +than upgrading the previous published server. The meaningful next Notes case needs actual +ordinary-user key enrollment and encrypted notebook/page creation on the old pinned image, +then candidate decryption/edit with retained client keys. Source review alone is not a pass. + +Source-only feasibility audit `20261117-major-notes-content-audit-2029Z` checked the +actual old `v0.6.0.2` source `2fb29f3871a243728d0794c3b93688fe2de45797` against +the frozen candidate `v0.6.1` attested source `ba93e8281b3f64a9b0c5a4b786971da56180dc65`. +Their identity, reauthentication, recovery, notebook UI, crypto and migration-fixture +files match byte for byte. A real SSO case must create its device-only key through the +old bundled client, complete action-bound KyIdentity confirmation and save a recovery +copy: notebook creation refuses an unrecoverable key. The local-password browser helper +cannot replace this installer-created SSO path. Reuse actual UI content creation and +retain the isolated browser key store across the upgrade; do not inject ciphertext or +skip reauthentication/recovery. No Notes browser/runtime case was implemented or run. + + +## Messages previous-image history follow-up + +The separate `suite-message-catalog-upgrade` worktree (branch +`test/suite-message-catalog-upgrade`, base `78b993ea8628bae6d5ab80c45a62e3ef0bdfb0f0`) +contains the optional `KYQ_TEST_MESSAGE_UPGRADE_MANIFEST` case and its sibling historical +Compose template. V1 passed affected6.406 s/full CI162.365 s, then failed integration157.190 s +(controller326.060 s) before old chat/upgrade because the old initializer cannot create the +candidate guest-page bind. **V2 fresh checks are active; no upgrade pass is claimed.** +The old primary `0.6.0.1` image passed exact repository/workflow/tag attestation at +20:16:26 UTC. Its manifest is byte-identical to installer `v0.6.0.8`; all auxiliary +Matrix image pins match the candidate. + +The corrected case installs the complete historical manifest/Compose entry with explicit +fixture host/CA plumbing, uses the existing real Megolm room/device flow, then +requires the CLI upgrade's own verified pre-upgrade snapshot across `data_since: 0.6.0.2`. +It intends to compare selected keys, renew both original device sessions, fetch and decrypt +the old raw encrypted event with original client keys, exchange a new encrypted event, +then continue existing candidate offboarding and history restore. The pre-upgrade and +later restore destinations have separate server-work and credential directories; no live +server's certificate/password files are overwritten. This does not test an upstream +Matrix-version migration or restore of the old-image pre-upgrade snapshot itself. + +Prepared evidence: `20261117-major-message-upgrade-prepared`. Failed `20261117-major-message-upgrade-v1` and its source remain intact. New execution +evidence `20261117-major-message-upgrade-v2` records fresh stages and patch/manifest/Compose +hash guards. The corrected content-v3 prerequisite passed; no old-image upgrade result is claimed. + +## HA correction and release gates + +The original HA fixture used `kind load docker-image` directly on a digest reference. +Read-only diagnostics captured a broken containerd import record and key-generator +`CreateContainerError`. Both optional fixtures now use existing `kindLoad`, which loads +a local tag while workloads retain immutable digests, plus the relay-disabled catalog. +The exact four-line test correction is [PR #205](https://github.com/Busnes-app/KyQuickStart/pull/205), +head `77d9f7aabee3bed6d7ccde361ef11ced4e4bde09`. Local full CI, relay and pinned HA passed. +An event-driven Tick verified all 18 reported GitHub checks successful and authenticated +security clearance on that exact head. The three required checks passed. Its watcher was +stopped after both gates cleared; the PR was later human-merged as `57b2676`. This does not +complete the wider acceptance campaign or authorize publication. + +Euro-Office's frozen digest is +`beca380debb9b4eadb7e4c662d112a325c5df0f2179453a4affd8e6ba5d00562`. +Exact GitHub attestation verification returned HTTP 404 on November 17. Upstream successful +run 33166218952, tag `v9.3.4-hotfix.1`, `.github/workflows/build.yml`, source +`4ba0c0f202ae484eb202f24c59ddf5f4a7004161` matches observed build correspondence. +Unsigned BuildKit metadata is neither a signed attestation nor an independent rebuild. +This is a separate open production gate, not a failed baseline CI assertion. + +Remaining delivery work: add feasible missing real content/ +lifecycle cases; consolidate tests/report/matrix into mergeable PRs with required full and +current-head security checks; verify owned-resource cleanup. Never remove dirty/unpushed +worktrees or alter pre-existing services. Native-client distribution is separate: the Mac +development archive/signature passed, but Developer ID export remains blocked on a valid +direct-distribution profile. This server report certifies no Mac or Android artifact. + +DOX pass: root `AGENTS.md` was updated to document the opt-in seven-app/Calendar upgrade-test +contract (`KYQ_TEST_RELEASE_UPGRADE_MANIFESTS`). +`docs/AGENTS.md` and the child indexes remain unchanged because documentation ownership +and workflow did not change. This report and the candidate matrix record observed evidence +and qualification limits; prior versions are preserved in the timestamped private +report-audit directories. diff --git a/docs/release-candidate-2026-11-17-major.json b/docs/release-candidate-2026-11-17-major.json new file mode 100644 index 0000000..c883abe --- /dev/null +++ b/docs/release-candidate-2026-11-17-major.json @@ -0,0 +1,852 @@ +{ + "frozen_at": "2026-11-17T16:10:16.695424+00:00", + "host": "major", + "installer_source": "48bfb674ab664f91b07b79fda6df221f75a23362", + "installer_version": "0.6.1", + "status": "candidate; acceptance pending", + "scope": "All installer catalog applications and both supported proxy paths; native client distribution is recorded separately from server lifecycle acceptance.", + "apps": [ + { + "app": "cloudnative-pg", + "version": "1.30.1", + "category": "operator", + "manifest_sha256": "b97b7a12e18b4fbc640781911233251379f6911464dbcc252679d2e6bfcd0591", + "images": { + "operator": "ghcr.io/cloudnative-pg/cloudnative-pg:1.30.1@sha256:923c267ec29636db3bee20f993d0ec4973fa22998e1adad37da79e4d32b5bc07" + }, + "ky_provenance": [] + }, + { + "app": "euro-office", + "version": "9.3.4", + "category": "ky", + "manifest_sha256": "9d8721638e99f8a48835e313ed6be2c18075185a74eac356bca74bee3f1f39bf", + "images": { + "documentserver": "ghcr.io/euro-office/documentserver@sha256:beca380debb9b4eadb7e4c662d112a325c5df0f2179453a4affd8e6ba5d00562" + }, + "ky_provenance": [], + "production_provenance_gate": { + "status": "UNVERIFIED; production release gate remains open", + "checked_at": "2026-11-17", + "image_attestation": "GitHub attestations API returned HTTP 404 for pinned digest", + "verification_result": "euro-office-provenance-20261117T1713Z.result.json", + "observed_build": { + "repository": "Euro-Office/DocumentServer", + "run": 33166218952, + "tag": "v9.3.4-hotfix.1", + "source": "4ba0c0f202ae484eb202f24c59ddf5f4a7004161", + "workflow": ".github/workflows/build.yml", + "conclusion": "success" + }, + "independent_rebuild": "not performed", + "limit": "Published build correspondence is not signed image provenance; integration health does not close this gate" + } + }, + { + "app": "kycalendar", + "version": "0.6.1.1", + "category": "ky", + "manifest_sha256": "4b1c249cb741583cd05d8baf2850648cb9ed9408f276010e21273d6d90e86edb", + "images": { + "kycalendar": "ghcr.io/busnes-app/kycalendar:0.6.1.1@sha256:56ff0240b8cb04ae93964dbd22935bdf582c29d2e74758325ca942c2d798b44f" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyCalendar", + "tag": "v0.6.1.1", + "verified": true, + "source_commits": [ + "814feb8cb9ce723916fa632e5f13e2b078215e8f" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kydns", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "169ec24ea9db1d54d7ace2205d212eafddd6995c03ac43883668cc7bc68c30af", + "images": { + "kydns": "ghcr.io/busnes-app/kydns-server:0.6.1@sha256:63e10baf5e644ab79d0de7e142cb7093c775623ebe34803b981286a825205424" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyDNS-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "087a81d121eb44fa578c229d091c7eeea14be631" + ], + "workflow": "release.yml" + } + ] + }, + { + "app": "kydrive", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "95b6968847f675bb4d7d58b69db78e5a1cb2f00554f90e1a18b68f924991ed9c", + "images": { + "kydrive": "ghcr.io/busnes-app/kydrive-server:0.6.1@sha256:375423d6f83c9d4194fcc3f1c01a799c9ec43f3d499c32870f8b6d1106e318f2" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/kydrive-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "cb492e0a0200d0ed9d478f0c700fdc872074d2f6" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kyidentity", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "fe1772270fbb6b03b3641674fb8db95fa3bb982dcdaf6149f2318ce77d42ee8a", + "images": { + "kyidentity": "ghcr.io/busnes-app/kyidentity-server:0.6.1@sha256:270a4b3223b7753b2e3bd2eb8895a3c73c3e9469b4f6333991ca2fa1944c3b65", + "postgres": "postgres:17.6-alpine@sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94", + "postgres_cluster": "ghcr.io/cloudnative-pg/postgresql:17.12-minimal-trixie@sha256:4ae89311e5031155a139a5c6d31a80f6deb135443711e61ff7df41cb549fdcaa" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyIdentity-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "ee3a59270ef8404aae27062b64f617e9ea47df34" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kymessage", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "755f282aba4ee223d119c2276623625b2806ea8ace459cc8fc0e9756d56d2ed2", + "images": { + "kymessage": "ghcr.io/busnes-app/kymessage-server:0.6.1@sha256:766f9c9d1d6d36a5ed33f05e810f69f075fb8f8f0054b8d7eb95a4946766991d", + "postgres": "postgres:17.6-alpine@sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94", + "synapse": "ghcr.io/element-hq/synapse:v1.162.0@sha256:6b84a7bbac36f080b2d2e51e0289cf1b08b349598ea44a558df38d558f2c2311", + "mas": "ghcr.io/element-hq/matrix-authentication-service:1.26.0@sha256:e089f1048a1d4a9a492ed17b9fe759100f1bd619407b001f5927928d88b780c4", + "element": "ghcr.io/element-hq/element-web:v1.12.30@sha256:3e7dbd4424de9e11c812bc740acf2725b2abe66ea0d0802023b56fd85d3fa09a", + "livekit": "livekit/livekit-server:v1.13.7@sha256:6fd3b7088874c4d119160dd688798dfec852bc014786d392caad15f6f63912a3" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyMessage-Server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "a981652f57b6abf2230b5199dcf0ad373bd91370" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kynotes", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "c55778be63636291e32df42017e816a5ddf983dfa2464ab62ebe056cf8d19154", + "images": { + "kynotes": "ghcr.io/busnes-app/kynotes-server:0.6.1@sha256:8997d6e37d29ee48a16f345a7aebcd83365a4f3e60b366b556c623cea4e3b100" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyNotes-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "ba93e8281b3f64a9b0c5a4b786971da56180dc65" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kypost", + "version": "0.6.1.1", + "category": "ky", + "manifest_sha256": "48e50d238a09fef04324e168f4a51e9e1eb081121499a17b41bc95c96f4ae447", + "images": { + "kypost": "ghcr.io/busnes-app/kypost-server:0.6.1.1@sha256:330788925808f214947b008083aae7b8fd7e36dcbb4370ecb971eae6f3ae3afe", + "rspamd": "rspamd/rspamd:4.2.2@sha256:33526f94cfbb5ab5485805ad9d6eddb6a52aca6529aad0ce99b67b01c2e756de" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyPost-Server", + "tag": "v0.6.1.1", + "verified": true, + "source_commits": [ + "7b067ded42ca0ede5f3efdfd649cd6ffc3be3cad" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kypulse", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "2de143395634dc50108c5cb13e26959189249b857dd028d53cef321800af6e66", + "images": { + "kypulse": "ghcr.io/busnes-app/kypulse-server:0.6.1@sha256:1dd907d2cc2ebfcead75ee8b48eaf03b82b995f60f0f5e2963444979e9b184ff" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyPulse-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "56438bbdd8ef7da94fa8ce4cc95ec746878ad851" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kyrecovery", + "version": "0.6.1", + "category": "ky", + "manifest_sha256": "d027c0b4708975858463a4801c24a424e5cd2add326281a02d7650faa281a920", + "images": { + "kyrecovery": "ghcr.io/busnes-app/kyrecovery-server:0.6.1@sha256:0565dec75c7a7e967c63b76298201483cfa37815901e9d67018caa7685c1aa61" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyRecovery-server", + "tag": "v0.6.1", + "verified": true, + "source_commits": [ + "e80df0f6426fc5e9723e4f604cd0a348e88cd13a" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "kyyard", + "version": "0.6.1.1", + "category": "ky", + "manifest_sha256": "78485fdf82ec2db0626e324e81a1567182379c76e2fb48dad18895427c973d47", + "images": { + "kyyard": "ghcr.io/busnes-app/kyyard:0.6.1.1@sha256:33a53d97eea363bb863ee33775d4d8515c114d9cc50b5f27dd0248560b1c9d13" + }, + "ky_provenance": [ + { + "repository": "Busnes-app/KyYard-server", + "tag": "v0.6.1.1", + "verified": true, + "source_commits": [ + "ade9e2d5cf57bdb5f3d599b90d7655a6c3eb5074" + ], + "workflow": "release-image.yml" + } + ] + }, + { + "app": "nginx", + "version": "1.30.6", + "category": "edge", + "manifest_sha256": "aff8e492ad5281edd63321520c1f105d72d593cbc9ed6417ad6ae27e1ea0757c", + "images": { + "nginx": "nginxinc/nginx-unprivileged:1.30.6-alpine@sha256:f5116ed4606f3eb015dd4a8e28cb9b351476dc0ad4bc6e9f93b19cec130cdf03" + }, + "ky_provenance": [] + }, + { + "app": "npm", + "version": "2.16.0", + "category": "edge", + "manifest_sha256": "4868bca67fb7a14b0f69e42b31ee8bc1da7a0d11cbaec058da19f88a7096e8b3", + "images": { + "npm": "jc21/nginx-proxy-manager:2.16.0@sha256:4393e642e233e5efd5adeb7f10918d4aaea71c9ed875b94190273fc8e87f9594" + }, + "ky_provenance": [] + } + ], + "safety": { + "production_push_relays": "explicitly empty in disposable fixtures", + "heavy_work": "serial under /tmp/ky-heavy-test.lock", + "existing_services": "not adopted or modified" + }, + "acceptance_harness": { + "base_source": "48bfb674ab664f91b07b79fda6df221f75a23362", + "patch_sha256": "e6ea1011544b57af8597c8ff0982e33f6e2266d2af94529a1f6101cda63dca18", + "changes": "Two opt-in KyIdentity HA tests load the existing relay-disabled catalog. Product/installer runtime sources and image pins are unchanged." + }, + "upgrade_baseline": { + "installer_release": "v0.6.0.8", + "installer_source": "724fc276c77a56c392ba0e402a2a90ddcd408257", + "apps": [ + { + "app": "cloudnative-pg", + "version": "1.30.1", + "images": { + "operator": "ghcr.io/cloudnative-pg/cloudnative-pg:1.30.1@sha256:923c267ec29636db3bee20f993d0ec4973fa22998e1adad37da79e4d32b5bc07" + } + }, + { + "app": "euro-office", + "version": "9.3.4", + "images": { + "documentserver": "ghcr.io/euro-office/documentserver@sha256:beca380debb9b4eadb7e4c662d112a325c5df0f2179453a4affd8e6ba5d00562" + } + }, + { + "app": "kycalendar", + "version": "0.6.0.2", + "images": { + "kycalendar": "ghcr.io/busnes-app/kycalendar:0.6.0.2@sha256:e76bf9abb055b25e72a5e244e18564230b4ef1e0a27f0f578c5988a089699b3c" + } + }, + { + "app": "kydns", + "version": "0.6.0.2", + "images": { + "kydns": "ghcr.io/busnes-app/kydns-server:0.6.0.2@sha256:bf97dc2f398fc97332a02c0578520abc2f6c14ddd7eebcd7955a3d2cb213a52b" + } + }, + { + "app": "kydrive", + "version": "0.6.0.1", + "images": { + "kydrive": "ghcr.io/busnes-app/kydrive-server:0.6.0.1@sha256:5a6b6e6cec2c2dd5b4da4f9bc6e470944e7c6e235269b45ca9622957fbc37160" + } + }, + { + "app": "kyidentity", + "version": "0.6.0.1", + "images": { + "kyidentity": "ghcr.io/busnes-app/kyidentity-server:0.6.0.1@sha256:096da2158984cdb1c195841a9f7d1c9b26b50ecd06753e9f4382054250876cb6", + "postgres": "postgres:17.6-alpine@sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94", + "postgres_cluster": "ghcr.io/cloudnative-pg/postgresql:17.12-minimal-trixie@sha256:4ae89311e5031155a139a5c6d31a80f6deb135443711e61ff7df41cb549fdcaa" + } + }, + { + "app": "kymessage", + "version": "0.6.0.1", + "images": { + "kymessage": "ghcr.io/busnes-app/kymessage-server:0.6.0.1@sha256:426b2dd604677ecc230821c92924db2a4803fd330d579caac97728ad3e2a64a6", + "postgres": "postgres:17.6-alpine@sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94", + "synapse": "ghcr.io/element-hq/synapse:v1.162.0@sha256:6b84a7bbac36f080b2d2e51e0289cf1b08b349598ea44a558df38d558f2c2311", + "mas": "ghcr.io/element-hq/matrix-authentication-service:1.26.0@sha256:e089f1048a1d4a9a492ed17b9fe759100f1bd619407b001f5927928d88b780c4", + "element": "ghcr.io/element-hq/element-web:v1.12.30@sha256:3e7dbd4424de9e11c812bc740acf2725b2abe66ea0d0802023b56fd85d3fa09a", + "livekit": "livekit/livekit-server:v1.13.7@sha256:6fd3b7088874c4d119160dd688798dfec852bc014786d392caad15f6f63912a3" + } + }, + { + "app": "kynotes", + "version": "0.6.0.2", + "images": { + "kynotes": "ghcr.io/busnes-app/kynotes-server:0.6.0.2@sha256:135ccd7df01e3218422b0baed2ec6de79906b43306f57df173f0039986c8f07f" + } + }, + { + "app": "kypost", + "version": "0.6.0.2", + "images": { + "kypost": "ghcr.io/busnes-app/kypost-server:0.6.0.2@sha256:cd7154c167a81a46825d108a3b9b5486bbabdc6c6c1e6013e80a4875428bb108", + "rspamd": "rspamd/rspamd:4.2.2@sha256:33526f94cfbb5ab5485805ad9d6eddb6a52aca6529aad0ce99b67b01c2e756de" + } + }, + { + "app": "kypulse", + "version": "0.6.0.2", + "images": { + "kypulse": "ghcr.io/busnes-app/kypulse-server:0.6.0.2@sha256:808ee7b793f5a3ce648a6d71172212de13c7b6c238fa39c7b2482f8e3f03abfb" + } + }, + { + "app": "kyrecovery", + "version": "0.6.0.2", + "images": { + "kyrecovery": "ghcr.io/busnes-app/kyrecovery-server:0.6.0.2@sha256:ee489f04dc11000e0be3d6e2b71b9faae127988a548a8f84c1445f5ed4252042" + } + }, + { + "app": "kyyard", + "version": "0.6.0.3", + "images": { + "kyyard": "ghcr.io/busnes-app/kyyard:0.6.0.3@sha256:c8e64559a7eb83edb50b84e762b31cc894d2ce5237afc3e8efcbcdf5533d221f" + } + }, + { + "app": "nginx", + "version": "1.30.6", + "images": { + "nginx": "nginxinc/nginx-unprivileged:1.30.6-alpine@sha256:f5116ed4606f3eb015dd4a8e28cb9b351476dc0ad4bc6e9f93b19cec130cdf03" + } + }, + { + "app": "npm", + "version": "2.16.0", + "images": { + "npm": "jc21/nginx-proxy-manager:2.16.0@sha256:4393e642e233e5efd5adeb7f10918d4aaea71c9ed875b94190273fc8e87f9594" + } + } + ], + "status": "frozen upgrade input; per-product real-data upgrade execution pending" + }, + "ha_fixture_correction": { + "worktree": "suite-ha-image-loading", + "branch": "fix/suite-ha-image-loading", + "patch_sha256": "59af532ad421fc7276a7bea8fe2f116a1506966c68ff0fa8833877c43ee82aaa", + "status": "PASS: local CI/relay/pinned HA/editor and18 exact-head GitHub checks/authenticated security cleared; human-merged as57b2676cc7fa10c60693efd541dd914ebd7541d0", + "original_failed_evidence": "20261117-major/identity-ha.result.json", + "corrected_evidence": "20261117-major-ha-rerun-1", + "change": "Reuse existing kindLoad in two optional HA fixtures; retain relay-disabled catalog; runtime and pins unchanged", + "pull_request": "https://github.com/Busnes-app/KyQuickStart/pull/205", + "pull_request_head": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "ha_duration_seconds": 804.611, + "github_gate_evidence": "20261117-major-pr205-gates-191307Z/gates.result.json", + "merge_commit": "57b2676cc7fa10c60693efd541dd914ebd7541d0" + }, + "drive_lifecycle_extension": { + "revision": 3, + "evidence": "20261117-major-drive-upgrade-v3", + "patch_sha256": "08c5237530ad58f785ced1cf7d725866ed575f1d8e8d0b72a16a740de0fd9683", + "status": "PASS: full CI 163.607 s; real previous-image upgrade/recovery 384.324 s; combined 554.558 s", + "previous_manifest_sha256": "61d81d4ce3ea7580db410f4b4393f3e0b11e90c50be3e6552da8f55f6b6f8808", + "prerequisite": "successful corrected fixture campaign; original failure retained", + "pull_request": "https://github.com/Busnes-app/KyQuickStart/pull/206", + "pull_request_head": "704cf0ab33cbb38cd5b1fbdcd745050d92172482", + "github_gates": "Human-merged as597ec940141b3d7a14000a0c2d995422cba1efc5; CI/security were not re-polled during this remote continuation", + "tree_equivalence_evidence": "20261117-major-drive-pr-192500Z/tree-equivalence.result.json", + "merge_commit": "597ec940141b3d7a14000a0c2d995422cba1efc5" + }, + "native_configuration_upgrade_extension": { + "source": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "patch_sha256": "314128ae7c2f3fa570954387110fc1fadc1d6de394f34bd2918faaceb6996510", + "evidence": "20261117-major-app-content-v3", + "status": "PASS: fresh fullCI163.326s, real integration1224.364s, controller1400.410s; only named assertions qualified", + "scope": "seven real previous-image to candidate native-config/credential/pairing upgrades; not full per-product ordinary content migration/offboarding/restore", + "verified_previous_images": [ + { + "app": "kyidentity", + "image": "ghcr.io/busnes-app/kyidentity-server:0.6.0.1@sha256:096da2158984cdb1c195841a9f7d1c9b26b50ecd06753e9f4382054250876cb6", + "repository": "Busnes-app/KyIdentity-server", + "tag": "v0.6.0.1", + "identity": "https://github.com/Busnes-app/KyIdentity-server/.github/workflows/release-image.yml@refs/tags/v0.6.0.1", + "exit_code": 0, + "manifest_sha256": "20bf173c10b901c21e21b8fea15b68e04f9f267722b3595dc33217ae544b39df", + "checked_at": "2026-11-17T18:36:24.911545+00:00" + }, + { + "app": "kyrecovery", + "image": "ghcr.io/busnes-app/kyrecovery-server:0.6.0.2@sha256:ee489f04dc11000e0be3d6e2b71b9faae127988a548a8f84c1445f5ed4252042", + "repository": "Busnes-app/KyRecovery-server", + "tag": "v0.6.0.2", + "identity": "https://github.com/Busnes-app/KyRecovery-server/.github/workflows/release-image.yml@refs/tags/v0.6.0.2", + "exit_code": 0, + "manifest_sha256": "a83a739c01cbf95198cb84506c7f82013ce65d8f74da6070d9ee093a9fd52127", + "checked_at": "2026-11-17T18:36:29.124656+00:00" + }, + { + "app": "kypulse", + "image": "ghcr.io/busnes-app/kypulse-server:0.6.0.2@sha256:808ee7b793f5a3ce648a6d71172212de13c7b6c238fa39c7b2482f8e3f03abfb", + "repository": "Busnes-app/KyPulse-server", + "tag": "v0.6.0.2", + "identity": "https://github.com/Busnes-app/KyPulse-server/.github/workflows/release-image.yml@refs/tags/v0.6.0.2", + "exit_code": 0, + "manifest_sha256": "523798ba318807bda838c035f1ae180783ea5fe126726ef9289e1a820648a0af", + "checked_at": "2026-11-17T18:36:32.878216+00:00" + }, + { + "app": "kydrive", + "image": "ghcr.io/busnes-app/kydrive-server:0.6.0.1@sha256:5a6b6e6cec2c2dd5b4da4f9bc6e470944e7c6e235269b45ca9622957fbc37160", + "repository": "Busnes-app/kydrive-server", + "tag": "v0.6.0.1", + "identity": "https://github.com/Busnes-app/kydrive-server/.github/workflows/release-image.yml@refs/tags/v0.6.0.1", + "exit_code": 0, + "manifest_sha256": "61d81d4ce3ea7580db410f4b4393f3e0b11e90c50be3e6552da8f55f6b6f8808", + "checked_at": "2026-11-17T18:36:37.126566+00:00" + }, + { + "app": "kynotes", + "image": "ghcr.io/busnes-app/kynotes-server:0.6.0.2@sha256:135ccd7df01e3218422b0baed2ec6de79906b43306f57df173f0039986c8f07f", + "repository": "Busnes-app/KyNotes-server", + "tag": "v0.6.0.2", + "identity": "https://github.com/Busnes-app/KyNotes-server/.github/workflows/release-image.yml@refs/tags/v0.6.0.2", + "exit_code": 0, + "manifest_sha256": "0b7997a5ecee44e9390713d25d7ec3ab9eab0d3344833c4a424e1420f57d7e8b", + "checked_at": "2026-11-17T18:36:41.035045+00:00" + }, + { + "app": "kycalendar", + "image": "ghcr.io/busnes-app/kycalendar:0.6.0.2@sha256:e76bf9abb055b25e72a5e244e18564230b4ef1e0a27f0f578c5988a089699b3c", + "repository": "Busnes-app/KyCalendar", + "tag": "v0.6.0.2", + "identity": "https://github.com/Busnes-app/KyCalendar/.github/workflows/release-image.yml@refs/tags/v0.6.0.2", + "exit_code": 0, + "manifest_sha256": "36634fe928456c95279c8afc8e1b4c7e3f9233bb4beac830844fdfa8f3ea6153", + "checked_at": "2026-11-17T18:36:45.077005+00:00" + }, + { + "app": "kypost", + "image": "ghcr.io/busnes-app/kypost-server:0.6.0.2@sha256:cd7154c167a81a46825d108a3b9b5486bbabdc6c6c1e6013e80a4875428bb108", + "repository": "Busnes-app/KyPost-Server", + "tag": "v0.6.0.2", + "identity": "https://github.com/Busnes-app/KyPost-Server/.github/workflows/release-image.yml@refs/tags/v0.6.0.2", + "exit_code": 0, + "manifest_sha256": "ba25a33bd0698545b15af68f639b1eea2cbc704fc14be78be0f60ecdcb19dd32", + "checked_at": "2026-11-17T18:36:49.021180+00:00" + } + ], + "previous_failed_evidence": [ + "20261117-major-app-upgrades-v1", + "20261117-major-app-upgrades-v2", + "20261117-major-app-upgrades-v3", + "20261117-major-app-content-v1", + "20261117-major-app-content-v2" + ], + "worktree": "suite-calendar-etag", + "branch": "test/suite-calendar-etag", + "acknowledgement": "Only manifest-declared non-migrating versions get explicit --acknowledge-no-backup; migration cases still require verified pre-upgrade-backup ok", + "previous_content_v2_observed": { + "evidence": "20261117-major-app-content-v2", + "exit_code": 1, + "integration_seconds": 1082.514, + "full_seconds": 1256.364, + "passed_before_failure": [ + "seven upgrade commands/deploy/health and all required verified pre-upgrade backups", + "Docker credentials, Identity JWKS, Recovery pairing/key, candidate Pulse deposit with prior pairing", + "fresh candidate Drive/Notes/Calendar reciprocal native API sign-in", + "exact old Calendar event readback including ETag and editability" + ], + "failure": "fixture bare If-Match header rejected HTTP400; corrected isolated source quotes HTTP strong entity-tag", + "not_reached": [ + "successful candidate event edit", + "final Post fresh re-sign-in", + "completed integration outcome" + ], + "kubernetes_secret_payload_count": 0 + }, + "current_passed_checks": { + "upgrade-gate": { + "exit_code": 0, + "duration_seconds": 8.095, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/upgrade-gate.result.json" + }, + "affected-compile-relay": { + "exit_code": 0, + "duration_seconds": 4.491, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/affected-compile-relay.result.json" + }, + "ci": { + "exit_code": 0, + "duration_seconds": 163.326, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/ci.result.json" + } + }, + "results": { + "upgrade-gate": { + "exit_code": 0, + "duration_seconds": 8.095, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/upgrade-gate.result.json" + }, + "affected-compile-relay": { + "exit_code": 0, + "duration_seconds": 4.491, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/affected-compile-relay.result.json" + }, + "ci": { + "exit_code": 0, + "duration_seconds": 163.326, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/ci.result.json" + }, + "real-app-upgrades": { + "exit_code": 0, + "duration_seconds": 1224.364, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/real-app-upgrades.result.json" + }, + "full-qualification": { + "exit_code": 0, + "duration_seconds": 1400.41, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/full-qualification.result.json" + } + }, + "completed_at": "2026-11-17T20:35:59.950686+00:00", + "kubernetes_secret_payload_count": 0 + }, + "coverage_audit": { + "checked_at": "2026-11-17T20:38:22.473659+00:00", + "status": "in progress; not release qualified", + "products": { + "kyidentity": [ + "Published previous-image owner access/config upgrade and unchanged JWKS passed", + "Kind node return and other recovery topologies untested" + ], + "kydrive": [ + "Specific old-image file/health-failure/snapshot recovery and reciprocal admin/content checks passed", + "Other content/workspace/failure models and real editing/desktop saves remain" + ], + "kyrecovery": [ + "Previous-image pairing/key binding retention passed", + "Restored capsules/ceremony and admin revocation/session invalidation untested" + ], + "kypulse": [ + "Previous-image config/pairing binding and candidate prior-token deposit passed", + "Restored monitoring/offboarding untested" + ], + "kynotes": [ + "Reciprocal admin/content endpoints passed", + "Native config/account upgrade passed; real note content/offboarding/restore untested" + ], + "kycalendar": [ + "Reciprocal admin/content endpoints passed", + "Previous-image event text/times/IDs/ETag/access and candidate edit passed; offboarding/restore/recurrence/meeting transport untested" + ], + "kypost": [ + "Admin users endpoint reciprocal authorization passed", + "Native config/account upgrade passed in IMAP-proxy mode; real mail migration/restore/offboarding/admin-mail denial untested" + ], + "kydns": [ + "DNS and fail-closed/unsafe-trust refusal passed", + "Successful edge/admin sign-in unproven on Major; zone/config upgrade/restore/offboarding untested" + ], + "kymessage": [ + "Executed encrypted chat/offboarding/history restore and dedicated-admin KyIdentity/MAS admission denial (MAS no account)", + "Previous-catalog upgrade untested; direct downstream authorization with otherwise-valid admin token not established" + ], + "kyyard": [ + "Admin/everyday gate, runner ownership and credential/session persistence passed", + "Previous-catalog upgrade/offboarding/restored service untested; runner built from source" + ], + "npm": [ + "Both NPM shards passed", + "No general upstream migration/recovery claim" + ], + "nginx": [ + "Both nginx shards and node/pod failover passed", + "Production topology beyond fixtures unproven" + ], + "cloudnative-pg": [ + "Pinned operator/database failover and TLS/hibernation/reinstall passed", + "Node return and production storage/topology beyond kind unproven" + ], + "euro-office": [ + "Health/callback/egress/lifecycle passed", + "Production provenance and real editing/desktop saves open" + ] + }, + "report": "RELEASE-ACCEPTANCE-2026-11-17-MAJOR.md", + "notes_content_source_audit": { + "evidence": "20261117-major-report-notes-193642Z/notes-content-source-audit.json", + "status": "source review only; no product content qualification inferred" + }, + "message_source_execution_audit": { + "evidence": "20261117-major-message-coverage-200546Z/message-coverage-audit.json", + "scope": "Existing candidate execution and source audit only; previous-image case still not run" + } + }, + "calendar_content_upgrade_extension": { + "status": "PASS: fresh fullCI163.326s, real integration1224.364s, controller1400.410s; only named assertions qualified", + "worktree": "suite-calendar-etag", + "branch": "test/suite-calendar-etag", + "base": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "patch_sha256": "314128ae7c2f3fa570954387110fc1fadc1d6de394f34bd2918faaceb6996510", + "evidence": "20261117-major-app-content-v3", + "scope": "Native everyday calendar/event old-image creation, content/IDs/times/ETag retention and candidate If-Match edit; not restore/offboarding/recurrence/meeting transport", + "prepared_evidence": "20261117-major-calendar-content-prepared", + "previous_content_v2_observed": { + "evidence": "20261117-major-app-content-v2", + "exit_code": 1, + "integration_seconds": 1082.514, + "full_seconds": 1256.364, + "passed_before_failure": [ + "seven upgrade commands/deploy/health and all required verified pre-upgrade backups", + "Docker credentials, Identity JWKS, Recovery pairing/key, candidate Pulse deposit with prior pairing", + "fresh candidate Drive/Notes/Calendar reciprocal native API sign-in", + "exact old Calendar event readback including ETag and editability" + ], + "failure": "fixture bare If-Match header rejected HTTP400; corrected isolated source quotes HTTP strong entity-tag", + "not_reached": [ + "successful candidate event edit", + "final Post fresh re-sign-in", + "completed integration outcome" + ], + "kubernetes_secret_payload_count": 0 + }, + "current_passed_checks": { + "upgrade-gate": { + "exit_code": 0, + "duration_seconds": 8.095, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/upgrade-gate.result.json" + }, + "affected-compile-relay": { + "exit_code": 0, + "duration_seconds": 4.491, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/affected-compile-relay.result.json" + }, + "ci": { + "exit_code": 0, + "duration_seconds": 163.326, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/ci.result.json" + } + }, + "results": { + "upgrade-gate": { + "exit_code": 0, + "duration_seconds": 8.095, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/upgrade-gate.result.json" + }, + "affected-compile-relay": { + "exit_code": 0, + "duration_seconds": 4.491, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/affected-compile-relay.result.json" + }, + "ci": { + "exit_code": 0, + "duration_seconds": 163.326, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/ci.result.json" + }, + "real-app-upgrades": { + "exit_code": 0, + "duration_seconds": 1224.364, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/real-app-upgrades.result.json" + }, + "full-qualification": { + "exit_code": 0, + "duration_seconds": 1400.41, + "result_file": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/full-qualification.result.json" + } + }, + "completed_at": "2026-11-17T20:35:59.950686+00:00", + "kubernetes_secret_payload_count": 0 + }, + "message_history_upgrade_extension": { + "prepared_at": "2026-11-17T20:52:27.781523+00:00", + "source": "78b993ea8628bae6d5ab80c45a62e3ef0bdfb0f0", + "worktree": "/home/yoshi/git/KyQuickStart/.claude/worktrees/suite-message-catalog-upgrade", + "branch": "test/suite-message-catalog-upgrade", + "harness_patch_sha256": "c94cc8884e0b80bef52dd8a49bda514ac3b1ae2e944f7a7d1b277cd542b9caa5", + "scope": "Previous published Messages primary-image migration; old real encrypted event, verified own pre-upgrade backup, selected credential hashes, original refresh sessions/history and new encrypted event, then existing candidate offboarding/restore. Auxiliary Matrix images unchanged.", + "previous_attestation": { + "image": "ghcr.io/busnes-app/kymessage-server:0.6.0.1@sha256:426b2dd604677ecc230821c92924db2a4803fd330d579caac97728ad3e2a64a6", + "repository": "Busnes-app/KyMessage-Server", + "tag": "v0.6.0.1", + "identity": "https://github.com/Busnes-app/KyMessage-Server/.github/workflows/release-image.yml@refs/tags/v0.6.0.1", + "source_installer": "v0.6.0.8", + "source_commit": "724fc276c77a56c392ba0e402a2a90ddcd408257", + "manifest_sha256": "06df7f03202d2af0bd917de83810545c469839b62d8e2b5d2f4262ba7403b3b1", + "checked_at": "2026-11-17T20:16:26.703467+00:00", + "exit_code": 0, + "seconds": 4.23 + }, + "prerequisite": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-app-content-v3/full-qualification.result.json", + "status": "V1 fresh CI passed162.365s, integration failed157.190s pre-chat/upgrade on current template guest bind; V2 isolated full historical-entry correction fresh checks active; no upgrade qualification", + "dox": "Root optional verification contract updated; no child scope/index changes; no runtime or pin changes", + "started_by_continuation_at": "2026-11-17T20:42:48.461543+00:00", + "supersedes": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-message-upgrade-v1", + "historical_compose_sha256": "87545b604d1bcc64bbc434c4f0bbe129aa64179dd806b35fc7cf9ab797ebb060", + "correction": "Install full historical manifest+Compose entry with shared explicit fixture CA/host plumbing; old initializer cannot generate candidate guest-page file. Restore complete candidate manifest+prepatched Compose only for native CLI upgrade. No stub/generated data injection or runtime/pin change.", + "previous_failed_evidence": [ + "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-message-upgrade-v1" + ], + "previous_failed_results": { + "ci": { + "name": "ci", + "command": [ + "make", + "ci" + ], + "source": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "started_at": "2026-11-17T20:42:54.971120+00:00", + "finished_at": "2026-11-17T20:45:37.336126+00:00", + "duration_seconds": 162.365, + "exit_code": 0, + "host": "major" + }, + "real-message-upgrade": { + "name": "real-message-upgrade", + "command": [ + "env", + "CGO_ENABLED=0", + "KYQ_TEST_MESSAGE_UPGRADE_MANIFEST=/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-message-upgrade-v1/previous-manifests/kymessage/manifest.yaml", + "go", + "test", + "-json", + "-tags", + "e2e,goolm", + "-count=1", + "-timeout", + "60m", + "-run", + "^TestKubernetesKyMessage$", + "./test/e2e/" + ], + "source": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "started_at": "2026-11-17T20:45:37.359019+00:00", + "finished_at": "2026-11-17T20:48:14.548635+00:00", + "duration_seconds": 157.19, + "exit_code": 1, + "host": "major" + }, + "full-qualification": { + "name": "full-qualification", + "command": [ + "/usr/bin/python3", + "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-message-upgrade-v1/run-qualification.py" + ], + "source": "77d9f7aabee3bed6d7ccde361ef11ced4e4bde09", + "started_at": "2026-11-17T20:42:48.497511+00:00", + "finished_at": "2026-11-17T20:48:14.557640+00:00", + "duration_seconds": 326.06, + "exit_code": 1, + "host": "major" + } + } + }, + "notes_content_feasibility": { + "evidence": "20261117-major-notes-content-audit-2029Z/notes-content-feasibility.json", + "kind": "source only; not qualification", + "old_source": "2fb29f3871a243728d0794c3b93688fe2de45797", + "candidate_attested_source": "ba93e8281b3f64a9b0c5a4b786971da56180dc65", + "unchanged_client_files": 6, + "requires": "Ordinary SSO identity enrollment, action-bound KyIdentity reauthentication, saved recovery copy, old bundled-client notebook/page content, isolated key store retained over CLI upgrade, candidate decrypt/edit; no ciphertext injection", + "execution_started": false + }, + "post_fixture_scope": { + "evidence": "20261117-major-post-scope-audit-2034Z/post-fixture-scope.json", + "kind": "source-only scope audit", + "candidate_attested_source": "7b067ded42ca0ede5f3efdfd649cd6ffc3be3cad", + "native_mail_enabled_in_fixture": false, + "limit": "No mail block selects IMAP-proxy mode; native workforce mailbox/content/admin-denial remains unqualified. Empty mailbox listings or absent IMAP config are not isolation proof. Separate saltmarsh workforce capacity tests use different builds and still fail their target." + }, + "consolidated_review_tree": { + "source": "704cf0ab33cbb38cd5b1fbdcd745050d92172482", + "worktree": "suite-lifecycle-acceptance", + "branch": "test/suite-lifecycle-acceptance", + "test_input_patch_sha256": "734ca5c0b30b859ed6db892179b0f2ec813f39b345235cc3e002f20c3b2431fc", + "results": { + "affected-compile-relay": { + "exit_code": 0, + "duration_seconds": 6.689 + }, + "ci": { + "exit_code": 0, + "duration_seconds": 163.476 + }, + "full-qualification": { + "exit_code": 0, + "duration_seconds": 170.24 + } + }, + "integration_reuse": { + "app_integration_source": "/home/yoshi/git/KyQuickStart/.claude/worktrees/suite-calendar-etag", + "identical_non_docs_files_except_drive": 341, + "drive_test_exact_pr206_head": true, + "runtime_pins_and_dependencies_unchanged": true + }, + "fresh_combined_integration_run": false, + "publication_base": "597ec940141b3d7a14000a0c2d995422cba1efc5", + "ancestry_only_rebase": "Old PR206 head tree and merged master base tree identical; feature code tree unchanged by rebase; private ancestry-only-rebase.result.json retains proof" + } +} diff --git a/test/e2e/calendar_catalog_kube_test.go b/test/e2e/calendar_catalog_kube_test.go index 235530b..7be0d42 100644 --- a/test/e2e/calendar_catalog_kube_test.go +++ b/test/e2e/calendar_catalog_kube_test.go @@ -132,7 +132,8 @@ func checkCatalogCalendar(t *testing.T, ctx context.Context, cs kubernetes.Inter // edge, as a browser would, and proves KyCalendar's admin separation: the admin reaches the // console but no calendars, the everyday account its calendars but not the console. Test-only // plumbing: testClusterDNS ran and KyCalendar's pod trusts the edge's throwaway certificate. -func calendarSignOn(t *testing.T, ctx context.Context, c *kube.Client, certPEM []byte, nodeIP string) { +func calendarSignOn(t *testing.T, ctx context.Context, c *kube.Client, certPEM []byte, nodeIP string) *http.Client { + var everyday *http.Client t.Helper() pool := x509.NewCertPool() if !pool.AppendCertsFromPEM(certPEM) { @@ -218,5 +219,9 @@ func calendarSignOn(t *testing.T, ctx context.Context, c *kube.Client, certPEM [ t.Fatalf("%s: admin/users %d, calendars %d %s", account.username, admin.StatusCode, calendars.StatusCode, b) } t.Logf("%s signed in to KyCalendar through KyIdentity: admin/users %d, calendars %d", account.username, admin.StatusCode, calendars.StatusCode) + if !account.admin { + everyday = client + } } + return everyday } diff --git a/test/e2e/calendar_upgrade_kube_test.go b/test/e2e/calendar_upgrade_kube_test.go new file mode 100644 index 0000000..9706167 --- /dev/null +++ b/test/e2e/calendar_upgrade_kube_test.go @@ -0,0 +1,103 @@ +//go:build e2e + +package e2e + +import ( + "bytes" + "context" + "encoding/json" + "io" + "net/http" + "net/url" + "testing" +) + +// seedCalendarUpgrade uses the old product's ordinary API, then checks the same +// event through a freshly signed-in candidate session. No attendees or mail are sent. +func seedCalendarUpgrade(t *testing.T, ctx context.Context, old *http.Client) func(*http.Client) { + t.Helper() + origin := "https://" + catalogCalendarURLHost + send := func(client *http.Client, method, path, body, etag string, want int, out any) { + t.Helper() + req, err := http.NewRequestWithContext(ctx, method, origin+path, bytes.NewBufferString(body)) + if err != nil { + t.Fatal(err) + } + req.Header.Set("Content-Type", "application/json") + req.Header.Set("Origin", origin) + u, _ := url.Parse(origin) + for _, cookie := range client.Jar.Cookies(u) { + if cookie.Name == "ky_csrf" { + req.Header.Set("X-CSRF-Token", cookie.Value) + } + } + if etag != "" { + req.Header.Set("If-Match", `"`+etag+`"`) + } + r, err := client.Do(req) + if err != nil { + t.Fatal("calendar content request failed", err) + } + defer r.Body.Close() + b, err := io.ReadAll(io.LimitReader(r.Body, 64<<10)) + if err != nil || r.StatusCode != want { + t.Fatalf("calendar content %s %s: HTTP %d, read error %v", method, path, r.StatusCode, err) + } + if out != nil { + if err := json.Unmarshal(b, out); err != nil { + t.Fatal("calendar content response invalid", err) + } + } + } + var cal struct{ ID string } + send(old, "POST", "/api/calendars", `{"name":"Major upgrade calendar","color":"#d05b20"}`, "", http.StatusCreated, &cal) + if cal.ID == "" { + t.Fatal("old Calendar created no calendar ID") + } + const event = `{"title":"Major migration — café","location":"Room 7","description":"Retain this ordinary event.\nSecond line.","start":"2026-11-18T09:00:00Z","end":"2026-11-18T10:00:00Z","zone":"UTC"}` + var made struct { + CalendarID string `json:"calendar_id"` + UID, ETag string + } + send(old, "POST", "/api/calendars/"+cal.ID+"/events", event, "", http.StatusCreated, &made) + if made.CalendarID != cal.ID || made.UID == "" || made.ETag == "" { + t.Fatal("old Calendar created no event identity/ETag") + } + type eventView struct { + CalendarID string `json:"calendar_id"` + UID, ETag, Title, Location, Description, Start, End string + Editable bool + } + query := "/api/events?start=2026-11-18T00:00:00Z&end=2026-11-19T00:00:00Z&tz=UTC&calendar=" + url.QueryEscape(cal.ID) + read := func(client *http.Client) eventView { + t.Helper() + var events []eventView + send(client, "GET", query, "", "", http.StatusOK, &events) + if len(events) != 1 { + t.Fatalf("calendar content: want one seeded event, got %d", len(events)) + } + return events[0] + } + before := read(old) + if before.CalendarID != cal.ID || before.UID != made.UID || before.ETag != made.ETag || before.Title != "Major migration — café" || before.Location != "Room 7" || before.Description != "Retain this ordinary event.\nSecond line." || before.Start != "2026-11-18T09:00:00Z" || before.End != "2026-11-18T10:00:00Z" || !before.Editable { + t.Fatal("old Calendar did not read back the seeded event exactly") + } + return func(candidate *http.Client) { + t.Helper() + if after := read(candidate); after != before { + t.Fatal("candidate Calendar changed existing event content, identity, ETag or access") + } + const edited = `{"title":"Edited after candidate upgrade","location":"Room 7","description":"Retain this ordinary event.\nSecond line.","start":"2026-11-18T09:00:00Z","end":"2026-11-18T10:00:00Z","zone":"UTC"}` + var changed struct{ ETag string } + send(candidate, "PUT", "/api/events/"+cal.ID+"/"+made.UID, edited, made.ETag, http.StatusOK, &changed) + after := read(candidate) + if changed.ETag == "" || changed.ETag == made.ETag || after.ETag != changed.ETag || after.Title != "Edited after candidate upgrade" { + t.Fatal("candidate Calendar could not edit preserved event with its old ETag") + } + after.Title, after.ETag = before.Title, before.ETag + if after != before { + t.Fatal("candidate Calendar edit changed unrelated event content or access") + } + t.Log("real previous-image Calendar event retained text/times/IDs/ETag and accepted a candidate If-Match edit") + } +} diff --git a/test/e2e/npm_joins_kube_test.go b/test/e2e/npm_joins_kube_test.go index 781d787..1da064d 100644 --- a/test/e2e/npm_joins_kube_test.go +++ b/test/e2e/npm_joins_kube_test.go @@ -5,18 +5,27 @@ package e2e import ( "bytes" "context" + "crypto/sha256" + "encoding/json" + "maps" + "net/http" + "net/url" "os" "os/exec" "path/filepath" "slices" "strings" "testing" + "time" + "github.com/Busnes-app/kyquickstart/internal/catalog" "github.com/Busnes-app/kyquickstart/internal/cli" + "github.com/Busnes-app/kyquickstart/internal/engine" "github.com/Busnes-app/kyquickstart/internal/kube" "github.com/Busnes-app/kyquickstart/internal/stack" "go.yaml.in/yaml/v3" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" ) @@ -41,11 +50,44 @@ func testKubernetesEdgeJoins(t *testing.T, proxy string) { } cs := kubernetes.NewForConfigOrDie(cfg) catalogDir := filepath.Join(work, "catalog") + previous := os.Getenv("KYQ_TEST_RELEASE_UPGRADE_MANIFESTS") + candidates := map[string][]byte{} + fromPrevious := func(app string) { + t.Helper() + if previous == "" || !strings.HasPrefix(app, "ky") { + return + } + path := filepath.Join(catalogDir, app, "manifest.yaml") + current, err := os.ReadFile(path) + if err != nil { + t.Fatal(err) + } + old, err := os.ReadFile(filepath.Join(previous, app, "manifest.yaml")) + if err != nil { + t.Fatal(err) + } + // Compose plumbing is already relay-disabled. Only replace/patch the + // historical manifest; relaysOff deliberately rejects a double patch. + for _, patch := range relayPatches[app] { + if patch.file != "manifest.yaml" { + continue + } + if strings.Count(string(old), patch.from) != 1 { + t.Fatal("previous relay manifest anchor changed", app) + } + old = []byte(strings.Replace(string(old), patch.from, patch.to, 1)) + } + candidates[app] = current + if err := os.WriteFile(path, old, 0o600); err != nil { + t.Fatal(err) + } + } for _, src := range []string{"../../internal/catalog/testdata/apps/hello", "../../internal/catalog/apps/" + proxy, "../../internal/catalog/apps/kyidentity", "../../internal/catalog/apps/kyrecovery", "../../internal/catalog/apps/kypulse", "../../internal/catalog/apps/kynotes", "../../internal/catalog/apps/kycalendar"} { if err := os.CopyFS(filepath.Join(catalogDir, filepath.Base(src)), os.DirFS(src)); err != nil { t.Fatal(err) } relaysOff(t, filepath.Join(catalogDir, filepath.Base(src))) + fromPrevious(filepath.Base(src)) } plan := filepath.Join(state, "stack.yaml") os.WriteFile(plan, []byte("version: 1\ntargets:\n - name: k8s\n kubeconfig: "+kc+"\n storage_class: standard\napps:\n - name: "+proxy+"\n target: k8s\n - name: hello\n target: k8s\n"), 0o600) @@ -98,6 +140,7 @@ func testKubernetesEdgeJoins(t *testing.T, proxy string) { loadCatalogApp(t, name, cs, "kyrecovery") loadCatalogApp(t, name, cs, "kypulse") drive := startDriveTarget(t, work, catalogDir, nodeIP, certPEM) + fromPrevious("kydrive") testClusterDNS(t, ctx, cs, nodeIP) allow := []string{ip(client) + "/32", mustNode(t, ctx, cs, node).Spec.PodCIDR} for _, gw := range strings.Fields(docker(t, "network", "inspect", "kind", "--format", "{{range .IPAM.Config}}{{.Gateway}} {{end}}")) { @@ -203,6 +246,7 @@ func testKubernetesEdgeJoins(t *testing.T, proxy string) { // The host also holds the configuration volume of a KyPost from before #151, which apply // copies into the bind directory once. postPort := preparePost(t, work, catalogDir, drive) + fromPrevious("kypost") seedPostVolume(t) st, _ = stack.Load(plan) addCatalogPost(st, certID, drive, postPort) @@ -222,6 +266,135 @@ func testKubernetesEdgeJoins(t *testing.T, proxy string) { } } + if previous != "" { + // Native setup has seeded seven real old-image databases with the owner, + // OIDC clients, SCIM and receipts. Also seed a real Recovery ceremony, + // Pulse pairing and deposit, then preserve them across actual upgrades. + watched := []string{"hello", "kycalendar", "kydrive", "kyidentity", "kynotes", "kypost", "kyrecovery"} + recoveryPairing := catalogSignOnWithBackup(t, ctx, cs, kc, certPEM, nodeIP, true, watched) + // Later apply calls may replace this test-only mount. Repeating the ensure + // must not append duplicate volumes, mounts or environment values. + trustTestCA(t, ctx, cs, connected, "kycalendar", certPEM) + trustTestCA(t, ctx, cs, connected, "kycalendar", certPEM) + verifyCalendar := seedCalendarUpgrade(t, ctx, calendarSignOn(t, ctx, connected, certPEM, nodeIP)) + fingerprints := func() map[string][32]byte { + t.Helper() + out := map[string][32]byte{} + for app := range candidates { + if app == "kydrive" || app == "kypost" { + continue + } + list, err := cs.CoreV1().Secrets("kyq-"+app).List(ctx, metav1.ListOptions{}) + if err != nil { + t.Fatal(err) + } + for _, secret := range list.Items { + data, err := json.Marshal(secret.Data) + if err != nil { + t.Fatal(err) + } + out[app+"/"+secret.Name] = sha256.Sum256(data) + } + } + return out + } + transport := driveTransport(t, certPEM, nodeIP) + client := &http.Client{Transport: transport, Timeout: 30 * time.Second} + jwks := func() [32]byte { + t.Helper() + r, body := get(t, ctx, client, "https://"+catalogIdentityURLHost+"/.well-known/openid-configuration") + var discovery struct { + JWKS string `json:"jwks_uri"` + } + if r.StatusCode != 200 || json.Unmarshal(body, &discovery) != nil { + t.Fatal("Identity discovery unavailable during upgrade qualification") + } + u, err := url.Parse(discovery.JWKS) + if err != nil || u.Scheme != "https" || u.Host != catalogIdentityURLHost { + t.Fatal("Identity JWKS left the fixture origin") + } + r, body = get(t, ctx, client, u.String()) + var keys any + if r.StatusCode != 200 || json.Unmarshal(body, &keys) != nil { + t.Fatal("Identity JWKS unavailable during upgrade qualification") + } + canonical, err := json.Marshal(keys) + if err != nil { + t.Fatal(err) + } + return sha256.Sum256(canonical) + } + dockerCredentials := func() string { + return docker(t, "exec", drive.name, "sha256sum", drive.root+"/kydrive/secrets/session_secret", drive.root+"/kydrive/secrets/scim_token") + + docker(t, "exec", postContainer, "sha256sum", postSetupDir+"/client.secret") + } + before, signingKeys, dockerKeys := fingerprints(), jwks(), dockerCredentials() + oldCatalog, err := catalog.Load(os.DirFS(catalogDir)) + if err != nil { + t.Fatal(err) + } + for app, manifest := range candidates { + if err := os.WriteFile(filepath.Join(catalogDir, app, "manifest.yaml"), manifest, 0o600); err != nil { + t.Fatal(err) + } + } + newCatalog, err := catalog.Load(os.DirFS(catalogDir)) + if err != nil { + t.Fatal(err) + } + for _, app := range []string{"kyidentity", "kyrecovery", "kypulse", "kydrive", "kynotes", "kycalendar", "kypost"} { + if !catalog.VersionAtLeast(newCatalog[app].Version, oldCatalog[app].Version) || newCatalog[app].Version == oldCatalog[app].Version { + t.Fatal("release fixture does not upgrade", app) + } + migrates := newCatalog[app].Upgrade.Migrates(oldCatalog[app].Version) + args := []string{"upgrade", app, "--state", state} + if !migrates { + args = append(args, "--acknowledge-no-backup") + } + var upgrade bytes.Buffer + err := cli.Run(ctx, append(args, trust...), cli.Options{ + Catalog: os.DirFS(catalogDir), ReleaseSet: "e2e", Out: &upgrade, + Progress: func(event engine.Event) { + if event.ID != app+".deploy" || event.Status != "ok" || app == "kydrive" || app == "kypost" { + return + } + // Keep fixture CA trust when the new pod starts, before health/setup + // can need its issuer. The ordinary installer never writes this mount. + patch := []byte(testCAPatch) + if _, err := cs.AppsV1().Deployments("kyq-"+app).Patch(ctx, "app", types.StrategicMergePatchType, patch, metav1.PatchOptions{}); err != nil { + t.Fatal(err) + } + }, + }) + out := upgrade.String() + t.Logf("release upgrade %s: %v\n%s", app, err, out) + outputs = append(outputs, out) + if err != nil || status(out, app+".deploy") != "ok" || status(out, app+".health") != "ok" { + t.Fatalf("real release upgrade %s: %v", app, err) + } + if migrates && status(out, app+".pre-upgrade-backup") != "ok" { + t.Fatal("release migration did not verify its required pre-upgrade backup", app) + } + if !migrates && !strings.Contains(out, "operator acknowledged no pre-upgrade backup") { + t.Fatal("release upgrade did not record the fixture operator's acknowledgement", app) + } + t.Logf("release upgrade %s %s -> %s passed", app, oldCatalog[app].Version, newCatalog[app].Version) + } + if after := fingerprints(); !maps.Equal(before, after) || jwks() != signingKeys || dockerCredentials() != dockerKeys { + t.Fatal("release upgrade changed target credential material or Identity signing keys") + } + // The candidate must use the old identities and native configuration. Do + // not rerun the write-once Recovery ceremony when checking sign-in again. + if after := catalogSignOnWithBackup(t, ctx, cs, kc, certPEM, nodeIP, false, watched); after != recoveryPairing { + t.Fatal("Recovery pairing/key binding changed across release upgrades") + } + t.Logf("preserved %d Kubernetes Secret payloads, Docker client/session keys, Identity JWKS and Recovery pairing; candidate Pulse deposited with its prior pairing", len(before)) + driveSignOn(t, ctx, kc, certPEM, nodeIP, driveSecrets[1]) + notesSignOn(t, ctx, connected, certPEM, nodeIP) + verifyCalendar(calendarSignOn(t, ctx, connected, certPEM, nodeIP)) + postSignOn(t, ctx, connected, certPEM, nodeIP) + } + // KyDNS joins on the Docker target by setup amendment too, its admin UI behind the edge and // DNS on the target's forward address. Its edge's egress_address is the kind node's address, // where pods leave kind. kydns.gate proves this host, not the edge, gets 403 with a forged diff --git a/test/e2e/pulse_kube_test.go b/test/e2e/pulse_kube_test.go index 8af19ac..2fc1935 100644 --- a/test/e2e/pulse_kube_test.go +++ b/test/e2e/pulse_kube_test.go @@ -108,7 +108,7 @@ func checkCatalogPulse(t *testing.T, ctx context.Context, cs kubernetes.Interfac // pulseTargetsHealthy waits, as kyPulse's signed-in admin, until every target apply registered // reports ok: kyPulse polled each app through the edge. -func pulseTargetsHealthy(t *testing.T, ctx context.Context, send func(method, endpoint string, body []byte, csrf string) (*http.Response, []byte), origin string) { +func pulseTargetsHealthy(t *testing.T, ctx context.Context, send func(method, endpoint string, body []byte, csrf string) (*http.Response, []byte), origin string, watched []string) { t.Helper() var last []byte for deadline := time.Now().Add(4 * time.Minute); time.Now().Before(deadline); time.Sleep(5 * time.Second) { @@ -126,7 +126,7 @@ func pulseTargetsHealthy(t *testing.T, ctx context.Context, send func(method, en ok = append(ok, x.Name) } } - if slices.Sort(ok); slices.Equal(ok, pulseWatched) && len(list.Targets) == len(pulseWatched) { + if slices.Sort(ok); slices.Equal(ok, watched) && len(list.Targets) == len(watched) { t.Logf("kyPulse reports every registered target ok: %v", ok) return } diff --git a/test/e2e/recovery_kube_test.go b/test/e2e/recovery_kube_test.go index 01a9104..0212ad9 100644 --- a/test/e2e/recovery_kube_test.go +++ b/test/e2e/recovery_kube_test.go @@ -5,6 +5,7 @@ package e2e import ( "bytes" "context" + "crypto/sha256" "crypto/tls" "crypto/x509" "encoding/base64" @@ -27,6 +28,7 @@ import ( corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" ) @@ -114,7 +116,7 @@ func testClusterDNS(t *testing.T, ctx context.Context, cs kubernetes.Interface, if err != nil { t.Fatal(err) } - hosts := strings.Join([]string{catalogIdentityHost, catalogRecoveryHost, catalogPulseHost, catalogDriveHost, catalogNotesHost, catalogCalendarHost, catalogDNSHost, catalogYardHost, "hello.example.test", "message.example.test", "home.example.test", "matrix.example.test", "auth.example.test", "chat.example.test", "rtc.example.test"}, " ") + hosts := strings.Join([]string{catalogIdentityHost, catalogRecoveryHost, catalogPulseHost, catalogDriveHost, catalogNotesHost, catalogCalendarHost, catalogPostHost, catalogDNSHost, catalogYardHost, "hello.example.test", "message.example.test", "home.example.test", "matrix.example.test", "auth.example.test", "chat.example.test", "rtc.example.test"}, " ") lines := strings.Join(append([]string{nodeIP + " " + hosts}, extra...), "\n ") corefile := strings.Replace(dns.Data["Corefile"], " kubernetes cluster.local", " hosts {\n "+lines+"\n fallthrough\n }\n kubernetes cluster.local", 1) if corefile == dns.Data["Corefile"] { @@ -166,13 +168,21 @@ func testClusterDNS(t *testing.T, ctx context.Context, cs kubernetes.Interface, // account. Test-only plumbing: testClusterDNS ran, and both apps' pods trust the edge's // throwaway certificate. func catalogSignOn(t *testing.T, ctx context.Context, cs kubernetes.Interface, kubeconfig string, certPEM []byte, nodeIP string) { + catalogSignOnWithBackup(t, ctx, cs, kubeconfig, certPEM, nodeIP, true, pulseWatched) +} + +func catalogSignOnWithBackup(t *testing.T, ctx context.Context, cs kubernetes.Interface, kubeconfig string, certPEM []byte, nodeIP string, backup bool, watched []string) [32]byte { + var checkpoint [32]byte t.Helper() c, err := kube.Connect(kubeconfig, "") if err != nil { t.Fatal(err) } - trustTestCA(t, ctx, cs, c, "kyrecovery", certPEM) - trustTestCA(t, ctx, cs, c, "kypulse", certPEM) + // Initial setup needs fixture CA trust; the candidate deploy hook already retains it. + if backup { + trustTestCA(t, ctx, cs, c, "kyrecovery", certPEM) + trustTestCA(t, ctx, cs, c, "kypulse", certPEM) + } pool := x509.NewCertPool() if !pool.AppendCertsFromPEM(certPEM) { @@ -277,11 +287,49 @@ func catalogSignOn(t *testing.T, ctx context.Context, cs kubernetes.Interface, k } t.Logf("owner admin signed in to %s through KyIdentity as %q, role %s", app.client, me.User.Name+me.User.Username, me.User.Role) if app.client == "kypulse" { - pulseTargetsHealthy(t, ctx, send, app.origin) - pulseBacksUpByHand(t, ctx, c, jar, send) + pulseTargetsHealthy(t, ctx, send, app.origin, watched) + if backup { + pulseBacksUpByHand(t, ctx, c, jar, send) + } + if !backup { + u, _ := url.Parse(app.origin) + csrf := "" + for _, cookie := range jar.Cookies(u) { + if cookie.Name == "ky_csrf" { + csrf = cookie.Value + } + } + if csrf == "" { + t.Fatal("candidate Pulse set no CSRF cookie") + } + r, body := send("POST", app.origin+"/api/backup/deposit", nil, csrf) + var run struct { + Receipt *struct { + CapsuleID string `json:"capsule_id"` + } `json:"receipt"` + } + if r.StatusCode != 200 || json.Unmarshal(body, &run) != nil || run.Receipt == nil || run.Receipt.CapsuleID == "" { + t.Fatal("candidate Pulse could not deposit with its existing pairing") + } + } + r, body := send("GET", "https://"+catalogRecoveryURLHost+"/api/pairing/list", nil, "") + var pairings []struct { + Status string `json:"status"` + ServiceName string `json:"service_name"` + RecoveryKeyID string `json:"recovery_key_id"` + } + if r.StatusCode != 200 || json.Unmarshal(body, &pairings) != nil || len(pairings) != 1 || pairings[0].Status != "paired" || pairings[0].RecoveryKeyID == "" { + t.Fatal("Recovery lost its native pairing/key record") + } + data, err := json.Marshal(pairings) + if err != nil { + t.Fatal(err) + } + checkpoint = sha256.Sum256(data) } } } + return checkpoint } // pulseBacksUpByHand proves #93 on the catalog's internal KyRecovery, whose URL resolves to @@ -370,7 +418,10 @@ func pulseBacksUpByHand(t *testing.T, ctx context.Context, c *kube.Client, jar h t.Logf("kyPulse paired by hand with the internal KyRecovery at %s and deposited capsule %s", recovery, run.Receipt.CapsuleID) } -// trustTestCA restarts app with the edge's throwaway certificate as its only trusted root. +// testCAPatch retains normal TLS verification with the fixture edge as its trusted root. +const testCAPatch = `{"spec":{"template":{"spec":{"volumes":[{"name":"test-ca","configMap":{"name":"test-ca"}}],"containers":[{"name":"app","volumeMounts":[{"name":"test-ca","mountPath":"/test-ca","readOnly":true}],"env":[{"name":"SSL_CERT_FILE","value":"/test-ca/ca.pem"}]}]}}}}` + +// trustTestCA ensures the app trusts the fixture CA, restarting only when its pod template changes. func trustTestCA(t *testing.T, ctx context.Context, cs kubernetes.Interface, c *kube.Client, app string, certPEM []byte) { t.Helper() ns := "kyq-" + app @@ -385,13 +436,14 @@ func trustTestCA(t *testing.T, ctx context.Context, cs kubernetes.Interface, c * if err != nil { t.Fatal(err) } - spec := &dep.Spec.Template.Spec - spec.Volumes = append(spec.Volumes, corev1.Volume{Name: "test-ca", VolumeSource: corev1.VolumeSource{ConfigMap: &corev1.ConfigMapVolumeSource{LocalObjectReference: corev1.LocalObjectReference{Name: "test-ca"}}}}) - spec.Containers[0].VolumeMounts = append(spec.Containers[0].VolumeMounts, corev1.VolumeMount{Name: "test-ca", MountPath: "/test-ca", ReadOnly: true}) - spec.Containers[0].Env = append(spec.Containers[0].Env, corev1.EnvVar{Name: "SSL_CERT_FILE", Value: "/test-ca/ca.pem"}) - if _, err := cs.AppsV1().Deployments(ns).Update(ctx, dep, metav1.UpdateOptions{}); err != nil { + // Merge keyed lists so restoring fixture trust after apply is repeatable. + updated, err := cs.AppsV1().Deployments(ns).Patch(ctx, "app", types.StrategicMergePatchType, []byte(testCAPatch), metav1.PatchOptions{}) + if err != nil { t.Fatal(err) } + if updated.Generation == dep.Generation { + return + } for deadline := time.Now().Add(3 * time.Minute); ; time.Sleep(2 * time.Second) { _, pod, _, err := c.AppPod(ctx, app) if err == nil && pod != before {