Repository navigation
feat(android): sign in to Gateway profiles through Cloudflare Access - #147307
vincentkoc wants to merge 15 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
39e159e to
1775ee6
Compare
cda357e to
66c86f1
Compare
|
Codex review: blocked before merge. What this changesThe Android app adds Cloudflare Access browser sign-in for Gateway profiles, preserves setup-code deadlines, retires managed connections on sign-out or forget, and adds native validation and guidance. Review scores
Merge readiness⛔ Blocked before merge - 6 items remain This PR remains necessary: merged prerequisites provide verification and transport support, but current main does not activate Android browser sign-in. No actionable introduced defect was found; the acknowledged qualification gaps and explicit review hold remain unresolved. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherAndroid Gateway admission receives saved profiles, setup codes, and user connection requests. It obtains Access authorization before native node, operator, chat, and media connections proceed. flowchart TD
A[Saved profile or setup code] --> B[Android connection request]
B --> C[TLS trust and Access admission]
C --> D[Browser sign-in when required]
D --> E[Verified current grant]
C --> F[Independent service-header route]
E --> G[Native sockets and media]
F --> G
H[Sign out or Forget] --> E
Technical reviewBest possible solution: Activate Access through the existing admission owner with demonstrated browser return, preserved installed-user state, and explicit clearance of the existing review hold. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request: current source establishes the missing app activation, but this review did not execute an Android browser flow. Is this the best way to solve the issue? Yes, integrating the existing ingress owner is the maintainable direction; native boundary tests support it, while browser and upgrade qualification remain necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bb3a8a9ac304. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +732, Tests +1735, Docs +30, Config +49, Other +143. Total +2689 across 32 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (19 earlier review cycles; latest 8 shown)
Reviewed October 5, 2026, 10:59 AM ET / 14:59 UTC (Revision 20). |
7f571c6 to
4ab2fbb
Compare
38de691 to
82839cb
Compare
d35072d to
056fb88
Compare
056fb88 to
15f2734
Compare
This comment has been minimized.
This comment has been minimized.
f3477d2 to
625bf69
Compare
15f2734 to
a4fafb1
Compare
f4319f6 to
1a81263
Compare
b64ab17 to
aa784f0
Compare
What Problem This Solves
An Android Gateway behind Cloudflare Access needs browser sign-in before native node, operator, chat, and media connections can proceed.
User Impact
Manual, discovered, and QR connections resume their original target after Custom Tabs sign-in. Expired setup deadlines request a fresh scan. Sign out/account replacement retire matching managed consumers. Forget drains/removes the selected profile and intentionally clears its pairing/headers while preserving other profiles; final-owner removal retires the shared grant. Ordinary service-header connections remain independent; IdP logout is not implied.
Why This Change Was Made
Carry one admission checkpoint through queues, TLS trust, configuration, resets, and browser handoff. Primary and secondary consumers use captured authorization; one presentation snapshot drives visible outcomes.
The immediate prerequisite is #147877 (
fix/android-markdown-source-spans-20260914) (aa784f04a5be476315ef312bb6aa11337742bcf4), above the Access owner #147305 and transport #147094. It removes unused chat Markdown metadata after repeated large-message CI allocation failures. The latest app-only correction makes the permission refresh test wait for a new connection identity before inspecting its options. It uses the existing helper and preserves runtime behavior, assertions, and deadlines.The rebuilt ingress controller keeps activation restacking deferred until the held-input boundary is resolved. Preserve this activation head/base and the existing executor; do not start a competing reconstruction. Later activation run 35824941752 skipped all 32 jobs, and controller run 35825063432 skipped all 31, so neither supplies new qualification.
Evidence
Signed head
1a8126346f43bfcb387e4b52dc6a6876eaba8a7b, immediate baseaa784f04a5be476315ef312bb6aa11337742bcf4. CI 34832107763, attempt 1 tested1cfcc7b84f149da25ad8ea86e803fcdad0836635, whose ordered parents are that base and head; treedccf6534a2d20d262361470017b35d4e2dfae70bequals the published source tree. The stack includes the existing Play/lint budget prerequisite at47cc409e0ef5ca578d9cb3d1017d8de9f53422bf. All eight Android jobs passed.Play tests and lint passed 3,327 tests: 3,317 app and 10 Wear-shared. Third-party tests and lint passed 3,448. Both flavors had zero failures, errors or skips, including all 99 bootstrap, 51 ingress-owner and two wire tests. The new cold Sign-out order/entry scenarios, unchanged held-TLS Sign-out/fresh-Retry Runtime regression, and trust/ordinary/Stop/permission/direct-switch controls passed. Both complete phone test-and-lint stages finished; the earlier Play lint-cancellation gap is closed. Inspected reports: Play, SHA-256
f742b9dc46c58a89139068b7850f23029763ac243f64e843a50176e395c95e69; third-party, SHA-2560a5cb3a86fe8e0a98d2b3582cbf15c0625502b24c815c74607237c560b1b5b86.All four native cells passed ten invocations with zero skips. Debug 4K and 16K each ran two original cases plus seed and verifier. Release 4K and 16K each passed the minified binding case. Debug receipts establish distinct processes 5517→5556 and 9151→9191, seed-process exit, unchanged installation/storage/source/nonce, original expiry, acknowledged raw grant absence and preserved profile/pairing/header controls. Actual R8, four-ABI packaging and strict 16K alignment passed. Inspected native artifacts: Debug 4K, Debug 16K, Release 4K, Release 16K.
Wear tests and lint passed 284 tests with zero failures, errors or skips; reports, SHA-256
67df0ea2b9bc72cb759983de36ccbbdec5c303cf8d30087d0115cfbbfb37f69d. Ktlint passed.Overall CI is not green. Complete job metadata for run 34832107763 also shows UI E2E shard 1/7 failed, with cause not established here, and the aggregate gate failed. The separate Docker-helper assertion expects the retired kitchen-sink fixture while the inherited baseline selects plugin-e2e-fixture (355 other tests passed). Existing follow-ups are 148129 and 148118; neither is included or endorsed by this PR.
ClawSweeper Revision 18, completed September 23 at 06:21 UTC, reviews exact head
1a8126346f43bfcb387e4b52dc6a6876eaba8a7band remains blocked/needs-human. It reports no actionable source finding but retains existing-install compatibility and the separately requested review hold. This replaces the stale statement that no current-head verdict was available. Fresh browser setup, installed-old-APK preservation and inspected before/after Access screenshot evidence remain unperformed. Profiles/pairing/settings/service headers/WARP and screenshot rendering in chat and PR have not been qualified through those manual flows.Native execution uses Android 36 x86_64 emulators; four-ABI packaging is separate. Release executes installed app code in a self-instrumented fixture. Same-install restart with synthetic grants does not prove an installed-prior-version upgrade, live IdP/browser return, physical-device behavior or UI delivery. The restart fixture has no active sockets; separate wire tests supply managed transport retirement/drain proof.
Sign out removes OpenClaw's Access grant; it does not log out of the identity provider. Durability proof covers acknowledged Sign out, without establishing pre-acknowledgement crash atomicity. Merge and the dedicated user-directed security review remain held; these receipts are not overall merge or security clearance.