v1.0.12 · Release snapshot

Documentation comes from this release commit, without inheriting newer content. Commit: 35589c6fda.

Security scanning (rnsec)

We use rnsec to scan the React Native / Expo codebase for common security issues.

Commands

bun run security:scan

Writes rnsec-report.json / rnsec-report.html at the repo root (gitignored) (bunx rnsec scan). Config lives in .rnsec.json. rnsec exits non-zero when it reports a finding, which fails the hook / CI job; accept a risk by adding it to ignoredRules or exclude with a reason below. bunx rnsec scan --changed-files <ref> scans only changed files.

Where it runs

  • lefthook pre-commit (security job): a finding aborts the commit. See lefthook.yml.
  • GitLab validate job: after install + typecheck and before the unit tests; both iOS build jobs need it. The report is kept as the rnsec-report.html artifact. See ci-cd.md.

Accepted risks (ignoredRules)

RuleWhy we accept it
IOS_ATS_DISABLEDNSAllowsArbitraryLoads was required by the former IronSource LevelPlay networks; kept for review until the AdMob mediation networks are chosen — see app.config.ts and admob-integration.md
ANDROID_EXPORTED_COMPONENTExpo MainActivity must be exported for the launcher
ANDROID_INTENT_FILTER_PERMISSIVERequired for magicpiano:// / exp+magic-piano deeplinks; URLs are validated in JS
THIRD_PARTY_SDK_RISKAppsFlyer is intentional (attribution / ROI360); Segment hits on unrelated files are false positives

Exclusions

  • **/ios/Pods/** — third-party ad OM SDK JS (Function('return this'))
  • **/song-config.ts — public publish-to-web Google Sheet IDs, not credentials
  • tools/**, packages/*/visualizer/** — desktop/dev tooling that never ships in the app; also build output (**/build, **/dist, **/out, **/release)

App hardening helpers

HelperPurpose
safeErrorMessageLog only Error.message / String(error) — never raw error objects
fetchWithTimeoutAbortController-backed fetch timeouts
openHttpsUrlAllowlist https: before Linking.openURL
expo-crypto getRandomValuesSecure random on RN (do not use the Web crypto global — Biome-banned)