mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-20 09:23:27 +00:00
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 |
||
|---|---|---|
| .. | ||
| concurrency_test.go | ||
| converters.go | ||
| converters_test.go | ||
| models.go | ||
| models_frontend.go | ||
| organization.go | ||
| profile_validation.go | ||
| profile_validation_test.go | ||
| profiles.go | ||
| state_docker_test.go | ||
| state_host_test.go | ||
| state_snapshot.go | ||