GDPR · HIPAA · SOC2 TYPE II — IN PROGRESS · CCPA

Regulatory Compliance & Geographic Edge Routing

Enforce data sovereignty rules automatically at the ingress layer. Map compliance requirements directly to geographic edge routing protocols using client-side cryptographic keys.

Mapping Primitives to Global Compliance Mandates

Compliance in legacy systems is usually administrative—implemented as policies, written promises, or database access rules that are easily bypassed by system administrators. ShareBolt approaches compliance through mathematical bounds. By employing client-side, zero-knowledge encryption, data residency headers, and immutable blockchains, compliance is enforced by design. Plaintext data and decryption keys are never transmitted to or stored in jurisdictions where they could violate compliance standards.

Whether managing automated file exchanges between autonomous AI agents or handling multi-gigabyte corporate documents across global teams, ShareBolt translates the requirements of GDPR, HIPAA, and SOC 2 Type II into cryptographic rules checked before any byte reaches the edge.

Geographic Data Residency Routing (GDPR Compliance)

Under the General Data Protection Regulation (GDPR, specifically Articles 25 and 32), organizations must ensure that personal data is protected by design and default, and that strict controls govern where data is processed and stored. ShareBolt solves this by evaluating client-supplied routing headers at global edge worker proxies. When a transfer is initiated, the sender specifies the target residency zone. Chunks are stream-routed directly to encrypted storage backends located within that jurisdiction (such as EU-central-1 R2/S3 storage nodes), completely bypassing transit servers in other jurisdictions.

EDGE WORKER: CF-IPCOUNTRY → REGIONAL R2 ROUTING (HONO / CLOUDFLARE WORKERS)

// Cloudflare injects cf-ipcountry on every request — no client header required.
// resolveRegion() maps ISO 3166-1 country codes to "eu-central" or "us-east".
// Enterprise BYOS tenants bypass geo-routing entirely (their bucket is fixed).
const cfIpCountry = c.req.header("cf-ipcountry") || c.req.header("Cf-Ipcountry") || null;
const region = user.tenant_id
  ? "us-east"                           // BYOS: tenant's own bucket, no geo-routing
  : R2Service.resolveRegion(cfIpCountry); // DE/FR/IE/…/GR → "eu-central", else "us-east"

// Presigned URL issued for the resolved region — region decision locked before any byte moves.
const presignedUrl = await R2Service.generateUploadUrl(c.env, fileKey, user.tenant_id, 900, region);

// region stored with every transfer record — included in the tamper-evident hash chain.
// INSERT INTO messages (..., region, ...) VALUES (..., ?, ...);

The EU country list covers all 27 member states. Because Cloudflare injects cf-ipcountry at the network layer, routing decisions cannot be spoofed by client-supplied headers. The storage region is also persisted in the audit ledger hash chain — changing the region field on any stored transfer record breaks the chain for all subsequent blocks.

Healthcare Data & HIPAA-Compliant File Transfer

Sharing Protected Health Information (PHI) in healthcare environments requires compliance with the HIPAA Security Rule. This requires strict access controls, data integrity protection, and transmission security.

ShareBolt meets these standards through its Zero-Knowledge envelope architecture:

  • E2E Client-Side Encryption: Data is encrypted locally with AES-256-GCM. Decryption keys are never uploaded to ShareBolt, ensuring that we never have access to raw PHI, satisfying the HIPAA "Privacy Rule by technical impossibility."
  • Zero PII in Audit Trails: The audit ledger records only cryptographic signatures, hashes, and generic events (e.g. `FILE_UPLOAD`, `FILE_DECRYPT`). No patient names, medical records, or file names are stored in plaintext.
  • Business Associate Agreements (BAA): ShareBolt signs BAAs with enterprise clients subscribing to the Citadel or Ledger Guard tiers, committing to maintain the cryptographic boundaries required by law.

SOC 2 Type II: Immutable Audit Logging (audit in progress — architecture designed for SOC 2 Type II)

Auditors reviewing security controls for SOC 2 Type II require proof that file sharing systems enforce strict access restrictions and that audit logs are protected from modifications, deletions, or retro-active edits.

ShareBolt addresses the "Security, Confidentiality, and Availability" Trust Services Criteria by recording all actions in an immutable, sequentially hashed transaction ledger. Each block contains:

Block_N = SHA-256(Index | Action | Agent_DID | Recipient | FileHash | FileSize | Classification | Timestamp | PrevHash | Region)
Block_Signature = Ed25519_Sign(ShareBolt_Audit_Server_Key, Block_N)
// Verify server public key: GET /v1/audit/public-key

Because the hashes are chained chronologically, any attempt by an insider, hacker, or system administrator to edit or delete a log entry will break the hash link for all subsequent blocks. Compliance teams can export the complete ledger chain as JSON via GET /v1/audit/entries to prove historical access controls to third-party SOC 2 auditors. CSV export and SIEM streaming integrations are on the roadmap.

B2B Compliance Capabilities Matrix

See how ShareBolt compares against legacy consumer file sharing tools, corporate FTP servers, and standard cloud storage systems on key compliance capabilities:

Capability ShareBolt Protocol Legacy Consumer Tools Enterprise FTP Standard Cloud Drive
Zero-Knowledge E2EE Standard (Client-side keys) Rare (Server-side keys) None (Plaintext storage) Server-side only
Regional Ingress Routing Edge-routed dynamically None (Central US/Global) Fixed static server Static region configurations
Client-Side Audit Ledger Immutable Cryptographic Chain Database logs only Text files (Easily altered) Admin console logs
Quorum Access Recovery Yes (Shamir Secret Splitting) No (Email reset / Admin overrides) No (Master overrides) No (Corporate recovery keys)
AI Agent Sandboxing Yes (Upload quotas & path controls) No No No

Download Technical Guide

Get our comprehensive whitepaper: "Decentralized Quorums in B2B Data Flow". Includes cryptographic architecture diagrams and compliance audit guidelines.

Deploy Ledger Guard

Frequently Asked Questions

How does ShareBolt guarantee GDPR data residency?

Cloudflare injects the cf-ipcountry header on every request at the network layer — clients cannot spoof it. The Workers edge reads this header and calls R2Service.resolveRegion() which maps all 27 EU member state codes to the eu-central R2 bucket backed by separate R2_EU_ACCOUNT_ID/KEY/SECRET credentials. The region decision is locked at presigned URL generation time; files go directly to that bucket.

Is ShareBolt HIPAA compliant for sharing health information?

Yes. Files are AES-256-GCM encrypted on the client before upload — ShareBolt servers never see plaintext PHI or decryption keys. Audit logs store only cryptographic hashes and generic event types (no patient names, file names, or medical record numbers). Enterprise and Ledger Guard tier customers can request a signed BAA.

How does the audit ledger support SOC2 Type II audits?

Every transfer is written as a hash-chained block. The hash input includes index, action, agent DID, recipient, file hash, file size, classification, timestamp, the previous block hash, and the storage region. Each block is also Ed25519-signed by the server's audit key (verifiable at GET /v1/audit/public-key). Auditors can call GET /v1/transfers/ledger/verify to get a machine-readable tamper report, and export the full ledger as JSON or CSV.

Does BYOS (Bring Your Own Storage) still enforce data residency?

Yes — BYOS gives Enterprise tenants stronger residency guarantees, not weaker ones. The tenant designates their own regional S3/R2/Azure bucket; ShareBolt issues presigned URLs pointing directly to that bucket. Files never transit ShareBolt-managed storage. Geo-routing is bypassed because the bucket is the designated region.

What happens if a user invokes GDPR Article 18 data processing restriction?

ShareBolt stores a restrict_processing boolean flag on user accounts. When set, the transfer initiation route returns HTTP 451 Unavailable For Legal Reasons with body "GDPR_ART18_PROCESSING_RESTRICTED", blocking all new uploads and downloads until the restriction is lifted by an admin.

Related Reading

Deep Dive
Sovereignty on the Edge: GDPR Residency Routing
cf-ipcountry routing, 27 EU member states, Schrems II, BYOS bypass.
Engineering
Preparing for SOC2 Type II with an Immutable Audit Ledger
Ed25519 signatures, hash chain verification, CSV export for auditors.
Engineering
Rate Limiting AI Agent Upload Quotas
HIPAA §164.312(b) and SOC2 CC6.6 compliance logging for agent transfers.
Architecture
Security Architecture Overview
AES-256-GCM, HKDF-SHA256 PFS, Ed25519 DIDs, Shamir Secret Sharing.

Middle East Data Protection (UAE PDPL & Saudi PDPD)

ShareBolt is architected to support compliance with the UAE Personal Data Protection Law (PDPL, Federal Decree-Law No. 45 of 2021) and the Saudi Arabia Personal Data Protection Law (PDPD, Royal Decree M/19). Both laws establish rights around data subject consent, cross-border transfer restrictions, and breach notification obligations.

Enterprise customers in the UAE or Saudi Arabia requiring a Data Processing Agreement (DPA) or formal compliance mapping document should contact sharebolt-hello@boreme.in.