You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Login-policy Save silently drops an operator-set perIpLimit rate limit (form save omits the field the toggle preserves) #2670
Editing max-attempts on the Login policy (Governance → Security & Monitoring) and saving silently wipes a configured perIpLimit rate limit. The batched form save builds its payload without perIpLimit and without spreading the saved config, so the field is dropped — while the toggle path does spread savedConfig and preserves it. The two save paths are inconsistent, and the dropped field is a brute-force protection control.
login-policy-editor.tsx:158-163 — form save builds {enabled, maxAttemptsBeforeLockout, backoffSchedule, trustedProxies}; no perIpLimit, no ...savedConfig
login-policy-editor.tsx:107-110 — the toggle path does spread savedConfig (preserves perIpLimit)
Repro: with perIpLimit set in {org}/governance/login-policy.json, open Security & Monitoring → change Max attempts → Save → perIpLimit is gone from the persisted file.
Proposed change
Spread savedConfig (or explicitly carry perIpLimit) in the form save path so editing unrelated fields preserves the per-IP limit; align the two save paths.
Acceptance criteria
Editing + saving any login-policy field preserves a configured perIpLimit
Form and toggle save paths are consistent
Regression test covers "edit max-attempts keeps perIpLimit"
Activity