Repository navigation
Closed
Labels
epicTracking epic spanning multiple issuespriority: highHigh prioritysecurityservice: platformPlatform service
Description
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)
- Feature: TOTP two-factor authentication for all users #1507 — TOTP two-factor authentication. Provides the second-factor primitive Feature: WebAuthn / Passkeys as second factor #1508 extends and the
two_factor_policygovernance type Feature: Session idle timeout (server-side enforcement + client watchdog) #1502 sits beside. Link the PR as audit evidence.
Child issues (sequenced)
Wave 0 — immediately actionable (parallel):
- Feature: Decide and implement PII field-level encryption policy #1509 — PII at-rest policy. Decision: Option B (document the Convex at-rest + TLS + RLS posture; field-encryption reserved for secrets). Docs/ADR only.
- Feature: Harden audit log (append-only guarantee, scheduled integrity check, retention) #1505 — Audit-log hardening: scheduled integrity-check cron (alert on failure) + append-only test. (Hash chain, manual verify, retention, signed checkpoints already exist.)
- Feature: Add CVE scanner to CI + security-only Renovate fast-track #1498 — Ratchet the CVE gate CRITICAL→HIGH once the pre-existing HIGH backlog clears; resolve the
xlsx(SheetJS) parse-path advisory (replace parser or scoped-suppress + compensating control).
Wave 1 — core access-control gaps:
- Feature: Session idle timeout (server-side enforcement + client watchdog) #1502 — Org-admin session idle timeout: governance policy + server-side enforcement + client watchdog.
- Feature: Generic OIDC identity provider (Keycloak, Auth0, Okta, Google) #1506 — Generic OIDC identity provider (Keycloak / Auth0 / Okta / Google) via
.well-knowndiscovery, alongside the existing Entra adapter.
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):
- Bug: Login rate limiting locks account silently — user receives no progressive warning during failed attempts #1566 — Login lockout: keep uniform errors (no attempts-remaining counter — preserves the anti-enumeration mitigations); optionally add an emailed security alert to the account owner on lockout.
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).
Metadata
Metadata
Assignees
Labels
epicTracking epic spanning multiple issuespriority: highHigh prioritysecurityservice: platformPlatform service
Activity
feat(platform): server-side session idle timeout
docs(pii): document PII at-rest posture (Option B)
feat(platform): add generic OIDC identity provider adapter
yannickmonney commentedon Jun 2, 2026
Status update — control → issue → PR → evidence
docs/.../security/cryptography.md; OAuth tokens encrypted at restintegrity_check.test.ts(tampered chain → critical alert); nightly cron + bell/Slack alert; hardening doc (en/de/fr)generic_oidc/adapter.test.ts.trivyignoreaccept-risk (xlsx/lodash) + security-update-flow doc; gate stays CRITICAL pending HIGH-backlog clearancepasskey_added/passkey_removedaudit entries. Pre-merge: WebAuthn device QASupporting: #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.