Updated November 23, 2026. This page now also covers Change & Configuration Management and Vulnerability & Patch Management, which used to be separate policies.
Secure Software Development Lifecycle (SDLC)
Purpose
Ensure that security is built into every stage of designing, building, and operating the Perfect Wiki application.
Scope
All code, infrastructure-as-code, and customer-facing changes to the Perfect Wiki service.
Phases
1. Design
- New features that handle sensitive data or expand the attack surface are threat-modeled informally: identify data flows, trust boundaries, authentication / authorization requirements, and abuse cases.
- Privacy-by-design: minimize data collected, prefer references over copies, scope data to the tenant.
2. Build โ secure coding standards
- TypeScript with strict types for all new backend code.
- Input validation via Zod schemas on every endpoint.
- Authentication and authorization enforced on every non-public endpoint via middleware (validateSessionId, validateUserHasAccessToOrganization, validateUserIsAdmin, role-specific variants).
- Output encoding / HTML sanitization for any user content rendered in HTML (sanitize-html).
- Parameterized queries via the database driver โ no string-built queries.
- Secrets never committed to source control; loaded from environment variables.
- Error handling: every endpoint is wrapped in try/catch and logs the error to Sentry; no stack traces or secrets are returned to clients.
3. Code review
- Material changes go through code review before merge.
- Reviewer specifically checks: authentication present, tenant scoping correct, input validated, output encoded, error handling complete, no secrets, no broken cryptography.
4. Test
- Automated type checking (yarn typecheck) gates every build.
- Manual functional testing on staging covering happy path, edge cases, and authorization boundaries.
5. Deploy
- Versioned, immutable container images deployed to production via the change-management process.
- Previous image retained for rapid rollback.
6. Operate
- Monitored via Sentry; vulnerabilities tracked per the Vulnerability & Patch Management section below; incidents handled per the Logging, Monitoring & Incident Response Plan .
Dependency management
- Dependencies are pinned in package.json / yarn.lock.
- Automated alerts for vulnerable dependencies (npm audit).
- Critical dependency updates expedited per vulnerability-management SLAs.
Change & Configuration Management
Purpose
Define how changes to Perfect Wiki production systems are proposed, reviewed, tested, deployed, and rolled back so changes do not compromise availability, security, or data integrity.
Scope
All changes to production application code, infrastructure configuration, cloud resources, third-party integrations, and customer-facing service behavior.
Policy
- All production changes are made via version control (Git). Direct, unversioned modifications to production are prohibited.
- Each change passes type checking and manual functional testing on the staging environment before promotion to production.
- Production deployments are made from versioned, immutable container images. The previous image is retained to enable rapid rollback.
- Changes with security or data-integrity implications require explicit approval by the CEO/CTO.
- Database schema changes use forward-compatible patterns (additive fields, no destructive deletions) and are tested on staging first.
- Production cloud configuration (access, network, storage policies) is changed via the DigitalOcean control panel or infrastructure-as-code only by Authorized Personnel; changes are recorded in the DigitalOcean account activity log.
- Emergency changes (security hotfixes, critical incident response) may bypass normal review but must be documented post-hoc within 1 business day with the same rigor.
- Changes that materially affect customer-facing behavior, security posture, or sub-processors are communicated to customers via the changelog, perfectwiki.com/status, or email as appropriate.
Rollback
If a change causes a production issue, the prior container image is redeployed and the change is reverted in version control. Data-side rollback uses the most recent backup per the BCDR plan.
Baselines & drift detection
- Production configuration baselines are captured in source control (Dockerfile, package.json, build scripts, infrastructure-as-code where used).
- The DigitalOcean account activity log records configuration changes on managed resources.
Vulnerability & Patch Management
Purpose
Define how Perfect Wiki identifies, evaluates, prioritizes, and remediates security vulnerabilities across its application code, dependencies, and infrastructure.
Scope
The Perfect Wiki application, its dependencies (npm packages, base container images, OS packages), its cloud infrastructure, and any externally reported security issues.
Sources of vulnerability intelligence
- Automated dependency advisories via npm audit.
- Base-image and OS-package advisories from the upstream maintainer and DigitalOcean.
- Sentry error monitoring (surfacing exploit attempts and security-relevant failures).
- Externally reported issues via [email protected] per the Vulnerability Disclosure page.
- Vendor security advisories from sub-processors.
Severity & remediation SLA
Severity is assigned using CVSS v3.1 and adjusted for exploitability and exposure of Perfect Wiki specifically.
- Critical (CVSS 9.0โ10.0): Patch or mitigate within 7 calendar days.
- High (7.0โ8.9): Within 30 days.
- Medium (4.0โ6.9): Within 90 days.
- Low (< 4.0): Within 180 days or accepted as a known risk with documented justification.
Process
- Vulnerability identified from one of the sources above.
- Triage by the CEO/CTO: confirm applicability, assign severity, capture tracking entry.
- Remediation: dependency upgrade, code patch, configuration change, or compensating control deployed via the normal change-management process (or as an emergency change for criticals).
- Verification: re-scan / re-test confirms the fix.
- Reporting: critical and high findings, and their remediation status, are tracked and available for customer review on request.
Penetration testing
Independent third-party penetration testing is not yet performed on a fixed cadence; we plan to add an annual external test as Perfect Wiki grows. Until then, dependency scanning and external bug reports cover this surface.
Anti-malware
- Production runtimes run on hardened DigitalOcean-managed hosts; no general-purpose user workloads execute on production systems.
- Engineering workstations run vendor-supplied endpoint security and OS auto-updates.
Roles & responsibilities
- CEO/CTO: Owns SDLC standards; performs code review; approves and oversees production changes; owns vulnerability management, triages findings, approves risk acceptance.
Review cadence
Reviewed and re-approved at least annually, and after any significant incident or organizational or technical change.