Repository navigation
Hardening: security, shell reliability, CI and docs (in parts) - #21
Merged
Merged
Conversation
…shell timeouts - Force-stop built "am force-stop <pkg>" from rule text with no validation, so a rule (or an imported recipe) could inject shell commands. Names must now match a strict package-name pattern - The "Plugin API" switch only gated outgoing broadcasts; the exported PluginReceiver ignored it, so any installed app could fire triggers or run rules even when the user had turned it off. It now checks the switch - Elevated.drain read the process output to EOF before applying its timeout, so a hung su/sh blocked the caller forever; output is now read on a helper thread and the process is destroyed on timeout. hasSu() shares the same timeout and is cached for 30 s instead of spawning su on every call - RuleLogic gains pure helpers (package name, http(s) URL, host-only log) with tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KBS1KApo9NfNebojzAwAS2
…connects
- startsWith("http") also accepted "httpfoo://"; only http:// and https:// are used now
- The run log stored the whole URL, including query-string tokens; it stores the host
- The connection is now closed in a finally block even when the request throws
- Rejected URLs are logged instead of silently ignored
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBS1KApo9NfNebojzAwAS2
…y signing - PRs build only the stable release; branch and tag builds build everything - Gradle cache (read-only on PRs), 40 min timeout, newer PR pushes cancel older runs - Tag releases on wized2/Latch fail without signing secrets; forks fall back to debug signing - apksigner verifies the APK whenever a release key is present - Test reports are uploaded when the build fails Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KBS1KApo9NfNebojzAwAS2
…el; bump to 0.8.0 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KBS1KApo9NfNebojzAwAS2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Latch hardening (0.7.0 → 0.8.0)
Merging to main and tagging
v0.8.0publishes a signed release. Needs the signing secrets onwized2/Latch.