Skip to content

5. System Analysis & Task Plan

Conventions

  • FR-xx = functional requirement; NFR-xx = non-functional; US-xx = user story.
  • Suggested task code: [Role]-[Module]-[number], e.g. DEV-M2-01, DB-M6-02.
  • Priority: P0 (mandatory, blocking) · P1 (high) · P2 (nice to have).

Audience

RoleUse forMain sections
BAFinalize requirements, stories, ACRequirements, BA
Tech / DevBreak module/API tasksDev, API
DBSchema, migration, RLSDB
QCTest plan, test casesQC
DevOpsInfra, CI/CD, HA, KMSDevOps
SecurityThreat model, controlsSecurity

Functional requirements (FR)

CodeDescriptionModule
FR-01Create subject and generate pii_refM1
FR-02Read PII via gateway with purposeM2,M3,M4
FR-03Write/update PII, encrypt on storeM2,M3
FR-04Exact lookup (blind index)M3
FR-05Per-field encryption; key rotationM3
FR-06Mask data by roleM4
FR-07RBAC + RLS + purpose checkM5
FR-08Four-eyes approvalM5
FR-09Immutable audit loggingM6
FR-10Verify audit chain integrityM6
FR-11Anomaly detection & alertingM7
FR-12DSAR per Decree 13/2023M8
FR-13Erase via crypto-shredM3,M8
FR-14Export compliance evidenceM6,M8

Non-functional requirements (NFR)

CodeDescriptionMetric
NFR-01Gateway performancep99 added latency < ~40ms
NFR-02Data scaleStable at > 1M subjects
NFR-03AvailabilityHA; defined RTO/RPO
NFR-04Audit integrityNo lost records; tamper detection
NFR-05Key securityKeys separate from data & DBA
NFR-06Data residencyWithin Decree 13/2023 scope
NFR-08TraceabilityReconstruct one record’s history in minutes

Work breakdown by role

Business Analyst (BA)

TaskContentPriority
BA-01Valid purpose catalogP0
BA-02Roles & permission matrixP0
BA-03Masking rulesP1
BA-04Four-eyes rulesP1
BA-05DSAR flow & Decree 13/2023 deadlinesP0
BA-06Acceptance criteria (AC) for FRsP0

Tech / Developer

TaskContentPriority
DEV-M6-01Audit service: Append + hash-chainP0
DEV-M2-01Gateway skeleton: authn, routingP0
DEV-M2-02Reveal/Store/Update/LookupP0
DEV-M3-01Envelope encryption, AES-GCMP0
DEV-M3-02Blind index + normalizationP1
DEV-M5-01Authorize (RBAC+purpose), default-denyP0
DEV-M5-02RLS hook + four-eyes workflowP1
DEV-M4-01Policy-driven masking engineP1
DEV-M7-01Detector + alertingP1
DEV-M8-01DSAR orchestrator + ExportEvidenceP1
DEV-MIG-01Dual-write + backfill toolingP1

Database (DB)

TaskContentPriority
DB-M1-01Schema subject, subject_field + indexP0
DB-M6-01Schema pii_audit; revoke UPDATE/DELETEP0
DB-M6-02Separate audit store instance/credentialsP0
DB-M5-01Schema role, role_grant, purposeP0
DB-M5-02RLS policies from claimsP1
DB-ENC-01Enable TDE; test encrypted-column perfP0
DB-PERF-01Optimize indexes at > 1M recordsP1
DB-MIG-01Migration + rollback + reconciliationP1

Quality Control (QC)

CodeScenarioExpected
TC-AUTH-1Reveal without purpose403 DENY + audit
TC-RBAC-1Role lacks read permission403 DENY
TC-RLS-1Read subject out of scope403 DENY
TC-4EYES-1Bulk reveal not approved202 PENDING
TC-MASK-1CS agent reads phoneReturns masked value
TC-AUD-1Manually edit an audit rowVerifyChain reports broken
TC-SHRED-1DSAR eraseSubsequent decryption fails
TC-PERF-11000 reveals/secp99 within NFR-01

DevOps / SRE

TaskContentPriority
OPS-01Stand up KMS/HSM or Vault (VN residency)P0
OPS-02HA infra for M2P0
OPS-03DB cluster + separate audit storeP0
OPS-04CI/CD + security scanningP1
OPS-05Secret/mTLS management, auto-rotationP0
OPS-07Encrypted backup & recovery drillsP1
OPS-08Test fail-closed behaviorP0

Security

TaskContentPriority
SEC-01System-wide threat modelP0
SEC-02Review crypto design (nonce, KEK/DEK)P0
SEC-03Review authz model & four-eyesP0
SEC-04Gateway hardening (input, rate-limit, SSRF)P1
SEC-05PII-out-of-log/error/URL policyP0
SEC-06Third-party pentest planP1
SEC-07Incident response & notification processP1

Suggested phase planning

PhaseMain work clusterLead roles
P1Survey, BA finalize purpose/roles, DB base schemaBA, DB
P2Audit (M6) + gateway skeleton (M2)Dev, DB, DevOps
P3Encryption (M3), masking (M4), KMS, migrationDev, DB, DevOps
P4Access control (M5), RLS, four-eyesDev, Security, BA
P5Monitoring (M7), alerts, drillsDev, DevOps, Security
P6DSAR (M8), compliance, pentest, access reviewBA, Security, DPO