mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-02 18:15:31 +00:00
Release keystore passwords were hardcoded as string literals in `app/build.gradle.kts`, public to anyone who forks or clones the repo. Combined with a leaked keystore file (from a backup or CI compromise), that collapses two factors into one and lets an attacker sign arbitrary APKs as `com.rousecontext`. Release passwords are now resolved from, in order of precedence: 1. `ROUSE_RELEASE_STORE_PASSWORD` / `ROUSE_RELEASE_KEY_PASSWORD` env vars 2. `storePassword` / `keyPassword` keys in `.signing/release.properties` Both are absent from the tracked repo. A new `.signing/release.properties.example` template is committed so new clones see the expected format, and `.gitignore` now allows that one file while still ignoring the real `release.properties`, keystores, and any other signing artifacts. Resolution is lazy: non-release tasks (lint, unit tests, debug builds) do not require the env var or .properties file. A `taskGraph.whenReady` check produces a clear error message when a release-signing task is actually requested without credentials, instead of failing obscurely inside the Android signing task. Debug keystore password stays hardcoded on purpose — the debug key is not a secret. Docs updated in `docs/self-hosting.md`. Keystore files themselves are untouched (regenerating would force a user uninstall and burn ACME cert quota). |
||
|---|---|---|
| .. | ||
| auth-pages | ||
| design | ||
| notifications | ||
| screenshots | ||
| user | ||
| audit.md | ||
| device-test-report.md | ||
| e2e-status.md | ||
| overnight-plan-2.md | ||
| screenshot_audit_tab.png | ||
| screenshot_connected.png | ||
| screenshot_dashboard.png | ||
| screenshot_settings_tab.png | ||
| security-audit-2026-04-07.md | ||
| security-decisions.md | ||
| security.md | ||
| self-hosting.md | ||
| test-coverage-audit.md | ||
| workflow.md | ||