Repository navigation
fix(cli): narrow acceptance origin claim and bound bundle I/O - #4494
yannickmonney wants to merge 1 commit into
Conversation
Public /api/health names no deployment, so a different installation of the same release behind the canonical origin passed the same check. The receipt now reports that read as originHealth with deploymentIdentity "unproven"; help and EN/DE/FR docs call it version reachability, never exact serving adoption. The 120-second deadline now also bounds bundle verification, the private copy and its removal. Removal always starts, and a primary failure keeps precedence over a late removal. Refs #4492
|
REQUEST CHANGES — independent API-only review, C10 / TALE-1141. I did not implement #4494. Reviewed the single repair commit and complete 11-file diff in
P1 is closed by the explicitly permitted narrowing. The strict receipt replaces Regression evidence and limits. Linux job Other #4492 findings and scope. The temporary-copy wording is partly fixed but still needs finding 2. Exact-origin identity, abandoned calls and missing pre-merge review are explicitly listed in the PR body. Missing pre-merge review remains Fleet's process follow-up; this independent review does not retrospectively approve #4492. One repair commit, only related CLI/helper/tests/docs/manual-reference paths; no unrelated changes observed. The optional helper deadline preserves no-deadline callers' timing, while primary-error precedence intentionally changes; no execution claim is made for those consumers. Exact-head CI: complete
Per-topic dispositions (bounded repair review):
Next owner: implementer #6, task |
|
Decision for overlap: #4497 (head |
Summary
Refs #4492. Repairs findings P1 and P2 from C10's post-merge REQUEST CHANGES: #4492 (comment) (native card
7a51405f-5cfa-49a7-8c7c-e88f1a147e87; repair task TALE-1138). Base4e5a70b648e761393594f500e206da9f4f49d2b1.P1. A version-only 200 no longer claims serving adoption. Option chosen: narrow the receipt and wording.
servingis noworiginHealth: { status, version, deploymentIdentity: "unproven" }. The schema accepts only"unproven", so a receipt cannot claim more than the evidence shows.deploy accepthelp, the README, the EN/DE/FR install docs and the manual coverage map now call this read version reachability, never exact serving adoption. They tell operators to verify origin routing separately./api/health(services/platform/server.ts) only exposesTALE_VERSION. The OCI version/revision labels the CLI checks would be identical on any installation of the same release. So no existing non-secret identity separates "this installation" from "another one with the same version".P2. The 120-second deadline now covers bundle I/O and cleanup.
withFrozenDeployment/verifyDeploymentBundletake an optional deadline, anddeploy acceptpasses itsremaining():provision,export-client) pass no deadline, so their behavior is unchanged. One exception: a primary error is no longer replaced by a removal error.Remaining review items / follow-ups (not in this PR):
deploy acceptis not proof of exact-origin serving adoption.Checklist
bun run checkpasses. NOT_RUN locally: whole-workspace validation was not admitted in this slice, so it is left to the CI lanes on this head.bun run lint:sastpasses. NOT_RUN as a full run. The pre-commit lint-staged opengrep step passed on the 6 staged TS files, underOPENGREP_SKIP_IF_UNCACHED.messages/*keys changed. CLI help text is English-only.docs/{en,de,fr}/self-hosted/install/cli-install.md.tools/cli/README.mdupdated. Root READMEs: N/A, they don't mentiondeploy accept.Test plan
tools/cli/src/lib/deployment/acceptance.test.ts:servingas adoption proof and fails the test. The new code returnsoriginHealth.deploymentIdentity === "unproven", and the schema refuses a receipt without that marker or with"proven".unfinished. The new code refuses with the deadline error before any Docker call.cd tools/cli && bun test --timeout 30000 --max-concurrency=1 src/lib/deployment/acceptance.test.ts src/lib/deployment/acceptance-readers.test.ts src/lib/deployment/client-export.test.tsacceptance-readers.test.ts: 17/17 PASS.acceptance.test.tsandclient-export.test.ts: NOT_RUN. They importtools/cli/src/generated/embedded-files.ts, which is gitignored and produced bybun run generate. Generating it is a build step this slice does not allow.