Repository navigation
fix(providers): bound credential endpoints and responses - #5244
Conversation
Size Report
Startup median (7 runs, lower is better):
Affected plugins
|
This comment has been minimized.
This comment has been minimized.
9c192a4 to
c3ae788
Compare
This comment has been minimized.
This comment has been minimized.
c3ae788 to
ab917d2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
At d282619, Limrun runner staging fails on GitHub's asset redirect, and a few other paths need a fix or live proof before merge. limrun-download-file.ts:46 sets device-session.ts:197 now requires the recording URL to share the origin of the instance A second independent pass found the same redirect failure at limrun-download-file.ts:46. The anonymous manifest request fails on the 302, and the archive request would fail on its own 302 even if the manifest were served directly. The base used the default follow mode. Requests with neither an A second independent pass found that webdriver-utils.ts:128 may now reject JSON that starts with a UTF-8 byte-order mark. A second independent pass found the same likely problem in limrun-http-response.ts:25. A successful runner sync reply with a byte-order mark was accepted by Not blocking: these can be taken or left: import Could this be simpler with WebDriver admission through All 17 checks pass at this commit. They do not exercise a real GitHub 302, because the release-runner test stubs The 302 was confirmed with Before merge, header-less, unfenced downloads must follow redirects, with the local 302 test. Two live runs on the fixed head are also required and are still missing. First, start a Limrun iOS session on a released version without |
|
Addressed the code regressions at
The three affected test files pass (14, 2, and 19 tests). CI at the pushed head is pending. Live Limrun runner staging and a non-empty MP4 from |
This comment has been minimized.
This comment has been minimized.
|
At 33f9121, the three code problems from the earlier review are fixed: the redirect handling for anonymous downloads and the BOM decoding in both readers. Two live Limrun runs are still required before merge. The runner download path still lacks the live proof requested earlier, and the author reports it as unverified. These header-less, unfenced calls now use A live Not blocking: this can be taken or left, but if the live service returns the recording URL on another origin (such as a CDN or presigned storage), the new fence would reject it with Not verified here: tests were not run locally (pass counts rest on the author's report and CI), the real GitHub release 302 was not exercised ( All 16 other checks pass. The Body rules check was cancelled, not failed; it validates the PR description, this update does not touch it, and a newer description edit likely superseded the run. |
There was a problem hiding this comment.
All reported issues were addressed across 23 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
At 81674ee, the threads listed below are fixed, but the live proof asked for in the earlier review is still missing. The runner download path releases with empty headers and no origin fence, so redirects are followed, and its admission check uses the same rule as before. The 512 MiB download bound and the bounded runner-sync reader have still not run against the real GitHub release and Limrun service, and the PR description reports this as unverified. Before merge, start a Limrun iOS session on this head, on a released version without A live Limrun Not blocking: both of these can be taken or left: if the service returns the recording URL on another origin, taking the fence from that returned URL while keeping the Bearer header off any other origin, and widening the These threads no longer apply and can be resolved: any non-empty header now requires an expected origin and refuses redirects; a streaming over-limit test without All 18 checks pass. Not verified here: tests were not run locally, and pass results rest on the author's report and the checks. The live recording URL origin was not compared with the instance API URL. The real GitHub release redirect was not exercised; redirect following was confirmed only in code and in the local 302 test. It was also not traced whether every Before merge, both live Limrun runs above need to pass on this head with their output shared. |
|
Please narrow this to provider responses buffered in memory. Keep the byte counters, cancellation, BOM-compatible decoding, typed failures and dispatch disclosure. Remove the new endpoint, origin and redirect rules, including the blanket WebDriver redirect refusal, and move disk-download quotas to a separate change with realistic file sizes. The existing recording and runner routes can then retain their prior behavior. The reader and request tests cover the retained invariant. A live Limrun recording or runner-staging session adds no merge evidence for this scope. |
81674ee to
3247e1b
Compare
|
Narrowed #5244 at |
|
At 3247e1b, no code changes are requested. The PR now keeps only the bounded response reads and their typed errors, and the endpoint, redirect and disk-download rules are removed. The two live Limrun runs asked for after the earlier findings are no longer needed, because recording download and the runner release download behave as on the base. These threads no longer apply and can be resolved. Fixed: a streaming over-limit test without Lint, Typecheck & Package fails on unused imports in Not verified here: tests were not run locally, and pass results rest on the checks and the author's report of 162 focused tests. The two failures were not reproduced on the base branch head 47da635. Cancellation of a body read that is already in progress through the No fix is needed in this PR for merge. The Lint and Typecheck failures must be fixed in #5243 before the checks can pass. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 3247e1b. The verdict and the full list are in the summary comment.
ea0f9e7 to
51ed0d4
Compare
51ed0d4 to
2955f2b
Compare
Apex Sentinel · ✅ Approve · review of
|
| Finding | Fixed by | Where |
|---|---|---|
| Revyl oversized-response error uses a different reason than the new shared constant | thymikee | ea0f9e7 · reply |
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (43dfc0200f25).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
e16c912
into
fix/daybreak-daemon-boundaries
* fix(providers): bound credential endpoints and responses * fix(providers): require origin fences for authenticated downloads * fix(providers): bound Limrun control responses * fix(providers): satisfy response boundary gates * fix(providers): share response failure vocabulary * fix(providers): cancel stalled Limrun response reads * docs: regenerate provider response reasons * chore(gates): refresh contracts export snapshot * test(providers): narrow stalled response observation * fix(providers): preserve observed Limrun rejection status * test(providers): await client-observed rejection body * test(providers): observe retry conflict body seam * fix(providers): keep response reason in existing closure * fix: preserve anonymous Limrun release redirects and BOM decoding * fix(providers): close credential and response boundaries * fix(contracts): keep response reasons in remote facade * docs(contracts): summarize provider response reason * fix(providers): narrow response bounds to buffered bodies * fix(revyl): report oversized responses with shared reason
* fix(providers): bound credential endpoints and responses * fix(providers): require origin fences for authenticated downloads * fix(providers): bound Limrun control responses * fix(providers): satisfy response boundary gates * fix(providers): share response failure vocabulary * fix(providers): cancel stalled Limrun response reads * docs: regenerate provider response reasons * chore(gates): refresh contracts export snapshot * test(providers): narrow stalled response observation * fix(providers): preserve observed Limrun rejection status * test(providers): await client-observed rejection body * test(providers): observe retry conflict body seam * fix(providers): keep response reason in existing closure * fix: preserve anonymous Limrun release redirects and BOM decoding * fix(providers): close credential and response boundaries * fix(contracts): keep response reasons in remote facade * docs(contracts): summarize provider response reason * fix(providers): narrow response bounds to buffered bodies * fix(revyl): report oversized responses with shared reason
Summary
Bound in-memory provider response reads in Revyl, WebDriver, and hosted provider to 32 MiB, even when a peer omits or misstates Content-Length. Preserve cancellation, BOM-compatible text decoding, typed oversize failures, and WebDriver dispatch disclosure. This is the provider-response layer of the Daybreak remediation stack, based on #5243. Endpoint, origin, redirect, and disk-download policies remain outside this PR.
Before / after
dispatched: unknown.provider-response-invalid; after: it reportsprovider_response_too_largewithlimitBytes.Validation
Head:
2955f2b942, rebased onto #524334e15e22d7.git range-diffmarks all 19 provider commits patch-equivalent to the prior head;git diff --checkpassed. No local gates or tests were run after this rebase. The focused Revyl file passed 21/21 atea0f9e7b5e; nine focused files passed 162/162 at3247e1ba9e. CI at the new head is pending. No live hosted provider or Revyl run was performed.