// CONTENTS Part 09 · Security

// PART 09

Compliance and audit

Chapter 40 / 60 3 min read English Part 09 of 15

Compliance claims are only as strong as their evidence. This page states the honest status of each control, the audit calendar, and the artifacts you should be able to produce.

Component stack and licenses

Component Purpose License
Caddy reverse proxy, TLS Apache 2.0
PostgreSQL database PostgreSQL License
Zitadel (directory) identity and access Apache 2.0
OtterIO (Drive) S3-compatible storage AGPLv3
Stalwart mail server AGPLv3
Qdrant vector database Apache 2.0
Valkey cache BSD 3-Clause
LiveKit video Apache 2.0
OpenBao secrets server MPL-2.0

Where the compliance posture honestly stands

Requirement Status
TLS 1.3 in transit (proxy, database, storage, mail) provided
MFA, password policy, session management, SSO (directory) provided by Zitadel configuration
Audit logging (proxy, database, directory, application) provided; aggregate into a SIEM for retention requirements
Encryption at rest (database, objects, cache, backups, disk) not provided by the platform — provide at the storage layer (LUKS, encrypted volumes, encrypted backups)
Field-level encryption implemented for exactly three surfaces (attendance, external Drive, session content)
Automated backups operator-run scripts (see Backup and restore); test restores quarterly
Hardening (CIS benchmark, auditd, AppArmor) partial; ./botserver security fix covers firewall, fail2ban and Caddy

The audit calendar

Cadence Tasks
Weekly review security logs (Caddy, PostgreSQL, Zitadel); check backup completion; review failed authentication attempts
Monthly access review for privileged accounts; test a backup restoration (restore drill); review audit logs for anomalies
Quarterly full access review for all users; compliance self-check; disaster-recovery drill; rotate credentials on schedule
Annually penetration test; full compliance audit; risk assessment update; security policy review

Credential rotation

./botserver rotate-secret tables    # one component (prints the manual update required)
./botserver rotate-secrets --all    # incident path — prints every manual step, requires confirm

Rotation windows used by the operations runbook: 90 days for provider keys, 180 days for internal service credentials, immediately after a departure or a suspected leak. Order matters: update Vault first, restart the caching process, revoke the old credential last. Rotating the master encryption key makes existing encrypted data unreadable — do it only with a re-encryption plan.

Supply-chain and release gates

The production-readiness gate (python3 scripts/prod_readiness.py) verifies, among 17 checks: JWT signature verification, webhook origin verification and fail-closed behavior, TOTP encoding, workflow pinning (every uses: a commit SHA, no workflow trusting a fork), secret scanning wired in CI, and the i18n catalog consistency. Security reports follow the incident-response process: acknowledgement within 3 business days, severity within 10, standard embargo 90 days, and a status page that publishes resolved advisories only.

Evidence you should be able to produce on demand

  • The latest scripts/restore_drill.sh --report output.
  • The current prod_readiness table (regenerated, never hand-edited).
  • Vault audit log enablement (vault audit enable file …).
  • The admin’s first-boot password change and the quarterly access review.

Found a mistake? Open an issue · All books

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move