mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 10:33:40 +01:00
Hardens Pulse API authentication, RBAC, SSO principal identity, session/CSRF/lockout defenses, multi-tenant organization isolation, action lifecycle authority, and request/metric memory bounds: - Require admin + `settings:write` authentication (rejecting setup tokens) on `/api/system/ssh-config` and `/api/system/verify-temperature-ssh` and strictly validate SSH config directive values against command injection. - Harden SSO principal identity and group-to-role mapping lifecycle (non-breaking issuer binding via `ProviderIssuerRegistry`, legacy display-name migration guard, verified-email requirement for OIDC domain/email restrictions, and role revocation when mappings change or are removed). - Enforce RBAC, admin, token-scope, and billing-state authority across RBAC management routes, loopback trust in hosted mode, logout race protection in `ensureAdminSession`, mobile token revocation on org-admin removal, alerting/operator-state mutations, and entitlement refresh token disclosure. - Harden CSRF form fallback and fake-cookie storage, account lockout and unauthenticated bcrypt paths, admin session invalidation on credential rotation, and live credential revalidation on stalled request bodies. - Enforce multi-tenant organization isolation and limits (org creation caps, token cleanup on org deletion, public signup on tenant runtimes, maintenance verification scoping, and tenant monitor lock contention). - Harden action authority, cross-org action result isolation, live credential checks on execution, and bound HTTP metrics label cardinality, JSON request bodies, handoff/return JWT sizes, TrueNAS topology RPC reads, suppression reasons, and download limits.