Repository navigation
feat(android): retire Access ownership before cleartext admission - #156251
vincentkoc wants to merge 1 commit 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. |
|
Codex review: needs changes before merge. Reviewed October 7, 2026, 10:46 PM ET / October 8, 2026, 02:46 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Android Access controller retires a profile’s previous authorization before returning a cleartext admission result, including through captured Retry. Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR contains a distinct, useful capability absent from current main. No definite introduced defect was found, but this intermediate stack prefix remains unqualified by standalone execution. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Android ingress controller coordinates Cloudflare Access authorization, saved Gateway profiles, and connection admission. This controller remains dormant: app integration is handled by downstream work. flowchart TD
A[Gateway profile admission request] --> B{TLS configured?}
B -->|Yes| C[Existing Access admission]
B -->|No| D[Canonical profile Forget]
D --> E[Preserve peers or retire last grant]
E --> F[Check caller and replacement ownership]
F --> G[Return cleartext admission or cancel]
Technical reviewBest possible solution: Keep profile departure and origin retirement with their existing owners, qualify each intermediate prefix, and integrate the stack in dependency order. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds cleartext departure support to a dormant controller rather than repairing a demonstrated current-main user failure. Is this the best way to solve the issue? Yes: reusing canonical Forget and adding caller/profile completion checks is a narrow extension that preserves the existing retirement owner and shared-profile safeguards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d327a36593da. Provenance checked
TestingProof path: unit tests only. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +252, Other +24. Total +276 across 2 files. View PR surface stats
LabelsLabel 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 (1 earlier review cycle)
|
What problem does this solve?
A profile moving from TLS Access to a cleartext route must retire its old managed ownership before admission. Completion must still belong to the current caller and profile, without letting another profile's origin-wide retirement veto an otherwise valid departure.
Why this approach?
This eleventh slice of #147305 depends on #156250. Both ordinary prepare and captured Retry call the existing canonical Forget flow, then check caller cancellation/currentness and the absence of a replacement registration. There is no separate cleanup implementation or weakened Store retirement guard.
The two-file delta is 360 changed lines: production +26/-2; tests +292/-40. Nullable TLS is introduced only with this implemented capability. App activation and shared-browser reuse remain absent.
Evidence and remaining gates
git diff --checkpass. Standalone compile/runtime proof remains pending; original aggregate test results are historical only.