Skip to content

RepoDNA v1.0.1 — Security & Reliability Update

Choose a tag to compare

@Cihanak1 Cihanak1 released this 30 Nov 19:50
· 15 commits to main since this release
e445211

RepoDNA v1.0.1 — Security & Reliability Update

Recommended security and reliability release closing all 15 security findings (SEC-01–SEC-15) and 4 correctness findings (COR-01–COR-04) identified during independent post-v1.0.0 verification.

Upgrade Guidance for v1.0.0 Users

All v1.0.0 users should upgrade to v1.0.1:

pip install --upgrade https://github.com/Cihanak1/RepoDNA/releases/download/v1.0.1/repodna_engine-1.0.1-py3-none-any.whl
repodna --version
repodna start --open-browser
  • Local API Authentication: repodna start now generates a per-launch cryptographic REPODNA_API_TOKEN by default. The bundled same-origin WebUI bootstraps via a distinct HttpOnly; SameSite=Strict browser session cookie (never exposing REPODNA_API_TOKEN in cookies or URLs). Automation clients calling /api/* directly should pass Authorization: Bearer <token> or X-RepoDNA-Token: <token>.
  • CLI Command Note: Use repodna start --port 8000 (replacing the erroneous repodna serve note in v1.0.0).
  • Immutability: The v1.0.0 tag (65f02ba) and its release artifacts remain untouched for audit traceability.

Security & Reliability Highlights

  • Workspace & MCP Authorization (SEC-01, COR-01): Fail-closed authorized_roots enforcement across all 5 MCP workspace tools (allowed_roots) and all REST workspace routes (including cached freshness checks), plus canonical resolved root propagation to SymbolIndexer.
  • Contract & Historical Evidence Containment (SEC-02, SEC-03): Symlink, containment, size, and binary guards on architecture contracts (safe_read_evidence_file); centralized sensitive-path blocking (.env*, private keys, credential files/dirs) on Git historical blobs.
  • Unified Secret Redaction & Bounded Expansion (SEC-04, SEC-11, SEC-12): Centralized redact_secrets_unified (full multiline PEM blocks, modern PAT/API keys, Bearer headers, DB URI credentials, quoted/unquoted assignments) across Brain, History, Legacy Context, Agent Context, REST, and MCP; bounded safe_read_evidence_file in ProgressiveContextExpander.
  • Local API Auth, Host/Origin & VS Code Identity (SEC-05, SEC-13, SEC-14): Per-launch session token, exact-origin validation, strict Host validation, HMAC-SHA256 instance_proof handshake verification and redirect: 'error' in VS Code extension, localResourceRoots: [] in Webview, and realpathSync path containment.
  • Bounded YAML, OpenAPI Containment, Live SQLite Recovery & Plugin ReDoS (SEC-07–SEC-10): Alias-disabled bounded YAML loader across all untrusted repo YAML inputs, symlink/containment guards on OpenAPI discovery, non-blocking exclusive revalidate-quarantine-rebuild recovery in LiveStatePersistence, and structural linear-time regex validation.
  • Correctness, Cache Lifecycle & UI Stability (COR-02–COR-04): Closed MCP/REST/Workspace snapshot freshness blind spots, integrated quality_reports into SQLite cache migration/clear/quota/eviction/stats, and fixed frontend /api/health mount hydration race.
  • Supply Chain, SBOM & Distribution (SEC-06, SEC-15): Transitive CycloneDX 1.5 SBOM (68 components, 42 dependency nodes, including watchfiles and exact package-lock.json versions with RFC %40 PURLs), 0 CVEs via pip-audit and npm audit --omit=dev, SHA-pinned GitHub Actions, root action.yml with branding: and self-contained install, and a 128×128 PNG VS Code extension icon.

Verification Summary

  • Main Commit: e44521187219146a9b82aba585eb710e8d820193 (300 commits, PR #15 standard merge)
  • CI Status: PR #15 (46496911744) 8/8 PASS, Main CI 8/8 PASS
  • Independent Security Review: PASS (0 remaining Critical/High findings)
  • Installed Wheel & SDist Full E2E + 20-Run Playwright: PASS (20/20, 0 errors)
  • Genuine 60-Minute Live Soak: PASS (3600.53s, 50 analyses, 0 failures, rss_max=48.2 MB, 1,204 SSE events)
  • Large Repo Stress: PASS (504 real, 1,050 synthetic, 5,050 synthetic files)
  • Held-Out AI Abstention: 91.67% File Recall@5, 86.67% (13/15) negative-task abstention
  • External Registries (PyPI, VS Code Marketplace, Open VSX, GHCR, GitHub Marketplace): NOT PUBLISHED (requires maintainer authorization)

Release Artifacts & SHA-256 Checksums

  • repodna_engine-1.0.1-py3-none-any.whl — 94fdd6826624ca7174ea6633df4a8adb05ca63160015e67228d24e82f00c990c
  • repodna_engine-1.0.1.tar.gz — e1da283a9ce3e3a701401f561c8724be950b3ac1ee4ba1bf2bdd2828a4858a6f
  • repodna-1.0.1.vsix — 8ecefa80438f4332262b2b79bde68cae5d2a4926323dad72d5291113902c6f4c
  • repodna-1.0.1.cdx.json — 8b7d8f788b0452c26d56cb1d45e3ff8b674ffa21b9f35b682f4025061158deed
  • SHA256SUMS.txt