Sorgera
Trust & Security Center
Zero-Retention XML/PDF
TLS 1.3 + HSTS Preload
AES-256-GCM & bcrypt
TOTP 2FA
GDPR & KVKK Aligned

Security, Privacy & Infrastructure Architecture

Sorgera Services is engineered for European and global B2B/B2G e-invoicing compliance across Peppol BIS 3.0/3.1, PINT, ZUGFeRD, Factur-X, and KSeF FA(3). Every validation and rendering pipeline is designed around ephemeral in-memory execution so sensitive financial documents do not linger in persistent storage.

VERIFIED SUBPROCESSORS & CLOUD STACK
Enterprise Cloud Providers & Infrastructure Badges

Badges below denote the independent compliance posture of our underlying cloud infrastructure providers. Sorgera Services transparently separates provider infrastructure certifications from Sorgera's own organizational audit roadmap.

CloudRun logo
Google Cloud Run
Ephemeral PDF Rendering Containers

ISO/IEC 27001 / 27017 / 27018

SOC 2 Type II / SOC 3

PCI DSS v4.0

BSI C5:2020

HIPAA-Eligible

Stateless containerized Chromium/XSLT rendering. Payloads execute in isolated per-request containers with zero persistent invoice disk storage.

Neon logo
Neon Serverless PostgreSQL
Account, Credit & Peppol Directory DB

SOC 2 Type II

ISO/IEC 27001:2022

ISO/IEC 27701:2019

HIPAA-Eligible

GDPR & CCPA

TLS-encrypted PostgreSQL hosting isolated app_db_prod account/credit schemas and public Peppol directory lookups via a dedicated read-only replica.

Netlify logo
Netlify Serverless & Edge CDN
HTTPS Edge & Isolated API Functions

SOC 2 Type II

ISO/IEC 27001 & 27018

PCI DSS

GDPR & DPA

Global TLS edge termination, DDoS mitigation, and stateless serverless execution for Next.js App Router pages and API routes.

Upstash logo
Upstash Redis
Distributed Rate Limiting & Quota Locks

SOC 2 Type II

HIPAA-Eligible

GDPR & EU-US DPF

ISO 27001 Aligned

TLS-protected serverless Redis powering sliding-window abuse throttling and atomic Lua quota decrements.

Resend logo
Resend
Security OTP & Alert Mail

SOC 2 Type II

GDPR & EU-US DPF

Pre-Signed DPA

Delivers account verification codes, password reset OTPs, masked API credential rotation alerts, and billing receipts without ever transmitting plaintext secrets or invoice payloads.

Creem logo
Creem
Checkout, Tax & Subscription Billing

Merchant of Record

GDPR & DPA

PCI-Compliant Payment Rails

Global VAT / Sales Tax

Acts as Merchant of Record for subscriptions and prepaid credit packs. Payment card details and global VAT/sales tax are handled directly by Creem; Sorgera never stores card numbers.

Zero-Retention Data Handling Boundary

Validation and conversion pipelines process XML bytes directly in server RAM and stream the response back to your client, leaving zero persistent invoice documents in Neon or browser storage.

Never Stored — Ephemeral RAM Only
  • Uploaded UBL 2.1, CII D22B, Factur-X, ZUGFeRD, and KSeF FA(3) XML invoice payloads
  • Seller/buyer names, VAT IDs, IBANs, unit prices, discounts, line items, or embedded attachments
  • Generated PDF/A-3B documents, preview renders, and full Schematron/XSD validation reports
  • Credit card numbers, CVV codes, or banking credentials (delegated strictly to Creem)
Minimally Stored — Encrypted / Hashed Metadata
  • User profile, company association, and RBAC role assignments (app_db_prod schema)
  • Passwords and API Bearer tokens hashed with bcryptjs; credentials stored via prefix/last-four + hash
  • AES-256-GCM encrypted sensitive operational/audit fields where reversible protection is required
  • TOTP 2FA secrets, hashed backup codes, and login/2FA brute-force lockout counters
  • Aggregate request counters and HTTP status/latency telemetry without XML contents
Application, Transport & AI Controls
Enforced HTTP Security Headers

Configured globally at the HTTP edge: Strict-Transport-Security (max-age=63072000; includeSubDomains; preload), X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, and strict Permissions-Policy disabling camera, microphone, and geolocation.

Identity, OAuth2 & Brute-Force Guardrails

Supports both direct Dashboard API keys (Bearer / x-api-key) and OAuth2 client_credentials token exchange (/api/auth/token). Includes TOTP 2FA, temporary login/TOTP lockouts, HttpOnly session cookies, self-service token rotation, and account deletion.

RBAC & Multi-Tenant Isolation

Role hierarchy (SUPER_ADMIN, INTEGRATOR, ORGANIZATION_ADMIN, COMPANY_ADMIN, USER) enforced across API routes with explicit permission boundaries and separate read-only vs read-write database connections.

Deterministic Processing & AI Privacy Boundary

All XML validation (xmllint-wasm, saxonjs-he) and PDF generation (pdfmake, Cloud Run) execute deterministically with zero LLM transmission. Invoice payloads are never sent to AI providers unless a user explicitly initiates the optional Analyze with AI tool.

AI Assistant — PII Masking & Privacy Controls

Standard XML validation and PDF generation run 100% deterministically with zero LLM transmission and zero invoice retention. When you explicitly invoke the optional AI Assistant, Sorgera applies multi-layer privacy protection before sending context to commercial LLM APIs (Anthropic / OpenAI, configured without training opt-in):

1. Client & Server PII Masking (45+ Fields)

Sensitive Peppol UBL and KSeF FA(3) XML elements (Name, RegistrationName, CompanyID, EndpointID, addresses, emails, phones, PayeeFinancialAccount, NIP, NrRB, SWIFT, KRS, REGON, BDO, P_7) are replaced with [MASKED] or browser-RAM-only reversible [MASKED-N] tokens before AI inspection. A mandatory server-side masking floor also scrubs raw API payloads prior to LLM calls or thread persistence.

2. Error-Scoped Exceptions & Slicing

For transparency: XML elements explicitly named inside a triggered validation error XPath (safeElements) remain unmasked so the exact rule violation can be diagnosed. Documents over 200 lines are sliced via extractRelevantSections to include only headers, tax/monetary summaries, and error windows.

3. Prompt-Injection & Chat Storage

Follow-up questions are filtered against prompt-injection patterns via sanitizeUserMessage before prompt assembly. Multi-turn AI repair threads store only the PII-masked xmlSnippet with an automatic 30-day stale thread cleanup policy, while stateless validators/converters never store invoice payloads.

GDPR & KVKK Governance

Operated by Sorgera Yazılım Teknolojileri Anonim Şirketi (Türkiye) in alignment with Turkish Law No. 6698 (KVKK) and EU GDPR principles. Enterprise Data Processing Agreements (DPA) are available for contracted accounts.

Audit Roadmap & Transparent Claims

While underlying cloud infrastructure providers maintain SOC 2 Type II and ISO 27001 certifications, an independent third-party SOC 2 / ISO 27001 audit of Sorgera Services' own application controls is on our compliance roadmap and is intentionally not claimed before completion.


Vulnerability Disclosure & Compliance Inquiries

Report security findings or request our DPA / Data Controller information via info@sorgera.com.