Reading this document: Answers use seven statuses. Implemented = control is in production and verifiable. In progress = actively being built or documented, not yet complete. Compensating control = direct control not implemented; an alternative mitigates equivalent risk. Not applicable = control domain is structurally irrelevant to CloakAPI's architecture. Not performed = the control has not been performed. Not established = the control is not in place. Not verified = we could not confirm the control from code, configuration or records. We do not inflate answers. Questions without good answers say so.
A — Audit Assurance & Compliance (AAC)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
AAC-01 |
Do you have an established audit programme? | In progress | Internal audit schedule drafted; external audit engagement pending first enterprise customer trigger. |
AAC-02 |
Do you maintain independent verification of security controls? | Not performed | No independent verification of security controls has been performed. |
AAC-03 |
Are compliance obligations documented and tracked? | Implemented | GDPR, UK-DPA 2018, and CCPA obligations tracked in an internal register with a named owner. Data-protection contact: support@cloakapi.io. |
B — Application & Interface Security (AIS)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
AIS-01 |
Do you use secure SDLC practices (threat modelling, code review)? | Not established | A public threat model is maintained at docs.cloakapi.io/security/threat-model. Changes are committed by a single operator: pull-request review is not required (no branch protection on the source repository), and CodeQL code scanning and Dependabot alerts are not enabled there (checked 2026-11-07). |
AIS-02 |
Do you perform application-layer penetration testing? | Not performed | Application-layer penetration testing has not been performed. |
AIS-03 |
Are API endpoints protected against injection and abuse? | Implemented | Cloudflare is used for DNS only; none of the public endpoints is proxied through Cloudflare, so there is no Cloudflare WAF (all address records unproxied, checked 2026-11-07). Nginx applies per-IP connection and request rate limits to API routes; gateway validation and throttling are route-specific. |
AIS-04 |
Is customer data segregated per tenant at the application layer? | Implemented | Tenant-scoped API keys; tenant-scoped tables carry a tenant id and Row-Level Security. A scheduled quarterly check verifies that per-tenant keys are distinct and that Row-Level Security is on. |
C — Business Continuity Management & Operational Resilience (BCR)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
BCR-01 |
Do you have a documented Business Continuity Plan? | Implemented | Published at /legal/bcp. Internal operational runbook maintained separately. |
BCR-02 |
Are backups taken regularly and tested? | Implemented | Database backups run nightly. Local dumps are deleted after 30 days by a scheduled job, and dumps that pass the backup job's checks are copied nightly to AWS S3 in Stockholm (eu-north-1) with server-side encryption. Off-site copies are kept for up to 33 days. Restore tests are manual; the latest restore drill ran on 22–23 October 2026. S3 lifecycle expiration is configured for 31 days, and Object Lock is configured in GOVERNANCE mode for 30 days. |
BCR-03 |
Are RTO and RPO targets defined and tested? | Not established | No recovery time objective or recovery point objective has been formally established. Backups run nightly; the latest restore drill ran on 22–23 October 2026 (see the BCP). |
BCR-04 |
Is multi-region failover available? | In progress | Planned; timeline tied to first enterprise customer requiring multi-region. No fake date given. |
BCR-05 |
Is the DR plan reviewed annually? | Not established | Restore tests are run manually; no fixed restore-test cadence is established. |
D — Change Control & Configuration Management (CCC)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
CCC-01 |
Are changes to production systems controlled and logged? | Implemented | Changes are version-controlled in git. Pre-commit and pre-push hooks exist in the repository but are not connected in the production checkout, so they do not run on commits there (checked 2026-11-07). Container deployments run through a journalled wrapper that verifies image signatures; static sites are synced by script; change history is retained. Production access is restricted to the operator over SSH with public-key authentication. |
CCC-02 |
Is infrastructure managed as code? | Not established | Ansible-managed server configuration and mandatory pull-request approval are not documented in the available repository. |
CCC-03 |
Are rollback procedures defined? | Implemented | Container deployments of the gateway and the apps run through a journalled wrapper: the previous image is kept as a rollback anchor, and if the post-deploy health probe fails the wrapper rolls back to it automatically. Static sites are restored from backups. |
E — Data Security & Privacy Lifecycle Management (DSP)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
DSP-01 |
Is customer data classified and labelled? | Implemented | Data classification policy in place: gateway metadata (low), billing data (medium), audit logs (high). Handling rules documented per class. |
DSP-02 |
Is plaintext customer content ever stored by CloakAPI? | Implemented | No, except in two opt-in stores: gateway-managed multi-turn maps (encrypted) and the response buffer (off by default; encrypted; it can contain identifiers a model repeated). On supported client paths the client replaces the personal data it detects before sending; detection is best-effort, so undetected values reach the gateway and the provider as written, and the gateway relays them without storing request or response bodies. Application logs pass through a payload filter (a safeguard, not a guarantee). |
DSP-03 |
Are data retention and deletion policies defined? | Implemented | Gateway metadata: 90 days. Billing records: 5 years after the end of the financial year (Norwegian Bookkeeping Act). A row from calendar year Y stays through 31 December of year Y+5 under the real user or organisation id, and a daily job then deletes it. Cryptographic receipts: 7 years; the user id stays on the row, and no job deletes the receipt when that period ends. Organisation deletion does not complete while a linked receipt, audit row, usage record, credit-ledger row, or in-window bookkeeping row exists. |
DSP-04 |
Can customers request data deletion? | Implemented | GDPR Art. 17 erasure is self-service in the portal, or by email to support@cloakapi.io, answered within one month. Erasure runs after a 7-day grace period and closes the account row; it does not remove the row. Receipts, security audit records (crypto-shredded) and bookkeeping records are kept as the data map describes. Organisation deletion does not complete while a linked receipt, audit row, usage record, credit-ledger row, or in-window bookkeeping row exists. |
DSP-05 |
Is data exported for sub-processors under contractual controls? | Implemented | Sub-processors listed at /legal/subprocessors operate under GDPR Art. 28 DPAs or standard contractual clauses; OpenRouter, which is configured but not used today, will be put under a DPA before first use. AI providers receive the request content the client sends: on supported client paths detected personal data is replaced first, but undetected values and all other text reach the provider as written. Other sub-processors do not receive prompt or response content. |
F — Datacenter Security (DCS)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
DCS-01 |
Are physical datacenter controls in place? | Compensating control | CloakAPI uses Hetzner Nuremberg, an EU data-centre carrying Hetzner's own third-party certifications (Hetzner certification page). Physical controls are Hetzner's responsibility; CloakAPI holds no data-centre certification of its own and inherits and verifies via Hetzner's published compliance documentation. |
DCS-02 |
Is access to physical hardware restricted? | Compensating control | No CloakAPI personnel have physical datacenter access. Managed hosting model; hardware access controlled by Hetzner. |
G — Encryption & Key Management (EKM)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
EKM-01 |
Is data encrypted in transit? | Implemented | The configured Nginx HTTPS virtual hosts allow TLS 1.2 and TLS 1.3 and set ssl_ciphers to HIGH:!aNULL:!MD5. |
EKM-02 |
Is data encrypted at rest? | Implemented | Repository documentation describes Hetzner Cloud block storage and field-level encryption of persisted credentials, payloads and key shares. Current volume and host encryption settings have not been verified in this assessment. On supported client paths, detected personal data is tokenised before egress. Off-site database backups use server-side encryption in AWS S3 (Stockholm). Receipt-signing keys are held on the gateway host with file permissions restricted to root and the service group; encryption of the key files at rest has not been verified in this assessment. |
EKM-03 |
Is there a documented key management process? | Implemented | ECDSA P-256 receipt-signing keys under a documented policy (docs.cloakapi.io/security/key-rotation): the target is quarterly rotation and on compromise; rotation is manual, so a key can stay active past its quarter, and key age is monitored hourly against the target. A rotated-out key stays in the public JWKS, marked inactive, so it still verifies historical receipts. |
EKM-04 |
Are encryption algorithms standards-compliant? | Implemented | AES-256-GCM for symmetric, ECDSA P-256 for signing, X25519 for key agreement. No custom cryptography. Gateway AES-256-GCM and ECDSA operations use PHP OpenSSL. |
EKM-05 |
Are cryptographic receipts independently verifiable? | Implemented | Yes. ECDSA P-256 signatures verifiable offline against the public JWKS at api.cloakapi.io/.well-known/jwks.json, for example with the verifier at signedreceipts.org. No CloakAPI account required to verify. |
H — Governance, Risk & Compliance (GRC)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
GRC-01 |
Is there a documented information security policy? | Implemented | Security policy published at security.cloakapi.io. Covers acceptable use, incident response, key management, and access control. |
GRC-02 |
Is risk assessment performed periodically? | In progress | Initial risk register drafted. Formal periodic cadence (annual) design intent; first formal review scheduled 2026 H2. |
GRC-03 |
Are roles and responsibilities for security defined? | Implemented | Security owner, data-protection contact and incident commander roles are documented; one named individual holds them today. |
I — Identity & Access Management (IAM)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
IAM-01 |
Is multi-factor authentication required for privileged access? | Not verified | Production servers accept SSH public-key authentication only (password and keyboard-interactive login disabled; root login refused), and the authorised keys are software keys, not hardware-backed. Two-factor enforcement on the source-code hosting account is not in place and is not a launch control. MFA on cloud-provider consoles has not been verified. |
IAM-02 |
Is least-privilege enforced for production access? | Not verified | Production access is held by one operator, whose host account can reach the production database directly. Reading sealed audit-log personal data goes through a break-glass path that records its own audit event first. A separation of duties between roles has not been established. |
IAM-03 |
Are service accounts and API keys managed with rotation? | Not established | API keys are scoped to the permissions they need, and customers can rotate them on demand (the old key stops working at once). Internal secrets have declared rotation cadences of 90 to 365 days by type, and their age is monitored hourly; rotation is manual and is not always done within the cadence (checked 2026-11-07). |
IAM-04 |
Is access reviewed and de-provisioned upon role change? | Not verified | Production access is held by one operator. An offboarding checklist and a recurring access-review cadence have not been verified in this assessment. |
IAM-05 |
Is SSO / federated identity supported for enterprise customers? | In progress | SAML 2.0 / OIDC SSO: design intent; in development; available to any account (beta on request). |
IAM-06 |
Are privileged sessions logged and monitored? | Not verified | SSH sign-ins are logged by the host. Operator access also runs over a private Tailscale network. SSH is reachable from the public Internet with public-key authentication only. Retention of SSH session logs and alerting on anomalous sign-in locations have not been verified. |
J — Infrastructure & Virtualisation Security (IVS)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
IVS-01 |
Is the network segmented to isolate tenant workloads? | Not verified | Database ports are not reachable from the public Internet, and Cloudflare is used for DNS only (checked 2026-11-07). Private network segmentation between tenant workloads has not been verified for this assessment. |
IVS-02 |
Are operating systems hardened according to a baseline? | Not verified | Ubuntu security updates are installed automatically (unattended-upgrades enabled), and SSH password and root login are disabled (checked 2026-11-07). A CIS baseline has not been assessed. |
IVS-03 |
Is vulnerability scanning performed on infrastructure? | Not established | Automated container and host vulnerability scanning is not in place; Trivy and Lynis are not installed, and the CI workflows have not run since 19 August 2026 (checked 2026-11-07). Ubuntu security updates are installed automatically. |
IVS-04 |
Are security patches applied within defined SLAs? | Implemented | Vulnerabilities in CloakAPI's own services follow the published disclosure policy: critical fixes within 7 days, high within 30 days. Ubuntu security updates are installed automatically by unattended-upgrades. Dependabot alerts are not enabled. |
K — Interoperability & Portability (IPY)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
IPY-01 |
Can customers export their data in portable formats? | Implemented | All gateway metadata and cryptographic receipts exportable as JSON via API. No proprietary lock-in format. |
IPY-02 |
Is there a documented offboarding / data-return process? | Implemented | Export is available in the portal until deletion runs after the 7-day grace period; export files stay downloadable for 30 days. A full archive is available on request to support@cloakapi.io. |
L — Logging & Monitoring (LOG)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
LOG-01 |
Are security-relevant events logged centrally? | Implemented | Sign-in, billing, security and privacy events are written to the hash-chained audit_logs table in the production database; errors go to a self-hosted error tracker (GlitchTip) on the same host; application logs are kept in the container logs on that host. Shipping logs to a separate host has not been verified. |
LOG-02 |
Are logs tamper-protected? | Implemented | Shipping application logs to an append-only destination off the production host has not been verified. The audit_logs table is append-only at the database level (insert-only; update and delete triggers on the production PostgreSQL database reject writes, with controlled exceptions for in-place redaction of earlier v1 rows during erasure and for the scheduled retention prune), each row is SHA-256 hash-chained to its predecessor, and the chain head is anchored daily with an ECDSA-P256 signature so a rewrite of a verifiable row is detectable offline. For rows written with v2, personal data in an audit row is stored as AES-256-GCM ciphertext, under a per-data-subject key where the event has an identified data subject, so GDPR erasure destroys that key (crypto-shredding) instead of editing the record — tamper-evidence and erasure no longer conflict for those rows. Events without an identified data subject use a platform key that the erasure of one person does not destroy. Earlier v1 rows exist and may have different storage conditions. A defined span of rows written before the 2026 chain-format cutover carries permanent, enumerated verification failures from the earlier in-place redaction design and from earlier chain-fork or orphan row pairs that the daily anchor alone does not detect; those rows are listed in a signed boundary attestation and are deliberately not repaired. |
LOG-03 |
Are alerting thresholds defined for anomalous activity? | Implemented | Scheduled checks alert on disk thresholds, audit-log chain integrity, backup freshness, signature validity and security-header drift; error tracking and uptime monitoring alert the operator by email, and response outside business hours is best-effort. |
LOG-04 |
Are logs retained for a minimum of 12 months? | Compensating control | Current retention: application logs 30 days (14 days for the legacy log); operations audit log 90 days; authentication, billing, security and privacy audit log 7 years. |
M — Security Incident Management (SEF)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
SEF-01 |
Is there a documented incident response plan? | Implemented | Incident response runbook covering SEV-1 through SEV-4. Named incident commander. Escalation path documented. |
SEF-02 |
Are customers notified of security incidents within required timeframes? | Implemented | GDPR 72-hour supervisory authority notification commitment. Controllers are notified within 72 hours of our becoming aware of a personal-data breach affecting their data (DPA §9). |
SEF-03 |
Are postmortems published for significant incidents? | Implemented | SEV-3+ incidents generate public postmortems within 5 business days, published at status.cloakapi.io. |
SEF-04 |
Is there a vulnerability disclosure programme? | Implemented | Coordinated disclosure policy published at security.cloakapi.io. Safe harbour, scope, and 90-day disclosure deadline defined. |
N — Supply Chain Management & Transparency (STA)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
STA-01 |
Is a full sub-processor list maintained and published? | Implemented | Full list at /legal/subprocessors. 30-day advance notice of changes. Email subscription via support@cloakapi.io. |
STA-02 |
Are third-party dependencies scanned for vulnerabilities? | Not established | Automated dependency vulnerability scanning is not in place: Dependabot alerts are disabled on the source repository, and the CI workflows that contain the Go and npm audit steps have not run since 19 August 2026 (checked 2026-11-07). |
STA-03 |
Are container images scanned before deployment? | Not established | Container images are not vulnerability-scanned before deployment. Image signatures are verified (cosign) before a container deployment proceeds. 6 of the 81 base-image references in the repository's Dockerfiles are pinned by digest (checked 2026-11-07). |
O — Threat & Vulnerability Management (TVM)
| CCM ID | Control Question | Status | Notes |
|---|---|---|---|
TVM-01 |
Is there a documented vulnerability management process? | Implemented | The process is the published vulnerability disclosure policy: acknowledgement within 24 hours on business days (48 hours at weekends), triage within 72 hours, critical fixes within 7 days, high within 30 days, coordinated disclosure within 90 days. |
TVM-02 |
Is external penetration testing performed? | Not performed | External penetration testing has not been performed. |
TVM-03 |
Is a SIEM or equivalent threat detection in place? | Compensating control | Prometheus alert rules, audit-log chain-integrity checks and self-hosted error tracking provide basic detection on the production host. There is no SIEM. |
This document is self-attested. Controls marked "implemented" are verifiable by design artefacts, configuration, or operator-provided evidence on request. Contact trust@cloakapi.io to request evidence packages for specific controls.