Pulse/pkg/audit
rcourtman c4ca169e2b feat: add multi-tenant isolation foundation (disabled by default)
Implements multi-tenant infrastructure for organization-based data isolation.
Feature is gated behind PULSE_MULTI_TENANT_ENABLED env var and requires
Enterprise license - no impact on existing users.

Core components:
- TenantMiddleware: extracts org ID, validates access, 501/402 responses
- AuthorizationChecker: token/user access validation for organizations
- MultiTenantChecker: WebSocket upgrade gating with license check
- Per-tenant audit logging via LogAuditEventForTenant
- Organization model with membership support

Gating behavior:
- Feature flag disabled: 501 Not Implemented for non-default orgs
- Flag enabled, no license: 402 Payment Required
- Default org always works regardless of flag/license

Documentation added: docs/MULTI_TENANT.md
2026-01-23 21:42:27 +00:00
..
audit.go feat(enterprise): add Advanced Reporting and Audit Webhooks integration 2026-01-09 21:31:49 +00:00
audit_test.go feat(audit): Add audit log API endpoints and UI with signature verification 2026-01-08 19:19:57 +00:00
export.go refactor: Add testability improvements to core packages 2026-01-19 19:25:38 +00:00
export_test.go test: Add comprehensive test coverage across packages 2026-01-19 19:26:18 +00:00
signer.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
signer_test.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
sqlite_logger.go fix: use pure Go SQLite driver for arm64 compatibility 2026-01-21 18:58:23 +00:00
sqlite_logger_test.go feat(audit): add comprehensive audit logging system 2026-01-12 15:20:33 +00:00
tenant_logger.go feat: add multi-tenant isolation foundation (disabled by default) 2026-01-23 21:42:27 +00:00
webhook.go security: SSRF protection for webhook URLs 2026-01-22 00:42:23 +00:00