Repository navigation
Support HTTP Custom AI endpoints for local and LAN servers - #30
marufmoinuddin wants to merge 7 commits into
Conversation
smnexstudio
left a comment
There was a problem hiding this comment.
Please implement the suggested changes, address the remaining security requirements, and resolve any build failures. Ensure the existing functionality and tests remain intact, and verify that the project builds successfully before submitting the updated PR.
…m-local-endpoints-v060
Security redesignThe implementation now restores Android’s platform cleartext block while isolating the LAN HTTP exception:
The branch also separates cloud and LAN endpoint/model/credential settings, supports optional LAN authentication without cloud-key fallback, preserves base-path and pasted
Validation and scopeFresh local checks reported for the integrated redesign:
The eight new socket-transport tests cover POST/path handling and optional authorization; isolation of 301/302/303/307/308 redirects; fixed-length and chunked response limits; chunk decoding; public-address rejection; ambiguous/duplicate framing rejection; and cancellation. The initial cancellation failure and subsequent correction are documented. Earlier commits also received a fresh six-module JVM run totaling 493 passing tests, followed by a separate settings-module run of 61 passing tests after additional settings coverage. These are historical, commit-specific results—not a fresh full-project run for A separately inspected existing debug APK passed ZIP-integrity and APK Signature Scheme v2 checks and contained a network-security configuration with platform cleartext blocking and system certificate trust only. Its exact source commit was not established, so that inspection does not verify that No Android/WebView runtime result is claimed for this redesign. Earlier environment preparation did not produce an emulator test run, and emulator work has stopped. The earlier Xiaomi 15 statement should not be treated as verification of the current commit. Review focus and remaining verificationPlease review whether the restored platform cleartext policy and isolated LAN transport address the WebView downgrade concern without weakening cloud HTTPS enforcement. The new HTTP/1.1 transport also needs security and compatibility review. It intentionally rejects unsupported compression and duplicate headers, connects to one validated DNS answer, and does not pool connections or automatically replay requests. DNS resolution relies on the system resolver. Full-project CI for The redesign is ready for review, but this update does not claim merge readiness. Thank you for the detailed feedback you provided earlier. It helped strengthen the separation between cloud and LAN endpoints. |

Summary
Android network policy
The network-security base config permits cleartext at platform level; local-host restriction is enforced in endpoint validation and the dedicated HTTP client, not by the XML policy. System certificate trust is retained. Local hostname classification is syntactic, not a DNS/private-address verification.
Scope
Independent of the whole-page scan; based on upstream main 48ab2e4 (0.6.0).
Validation
In the combined integration worktree on the VPS: