fix(android): forward-split auth and EPUB security from PR 108 - #113
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (61)
📝 WalkthroughWalkthroughThe PR adds cleartext-origin consent across Android, TV, pairing, and media authentication; introduces scope-aware credential refresh safeguards; enforces bounded reader and EPUB extraction; and isolates sanitized EPUB content through a restricted WebView asset pipeline. ChangesAuthentication and cleartext consent
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant SetupViewModel
participant CleartextConsentStore
participant MediaAuthSession
participant PlayerOkHttpClient
participant EPUBWebView
SetupViewModel->>CleartextConsentStore: check or approve HTTP origin
CleartextConsentStore-->>SetupViewModel: approval state
SetupViewModel->>MediaAuthSession: create session with consent
MediaAuthSession->>PlayerOkHttpClient: authorize approved transport
PlayerOkHttpClient->>EPUBWebView: serve scoped EPUB resources
Possibly related PRs
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7f45f69 to
a07066a
Compare
1ace4ea to
06a775a
Compare
Stack
split/108-a-supply-chain)Scope
A coherent auth/origin/cleartext + EPUB-security vertical slice:
Independent security-review corrections
The initial read-only review found five Important issues; this branch closes all five with regressions:
AuthScopeSnapshotand rejected guest refreshes cannot expose the saved owner;Two follow-up reviews identified and this branch also closes:
http:targets fail closed;DataSpecrequests and every OkHttp redirect/follow-up validate the final cleartext origin before credentials or transport.Final independent follow-up security review of the final behavior (rebased code commit
a07066a1): Critical 0 / Important 0 / Minor 0 — Ready: Yes.Verification
scripts/check-build-supply-chain.sh./gradlew -Dorg.gradle.jvmargs="-Xmx4g -Dfile.encoding=UTF-8" testDebugUnitTest :androidApp:assembleRelease :androidTvApp:assembleRelease --max-workers=2 --no-daemongit diff --check; clean worktreeTraceability, conflict decisions, original PR108 commit references, and verification history are in
docs/notes/2026-07-27-pr108-slice-b-traceability.md.Summary by CodeRabbit
New Features
Bug Fixes
Tests