Access Control & Cryptography Policy

Updated today

โ€ข

3 min read

Updated November 23, 2026. This page now also covers Cryptography & Key Management, which used to be a separate policy.

Access Control & Identity Management

Purpose

Define how identities are managed and how access to Perfect Wiki systems and customer data is provisioned, authenticated, authorized, reviewed, and revoked.

Scope

Applies to all Perfect Wiki personnel, contractors, customer end-users, and integrations.

Policy โ€” end users (customers)

  • End-user authentication is supported via Microsoft Entra SSO, Google Workspace SSO, and passwordless email one-time code. No passwords are stored by Perfect Wiki.
  • Multi-factor authentication is inherited from the customer's identity provider. Customers are responsible for enforcing MFA on Microsoft or Google for their users.
  • For Microsoft Entra logins, the user's email must belong to one of the organization's verified domains (anti-nOAuth-abuse check).
  • Role-based access control is enforced server-side on every API endpoint via middleware. Roles include Admin, Editor, and Viewer. The least-privilege principle is applied.
  • Customer admins are responsible for inviting, removing, and reviewing access of users within their organization.
  • Session tokens are stored in secure, HTTP-only cookies and expire on logout or after extended inactivity.
  • API access for the Public API uses opaque bearer tokens that can be regenerated at any time; regenerating immediately invalidates the previous token. Tokens are rate-limited.

Policy โ€” production access (Perfect Wiki personnel)

  • Access to production systems (the DigitalOcean project: servers, databases, object storage) is restricted to a documented list of Authorized Personnel.
  • Production access is granted only after employment / contract terms (including NDA) are signed, background check is completed, and access need is justified.
  • Authentication to production uses the personnel member's Google Workspace identity with mandatory MFA on the IdP.
  • Privileged roles (project owner, API-token holder) are limited to the minimum number of people required to keep the service running.
  • Access is reviewed at least quarterly and revoked within 24 hours of role change or termination.
  • Production access activity is logged in the DigitalOcean account activity log.

Cryptography & Key Management

Purpose

Define how cryptography is used and how encryption keys are managed across the Perfect Wiki service to protect data confidentiality and integrity.

Scope

Applies to all cryptographic operations on Perfect Wiki systems, including data-in-transit, data-at-rest, application-layer secret encryption, and authentication tokens.

Policy โ€” algorithms and protocols

  • Data in transit: TLS 1.2 minimum, TLS 1.3 preferred, with cipher suites supporting perfect forward secrecy. Insecure protocols (SSLv2/3, TLS 1.0/1.1) are disabled at the edge.
  • Data at rest: AES-256 encryption at rest is applied by DigitalOcean to all storage holding customer data (databases, Spaces object storage, volumes and backups).
  • Application-layer secrets: Integration tokens and other sensitive values are encrypted with AES-256-GCM using a 32-byte key derived from the service's master encryption secret, with a unique 16-byte IV per ciphertext and authenticated tags verified on decrypt.
  • Random material: Generated using cryptographically secure random number generators (Node.js crypto.randomBytes / OpenSSL).
  • Hashing: SHA-256 minimum. Legacy algorithms (MD5, SHA-1) are not used for any security purpose.

Policy โ€” key management

  • The master application encryption key is provisioned via environment variable, never committed to source control, and accessible only to production runtime and Authorized Personnel.
  • Cloudflare manages edge TLS certificates and DigitalOcean manages at-rest encryption keys; rotation follows their schedules.
  • API tokens generated for customers are 32-byte cryptographically random values. Tokens are stored hashed and can be regenerated by the customer at any time, which immediately invalidates the previous token.
  • If a key compromise is suspected, the affected key is rotated immediately and the incident is handled per the Logging, Monitoring & Incident Response Plan.
  • Encryption keys are destroyed by removing all copies from production and confirming DigitalOcean's data-destruction controls when underlying media is decommissioned.

Customer-managed keys

Customer-managed encryption keys (BYOK) are not currently offered. Enterprise customers requiring CMK should contact us to discuss.

Roles & responsibilities

  • CEO/CTO: Owns this policy; approves all production access grants and conducts quarterly reviews; approves cryptographic changes; manages the master encryption key.
  • Customer Admins: Manage their own organization's users.

Review cadence

Reviewed and re-approved at least annually, and after any significant incident or organizational or technical change; quarterly access reviews of production accounts.

Was this page helpful?