Habify BaseHabify Base
Official Legal DocumentUpdated: 2026-11-25

Data Processing Addendum (DPA)

Mandatory DPA under PDPL 91/2025/QH15 defining Controller vs. Processor roles, isolated PostgreSQL 18 databases, KEK/DEK envelope encryption, per-project RLS, 2-hour Support Access Grants, sub-processors, breach notification, and .hpb data return/deletion.

Data Processing Addendum (DPA)

Last updated: 2026-11-25 · Version: 2026-11-25

This Data Processing Addendum ("DPA") forms a mandatory, integral part of the Habify Base Terms of Service between Customer (acting as Personal Data Controller) and HABIFY COMPANY LIMITED (CÔNG TY TNHH HABIFY, Enterprise Code: 0319523808, acting as Personal Data Processor), in compliance with Vietnam's Personal Data Protection Law No. 91/2025/QH15 and Decree No. 356/2025/ND-CP.


1. Roles and Processing on Customer Instructions

  1. Roles of the Parties:
    • Customer as Data Controller: Customer determines the purposes, legal basis, consent capture, and scope of all end-user personal data stored inside Customer's Project database (hb_proj_<ulid>), object storage buckets, and BYO integrations.
    • Habify as Data Processor: CÔNG TY TNHH HABIFY processes end-user personal data strictly on behalf of Customer and solely in accordance with Customer's documented instructions expressed through the Console, CLI, SDKs, Data API, and BYO configurations.
  2. Confidentiality: Habify never accesses, discloses, monetizes, or trains AI models on Customer's public schema data unless required by a binding Vietnamese statutory order (with prior notice to Customer unless legally prohibited).

2. Technical & Organizational Security Safeguards

Habify enforces defense-in-depth protections across every Managed Project:

  1. Physical Database Isolation & Per-Project PostgreSQL 18 RLS:
    • Each Project receives a dedicated physical PostgreSQL 18 database (hb_proj_<ulid>) separated into habify_sys (protected system tables) and public (Customer business tables), operated by a non-superuser role hb_role_<ulid>.
    • Each Project has a dedicated RLS execution role hb_rls_<ulid> (NOLOGIN, NOINHERIT, no CONNECT privilege). Every REST Data API request (/v1/db/tables/*) runs inside a transaction with SET LOCAL ROLE hb_rls_<ulid> and binds app.current_user_id / app.current_role. Even anonymous hb_pk_* requests without a JWT are forced into app.current_role = 'anon' (NULL user ID) under a strict Default-Deny rule (ENABLE + FORCE ROW LEVEL SECURITY plus at least one policy).
  2. Two-Layer KEK / DEK Envelope Encryption (CredentialVault):
    • All BYO service keys and sensitive secrets are encrypted using per-project Data Encryption Keys (DEK — AES-256-GCM) bound to AAD = "{project_id}|{service}|{field}", wrapped by rotatable Master Key Encryption Keys (KEK). SensitiveDataRedactor strips secrets from logs and traces; all transit uses HTTPS / TLS 1.3.
  3. Immutable Audit Logs: RBAC checks, Sudo Mode confirmations, key rotations, backups, and support grants are recorded in append-only audit_logs.
  4. 2-Hour Read-Only Support Access Grants:
    • Habify personnel and Hub administrators cannot inspect a Project's metadata or logs without an explicit, active Support Access Grant created by an authorized Workspace member.
    • Every Support Access Grant is strictly locked to the read_metadata_logs scope, limited to 15–120 minutes (maximum 2 hours), immediately revocable by Customer, fully audit-logged, and exposes ZERO raw secrets/DEKs and ZERO end-user PII or public schema rows.

3. Authorized Sub-processors

Customer grants general written authorization for Habify to engage the following infrastructure sub-processors (each bound by equivalent confidentiality and data protection obligations):

Sub-processorLocationTechnical Processing Scope
CÔNG TY TNHH CÔNG NGHỆ TDCLOUD (Tax Code: 6001787246)Vietnam (160.187.228.182)Real-time hot-standby PostgreSQL 18 Physical Streaming Replication & nightly AES-256 onshore backup storage in Vietnam.
Contabo GmbH & Authorized Dedicated Infrastructure Partners (OVHcloud / Hetzner)Singapore (217.216.34.96 & Dedicated Nodes)Primary cloud compute nodes, PostgreSQL 18 database clusters, and on-demand Dedicated Compute nodes.
Cloudflare, Inc.USA / Global EdgeDNS resolution, WAF/DDoS protection, CDN, and R2 object storage (base-managed-public, base-managed-private, base-backups-private).
Amazon Web Services, Inc. (AWS SES)SingaporeTransactional platform email delivery and mail.habifybase.app sandbox relays.
Alibaba Cloud (Singapore) & Anthropic PBC (USA)Singapore / USAInvoked via AI Gateway only if Customer uses Pass-through AI (automated PII scrubbing applied; configured for Zero Data Retention / No Training). Never invoked for BYO AI keys or disabled AI.
SePay & Viettel S-InvoiceVietnamDomestic VND platform checkout (Bank Transfer (Scan QR Code) & International Card (Visa, Mastercard, JCB)) and Workspace VAT e-invoicing.
  • Sub-processor Change Notice: Habify provides at least 15 days prior notice before adding or replacing a sub-processor handling Project data. Customer may object by exporting its .hpb bundle and terminating prior to the effective date.

4. Cross-Border Data Transfers & A05 Compliance

  1. Primary hosting in Singapore (Contabo GmbH and authorized dedicated infrastructure partners), edge services (Cloudflare), transactional email (AWS SES), and optional Pass-through AI constitute cross-border personal data transfers under Article 20 of PDPL 91/2025/QH15 and Decree 356/2025/ND-CP.
  2. CÔNG TY TNHH HABIFY maintains and files the unified Cross-Border Transfer Impact Assessment Dossier (Forms 01a, 09) and Data Processing Impact Assessment (Forms 02, 10) with Department A05 — Ministry of Public Security and continuously mirrors databases onshore at TDCLOUD (160.187.228.182). Customer remains responsible for its own Controller notifications/filings where applicable to its business.

5. Data Subject Requests & Breach Notification

  1. Assistance with Data Subject Rights: Customer can fulfill access, export, correction, and erasure requests autonomously via /v1/db/tables/*, SQL/Table Editor, Clone-to-Sandbox PII masking, and owner_ref-scoped /internal/export/owner-records. Habify forwards any direct end-user requests referencing a Customer Project promptly to Customer.
  2. Breach Notification: Upon confirming a personal data breach affecting Project data within Habify's infrastructure, Habify takes immediate containment action and notifies Customer without undue delay within 24–48 hours, providing scope, remediation steps, and technical logs to support Customer's 72-hour statutory notification to Department A05.

6. Data Return & Deletion (.hpb Portability)

  1. Zero Lock-In .hpb Export: At any time during active service — and throughout the 30-day Project suspension period (suspended) — Customer may export complete portable .hpb bundles across three storage modes:
    • metadata_only: PostgreSQL 18 database/tenant.dump (exported via hb_role_<ulid>), enabled core service owner_ref exports, and file manifests;
    • inline_files: Bundled with Managed storage blobs inside the .hpb archive;
    • signed_pull_manifest: Presigned download manifest for multi-stream migration to Customer's VPS or Self-Hosted stack (habify-base.sh import-from-cloud).
    • .hpb exports never contain Habify platform Master KEKs or raw Vault ciphertexts from other tenants.
  2. Permanent Erasure: Upon Project deletion, end of the 30-day Project suspension window (purged), or expiration of the 15-day soft-delete grace period after Habify Account deletion, Habify drops hb_proj_<ulid>, removes hb_role_<ulid> / hb_rls_<ulid>, destroys Project DEKs, and deletes Managed R2 objects under proj_{project_id}/ (rolling encrypted backups expire within at most 30 days; statutory accounting records remain archived 10 years).

7. DPA Contact

  • Data Protection Department — CÔNG TY TNHH HABIFY (Tax Code: 0319523808)
  • Email: base@habifyhub.com · Support Portal: https://support.habifyhub.com · Phone: 0367 465 952
Data Processing Addendum (DPA) | Habify Base