Skip to content

Latest commit

 

History

History
291 lines (202 loc) · 15.2 KB

BestPracticesChecklist.md

File metadata and controls

291 lines (202 loc) · 15.2 KB

AOSSIE Best Practices Checklist


Score Summary

Category Met N/A Total Status
Basics 8 0 8 🟢
Change Control 6 0 6 🟢
Reporting 7 0 8 🟡
Quality 10 1 11 🟢
Security 2 7 9 🟢
Analysis 3 3 7 🟡
Total 36 11 49 95%

36 of 38 applicable criteria met (11 marked N/A, 49 total).

Legend: [x] met · [ ] not met · [~] N/A or partial (justified, excluded from the percentage). Priority: 🔴 MUST · 🟡 SHOULD · 🔵 SUGGESTED.


🏗️ Basics

Project Website & Documentation

Other Basics

  • 🔴 discussion — Project has a searchable, URL-addressable discussion mechanism (GitHub Issues, Discord with archive, mailing list, etc.) that doesn't require proprietary client software.

  • 🟡 english — Documentation is provided in English and English bug reports/comments are accepted.


🔄 Change Control

Version Control

Version Numbering

Release Notes

  • 🔴 release_notes — Each release includes human-readable release notes summarizing major changes. Raw git log output is NOT acceptable.

    • Evidence URL: [https://github.com/AOSSIE-Org/Resonate/releases]
  • 🔴 release_notes_vulns — Release notes identify every publicly known vulnerability (with CVE) fixed in that release.

    • Evidence URL: [https://github.com/AOSSIE-Org/Resonate/releases]

🐛 Reporting

Bug Reporting

  • 🔴 report_process — A bug-reporting process exists (e.g., GitHub Issues link in README).

  • 🟡 report_tracker — An issue tracker (e.g., GitHub Issues) is used to track individual bugs.

  • 🔴 report_responses — A majority of bug reports submitted in the last 2–12 months have been acknowledged (response ≠ fix).

  • 🟡 enhancement_responses — More than 50% of enhancement requests in the last 2–12 months have received a response.

  • 🔴 report_archive — Reports and responses are publicly archived and searchable (GitHub Issues satisfies this).

Vulnerability Reporting

  • 🔴 vulnerability_report_process — A vulnerability reporting process is documented (e.g., SECURITY.md).

  • 🟡 vulnerability_report_private — If private vulnerability reporting is supported, the method for private submission is documented.

    • Evidence URL: [ ] N/A — Justification:
  • 🔴 vulnerability_report_response — Initial response to any vulnerability report received in the last 6 months was within 14 days.

    • Self-certification note: [ ] N/A — Justification (no reports received):[no reports received]

✅ Quality

Build System

  • 🔴 build — If the project requires building, a working build system exists that can auto-rebuild from source.

    • Evidence URL: [https://github.com/AOSSIE-Org/Resonate/actions] N/A — Justification (interpreted language / no build step):
  • 🔵 build_common_tools — Common build tools are used (npm, pip, cargo, make, gradle, etc.). (SUGGESTED)

    • Evidence URL: [https://github.com/AOSSIE-Org/Resonate/actions] N/A
  • 🟡 build_floss_tools — The project can be built using only FLOSS tools.

    • Note: [ ] N/A

Automated Testing

  • 🔵 test_invocation — The test suite can be invoked in a standard way for the language (e.g., npm test, pytest, cargo test). (SUGGESTED)

  • 🔵 test_most — The test suite covers most code branches, input fields, and functionality. (SUGGESTED)

    • Estimated coverage %:[85%]

New Functionality Testing Policy

  • 🔴 test_policy — The project has a general policy that new functionality must include tests in the automated test suite.

    • Evidence (CONTRIBUTING reference or informal policy):[#847]
  • 🔴 tests_are_added — Evidence exists that the test policy has been followed in recent major changes (e.g., PRs include tests).

    • Evidence URL (recent PR with tests):[#847]
  • 🔵 tests_documented_added — The test policy is documented in contribution instructions. (SUGGESTED)

Linting / Warning Flags

  • 🔴 warnings — At least one linter or compiler warning flag is enabled (ESLint, Pylint, clippy, golangci-lint, Slither for Solidity, etc.).

    • Tool used:[flutter_lints]
  • 🔴 warnings_fixed — Warnings from the linter are addressed (not suppressed without reason).

    • Note:
  • [~] 🔵 warnings_strict — Project uses maximum strictness in linter config where practical. (SUGGESTED)

    • Note:

🔐 Security

Secure Development Knowledge

  • 🔴 know_secure_design — At least one primary developer knows how to design secure software (familiar with OWASP, threat modeling, secure-by-default principles).

    • Self-certification note:
  • 🔴 know_common_errors — At least one primary developer knows common vulnerability types for this software's category and how to mitigate them (e.g., injection, XSS, reentrancy for Solidity, prompt injection for AI).

    • Self-certification note:

Cryptography (mark N/A if project does not handle cryptography)

  • [~] 🔴 crypto_published — Only publicly reviewed cryptographic protocols/algorithms are used by default.

    • Note: [ ] N/A
  • [~] 🟡 crypto_call — Project calls an established crypto library rather than reimplementing crypto functions.

    • Library used: [ ] N/A
  • [~] 🔴 crypto_working — No broken algorithms (MD4, MD5, single DES, RC4, Dual_EC_DRBG) used unless required for interoperability (must be documented).

    • Note: [ ] N/A
  • [~] 🔴 crypto_keylength — Key lengths meet NIST 2030 minimums by default.

    • Note: [ ] N/A
  • [~] 🔴 crypto_password_storage — Passwords for external users are stored as iterated salted hashes (Argon2id, bcrypt, scrypt, PBKDF2).

    • Note: [ ] N/A — Justification (project doesn't store passwords):
  • [~] 🔴 crypto_random — Cryptographic keys and nonces are generated using a CSPRNG; insecure generators (Math.random, rand()) are NOT used for security purposes.

    • Note: [ ] N/A
  • [~] 🟡 delivery_unsigned — Cryptographic hashes are NOT retrieved over plain HTTP without a signature check.

    • Note:

🔬 Analysis

Static Code Analysis

  • 🔴 static_analysis_fixed — All medium+ severity vulnerabilities found by static analysis are fixed in a timely manner after confirmation.

    • Note: [ ] N/A
  • 🔵 static_analysis_common_vulnerabilities — The static analysis tool includes checks for common vulnerabilities in the language/environment (e.g., eslint-plugin-security, bandit, Slither). (SUGGESTED)

    • Tool + ruleset: [ ] N/A
  • 🔵 static_analysis_often — Static analysis runs on every commit or at least daily (CI integration). (SUGGESTED)

    • Evidence URL: [ ] N/A

Dynamic Code Analysis

  • 🔵 dynamic_analysis — At least one dynamic analysis tool is applied before major releases (fuzzer, web app scanner like OWASP ZAP, etc.). (SUGGESTED)

    • Tool used: [ ] N/A — Justification:
  • [~] 🔵 dynamic_analysis_enable_assertions — Dynamic analysis / testing runs with assertions enabled (not just production mode). (SUGGESTED)

    • Note:
  • [~] 🔴 dynamic_analysis_fixed — Medium+ severity vulnerabilities found by dynamic analysis are fixed in a timely manner.

    • Note: [ ] N/A
  • [~] 🔵 dynamic_analysis_unsafe — If the project uses memory-unsafe languages (C/C++), memory safety tools (Valgrind, AddressSanitizer) are used. (SUGGESTED)

    • Note: [ ] N/A — Justification (project uses memory-safe languages):

📎 Project-Specific Notes

Resonate is a Flutter/Dart mobile app (Android + iOS) on Appwrite (auth, DB, storage, functions, Messaging for push), LiveKit (WebRTC audio) and optionally Meilisearch. No web target, no contracts, no server code here — backend lives in Resonate-Backend.

Tooling & Quality

  • warnings — Dart analyzer via analysis_options.yaml: flutter_lints (103 rules) + custom_lint plugin, which activates riverpod_lint. Run both flutter analyze and dart run custom_lint; the former does not execute plugin lints.
  • warnings_fixed — two documented suppressions: invalid_annotation_target: ignore (freezed) and generated files excluded.
  • warnings_strict — not met. linter: rules: is empty and no strict language mode (strict-casts, strict-inference, strict-raw-types) is enabled.
  • static_analysis_common_vulnerabilities — Dart has no bandit/eslint-plugin-security equivalent. Cite flutter analyze + dependency scanning (Dependabot).
  • static_analysis_often — not met. run_tests.yml runs only flutter test. Add analyze + custom_lint steps.
  • test_invocation — flutter test, 94 test files, run in CI.
  • test_most — the % here is an estimate, not measured. Use flutter test --coverage before citing it.
  • build_floss_tools — Android toolchain is fully FLOSS; iOS release builds need macOS + Xcode, so annotate as Android-only.

Dynamic Analysis

  • dynamic_analysis — none applied. ZAP is inapplicable (no web frontend). Options by value: package:integration_test on device (no integration_test/ exists; the LiveKit/realtime/background-call paths are unreachable by widget tests), crash reporting (no Crashlytics or Sentry at all), MobSF for APK scanning, leak_tracker + DevTools profiling.
  • dynamic_analysis_enable_assertions — met. Dart keeps assert() in debug/profile; flutter test runs debug, so the whole suite runs with framework assertions on.
  • dynamic_analysis_unsafe — N/A for our code (Dart, no FFI), but the binary bundles native C/C++ via ffmpeg_kit_flutter_new, whisper_flutter_new and WebRTC. Justification: mitigated by keeping those deps patched, not by running ASan ourselves.

Security / Backend

  • crypto_* — no crypto implemented here. Appwrite Auth hashes passwords server-side (Argon2 by default — confirm on your instance); LiveKit handles media (DTLS-SRTP). Caveat: dart:math Random() is not a CSPRNG (Random.secure() is) — it's used only for display identifiers today.
  • delivery_unsigned — open issue. constants.dart hardcodes http:// for Appwrite, LiveKit, Meilisearch and storage URLs; only the host is --dart-define-able, so production builds still use plain HTTP. meilisearchApiKey defaults to myMasterKey in source.
  • know_common_errors — relevant classes are mobile + realtime: token storage (mitigated — flutter_secure_storage for session material, GetStorage only for prefs), Appwrite collection permissions, LiveKit token scope/expiry, deep-link and OAuth-callback hijacking, mic/media runtime permissions, PII in logs. Evidence: SECURITY.md, PRIVACY-POLICY.md.
  • Backend hardening belongs in the backend repo's checklist — link across, don't duplicate.

Release

  • version_unique/version_semver — pubspec.yaml 3.0.0+7: SemVer name + build number (Android versionCode, iOS CFBundleVersion), which must increase every upload. Enforced on release PRs by version-check.yml, which compares version: against the base branch and fails if the build number did not go up.
  • Artifacts are signed by construction (Play App Signing / Apple signing).

Open Items

  1. Add flutter analyze + dart run custom_lint to CI → static_analysis_often.
  2. Add flutter test --coverage → replaces the estimate in test_most.
  3. Make endpoint schemes configurable / default https://, drop the default Meilisearch key → delivery_unsigned.
  4. Add integration_test/ and/or crash reporting → dynamic_analysis.
  5. Decide on strict analyzer modes → warnings_strict.

This checklist complements OpenSSF Scorecard (auto-detected checks) and is inspired by the OpenSSF Best Practices Badge passing criteria.