# Bweb Agents — Enterprise Security & HIPAA On-Premises Architecture Whitepaper

**Publisher:** Bweb Solutions LLC  
**Document Version:** 2026.11  
**Contact:** info@bweb.solutions · https://bwebagents.com/trust

---

## 1. Executive Summary

Bweb Agents is an enterprise AI agent control plane designed to bridge the gap between individual AI chat tools and production business operations. Unlike shared multi-tenant chatbots, Bweb Agents enforces citation-verified grounding, dedicated single-tenant isolation, deterministic regression evaluations, proposal-only human-in-the-loop tool approvals, Enterprise SSO (OIDC/SAML 2.0) + SCIM 2.0, and **Customer-Owned On-Premises Deployment** for HIPAA and high-security environments.

---

## 2. Core Security Controls

### Infrastructure & Tenant Isolation

- Dedicated single-tenant Cloud VPS per organization (isolated OS, compute, NVMe storage, PostgreSQL 17 + pgvector, and Valkey 8) — never co-mingled multi-tenant tables.
- Customer-owned On-Premises & Private VPC deployment mode for HIPAA and high-security workloads with zero Bweb operator SSH keys installed on client hardware.
- Air-gapped offline installation kits with SHA-256 verification and atomic release rollback.
- Loopback-only internal binding (127.0.0.1) for PostgreSQL (55432), Valkey (56379), Web (3100/3200), API (4100/4200), and Python Runtime (8100/8200).

### Encryption & Credential Protection

- TLS 1.2/1.3 encryption in transit across public edges, workspace subdomains, and upstream APIs (automatic Let's Encrypt or customer enterprise PKI proxy).
- AES-256-GCM encryption at rest for LLM API keys, SaaS connector credentials, OIDC client secrets, and on-premises SSH deploy keys.
- Automated secret redaction on tool outputs and API state responses; credentials are never copied during Sandbox → Production promotion.
- One-click post-deployment SSH key wiping in the client panel for zero-standing-access on-premises governance.

### Identity, SSO & Access Control

- Enterprise Single Sign-On via OpenID Connect (OIDC with PKCE S256) and SAML 2.0 (Okta, Microsoft Entra ID, Google Workspace, generic IdPs).
- SCIM 2.0 directory provisioning & instant deprovisioning (revoking memberships and active sessions immediately on deactivation).
- Phishing-resistant WebAuthn Passkeys, HttpOnly SameSite session cookies, and four-tier RBAC (Owner, Editor, Support, Viewer).
- Append-only control plane and workspace audit trails logging promotions, credential changes, SSO sign-ins, and tool approvals.

### AI Grounding & Action Safety

- Citation-enforced runtime requiring chunk-level source citations on factual claims and strict abstention when evidence is missing.
- Mandatory Sandbox → Regression Evaluation (phrase, ABSTAIN, TOOL, MUST_NOT) → Owner-Approved Production release gates.
- Proposal-only tool execution with strict Zod input validation, bounded outputs, double-key verification (e.g., order + email), and human approval gates.
- Sandboxed command execution via digest-pinned rootless containers (--network=none, --read-only, --cap-drop=ALL, strict memory/CPU/PID caps).

---

## 3. Managed Dedicated Cloud vs. On-Premises HIPAA Shared Responsibility Matrix

| Control Area | Managed Dedicated Cloud VPS | Customer-Owned On-Premises (HIPAA / High Security) |
| --- | --- | --- |
| **Compute, OS & Disk Encryption** | Bweb Solutions (Dedicated Cloud VPS per org) | Customer (Client Linux host / AWS, Azure, GCP VPC under customer BAA) |
| **Database, Vector Embeddings & PHI** | Bweb Dedicated PostgreSQL (No PHI / No BAA) | 100% Customer-Owned Loopback PostgreSQL 17 + pgvector (PHI stays in perimeter) |
| **LLM Inference & Model Privacy** | Customer BYOK, Bweb Credits, or Local Ollama | Customer Local Ollama (zero egress) or Customer BAA-covered LLM API |
| **SSH Access & OS Patching** | Bweb Automated Hardening & Fleet Rollouts | 100% Customer-Owned (Per-org deploy key wipeable post-deploy; zero Bweb operator keys) |
| **TLS Certificates & Firewall Rules** | Automated Cloudflare Edge + Let's Encrypt + UFW | Customer Firewall / WAF + Automatic Let's Encrypt or Enterprise PKI Proxy |
| **Backups, Retention & BAA Scope** | Automated AES-256 checkpoints & restore drills (non-HIPAA) | Customer backup vault, retention policy, and HIPAA Security Rule governance |

---

## 4. On-Premises Network, Firewall & Air-Gap Architecture

- **Inbound Ports:** TCP 443 (HTTPS) for application/widget access, TCP 80 (HTTP) only if using automated Let's Encrypt ACME verification, and SSH port (default 22) restricted to the Bweb Control Plane deploy IP only during installation/upgrades.
- **Loopback-Only Internals:** PostgreSQL 17 (`127.0.0.1:55432`), Valkey 8 (`127.0.0.1:56379`), Web (`127.0.0.1:3100/3200`), API (`127.0.0.1:4100/4200`), and Python Runtime (`127.0.0.1:8100/8200`) are never exposed on public network interfaces.
- **Zero Standing Vendor Access:** No Bweb operator SSH keys are added to customer servers. Organizations use a unique per-org Ed25519 deploy key (or their own dedicated key) and can wipe the private key from the control plane immediately after deployment.
- **Air-Gapped Offline Mode:** Strict healthcare, financial, and defense networks can stage release tarballs and pinned Docker images on a jump host, verify `SHA256SUMS`, transfer offline, and run atomic install or rollback with zero outbound internet at runtime.

---

## 5. Subprocessors & Data Boundaries

| Vendor | Purpose | Data Boundary |
| --- | --- | --- |
| Cloudflare | DNS & Edge TLS/DDoS protection (bwebagents.com & managed cloud) | Managed Cloud only (not required for On-Premises custom domains) |
| Vultr | Dedicated single-tenant Cloud VPS hosting | Managed Dedicated Cloud only (never used in On-Premises mode) |
| Stripe | Subscription billing and payment card processing | Billing metadata only — zero workspace documents or conversations |
| Resend / AWS SES | Transactional account verification & alert emails | Operational emails only — no knowledge base contents or PHI |
| Customer-Selected LLM Providers | OpenAI, Anthropic, Google Gemini, Mistral, DeepSeek, xAI, or Local Ollama | Controlled exclusively by customer BYOK keys or local Ollama inside VPC |

---

## 6. Security Questionnaire (SIG / CAIQ Quick Reference)

**INF-01 (Architecture & Isolation) — Is customer data logically separated or physically isolated per tenant?**

Every managed customer receives a dedicated single-tenant VPS with private PostgreSQL/pgvector and Valkey instances. On-Premises customers deploy the entire stack onto their own infrastructure.

**HIP-01 (HIPAA & Regulated Data) — How does Bweb Agents support HIPAA / PHI workloads?**

Standard Bweb-hosted cloud workspaces do not accept PHI or include a BAA. For HIPAA workloads, organizations use On-Premises Self-Hosted Deployment on their own Linux/VPC infrastructure with local Ollama models (or their own BAA-covered LLM API), ensuring 100% of PHI stays inside the customer's compliance perimeter.

**IAM-01 (Identity & Access) — Do you support Enterprise SSO (SAML 2.0 / OIDC) and SCIM 2.0?**

Yes. Organizations can configure Okta, Microsoft Entra ID, Google Workspace, or any standard OIDC (PKCE S256) / SAML 2.0 IdP plus SCIM 2.0 automated user provisioning and immediate session revocation.

**CRY-01 (Cryptography) — How are API keys, connector secrets, and SSH deploy keys encrypted?**

All secrets are encrypted at rest using AES-256-GCM, redacted from API state responses and tool outputs, never copied across Sandbox → Production boundaries, and wipeable on demand.

**AI-01 (AI Safety & Grounding) — How do you prevent AI hallucinations and unauthorized tool actions?**

The private runtime enforces source chunk citations and abstains when evidence is absent. Agents require passing regression evaluations (phrase, ABSTAIN, TOOL, MUST_NOT) before owner-approved release promotion, and state-changing tools use Zod-validated proposals requiring human approval.

**OPS-01 (Air-Gapped & Rollback) — Can on-premises deployments operate air-gapped and roll back safely?**

Yes. Customers can generate a SHA-256 verified Air-Gapped Offline Kit (release tarball + pinned PostgreSQL/Valkey container tarballs), pin specific 40-char Git release SHAs, and trigger atomic one-click rollback to the prior release.
