Skip to content

Epic: Security & compliance baseline for SOC 2 / ISO 27001 audit #1803

Closed

Description

@yannickmonney

Goal

Close the control gaps a SOC 2 Type II / ISO 27001 audit will test, by the audit deadline. Each child issue maps to one or more Trust Services Criteria / Annex A controls. This epic is the single traceability anchor for the auditor (control → issue → PR → test/doc).

Control mapping (auditor evidence index)

Child Control area SOC 2 TSC ISO 27001:2022 Annex A
#1498 Vulnerability mgmt / patch SLA CC7.1, CC8.1 A.8.8 technical vuln mgmt
#1502 Session management / idle timeout CC6.1 A.8.5 secure authentication
#1505 Audit logging integrity & retention CC7.2, CC7.3 A.8.15 logging, A.8.16
#1506 Federated identity / SSO CC6.1, CC6.2 A.5.16 identity mgmt
#1508 Strong authentication (phishing-resistant 2FA) CC6.1 A.8.5
#1509 Data-at-rest protection (PII posture) CC6.7 A.8.24 cryptography
#1566 Brute-force / lockout (auth UX) CC6.1 A.8.5

Prerequisite (already merged — evidence only)

Child issues (sequenced)

Wave 0 — immediately actionable (parallel):

Wave 1 — core access-control gaps:

Wave 2 — depends on Wave 1 review:

  • Feature: WebAuthn / Passkeys as second factor #1508 — WebAuthn / passkeys as a second factor + enrollment UI. Note: the passkey plugin + @simplewebauthn/* are not yet installed (new deps subject to Renovate's 90-day age policy — decide an exception first); requires Better Auth schema regen.

Related auth-UX (secure default):

Definition of done

  • Every child closed with a linked PR.
  • Each control has at least one automated test or a documented manual-verification procedure the auditor can re-run.
  • This control→evidence table is kept current (control → issue → PR → test/doc).

Activity

  1. self-assigned this
    on Jun 1, 2026
  2. added
    priority: high
    service: platform
    epic
    on Jun 1, 2026
  3. yannickmonney commented on Jun 2, 2026

    @yannickmonney
    ContributorAuthor

    Status update — control → issue → PR → evidence

    Child Control (SOC 2 / ISO) PR State Test / doc evidence
    #1509 PII at-rest (Option B) CC6.7 / A.8.24 (prior) ✅ closed docs/.../security/cryptography.md; OAuth tokens encrypted at rest
    #1507 TOTP 2FA (prereq) CC6.1 / A.8.5 (prior) ✅ closed enrollment/sign-in/backup-code e2e
    #1505 Audit-log hardening CC7.2/7.3 / A.8.15-16 #1820 ✅ merged integrity_check.test.ts (tampered chain → critical alert); nightly cron + bell/Slack alert; hardening doc (en/de/fr)
    #1506 Generic OIDC CC6.1/6.2 / A.5.16 #1809 ✅ merged (prior) generic_oidc/adapter.test.ts
    #1502 Session idle timeout CC6.1 / A.8.5 #1819 🟢 green, review-ready resolver + watchdog + editor tests; org policy × env-backstop
    #1498 CVE gate + Renovate CC7.1/8.1 / A.8.8 #1821 🟢 green, review-ready .trivyignore accept-risk (xlsx/lodash) + security-update-flow doc; gate stays CRITICAL pending HIGH-backlog clearance
    #1566 Lockout UX CC6.1 / A.8.5 #1811 ✅ closed advisory shipped; emailed-owner alert declined (no email transport — front with an IdP)
    #1508 WebAuthn / passkeys CC6.1 / A.8.5 #1822 🟢 green, review-ready enroll/sign-in/revoke UI + sign-in; passkey satisfies enforced 2FA (helper test); passkey_added/passkey_removed audit entries. Pre-merge: WebAuthn device QA

    Supporting: #1823 (vitest 4.1.8) merged — cleared a critical advisory (GHSA-2h32-95rg-cppp) that was breaking the bun-audit gate repo-wide.

    Remaining to fully close the epic: review + merge #1819 / #1821 / #1822 (the latter after a WebAuthn device pass), then tick each child's acceptance-criteria boxes against its PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

epicpriority: highsecurityservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions