mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
Update docs/MULTI_TENANT.md, docs/AUDIT_LOGGING.md, docs/WEBHOOKS.md, and
their shipped mirrors in frontend-modern/public/docs/ to match current
multi-organization tenant resolution and default-organization access control
in internal/api/middleware_tenant.go, internal/api/org_access_policy.go,
internal/api/org_handlers.go, and internal/api/router_routes_licensing.go:
- Replace the outdated claim that default-organization members cannot be
managed with the shipped shared-process policy: default access requires
instance administration or explicit default viewer membership, instance
admins manage default members via POST /api/orgs/default/members and
DELETE /api/orgs/default/members/{userId}, first startup runs the
one-time RBAC viewer migration recorded in
default-org-access-migration.json, and active WebSocket/SSE streams
re-check organization access every 10 seconds.
- Document the actual tenant-context resolution order (X-Pulse-Org-ID,
pulse_org_id browser cookie, single-organization-bound API token,
signed-in user landing organization, then default), 403
default_org_access_denied, and organization-neutral bootstrap routes.
- Add the five registered session-only invitation and incoming-share
routes to the Multi-Tenant API reference table.
- Bind these Help statements and mirrors to live Go source in
scripts/tests/test_admin_docs.py.
Contract-Neutral: Documentation and static doc-parity test alignment only with no runtime, API, schema, or subsystem contract delta.
Change-source: pulse-maintainer