Files
Pulse/scripts
rcourtman 9f71173b7a Harden API auth, SSO/RBAC identity, CSRF/lockout, tenant isolation, and input bounds (#5079)
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.
2026-11-24 16:05:01 +00:00
..
2025-10-11 23:29:47 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-11-22 22:34:11 +00:00
2025-10-22 10:46:18 +00:00
2026-03-18 16:06:30 +00:00