Skip to content

Bug: Audit log Block counters turns a failed security read into “No sign-in blocks” #3852

Closed

Description

@yannickmonney

Finding

Audit log Block counters turns a failed security read into “No sign-in blocks”

Impact

Settings → Audit logs → Block counters can reassure an administrator that there were no rejected sign-in attempts when its security counter query failed. This hides lockout/IP-limit evidence during an incident and gives no recovery action.

Reproduction

  1. Open the Audit logs Block counters tab.
  2. Let login_attempts/queries:listBlockCounters settle with HTTP 503 after loading ends.
  3. Inspect the table.

Actual result: the regular “No sign-in blocks” and “No rejected sign-in attempts in the last 7 days.” empty copy appears. No read-failure indicator or Retry/Try again/Reload control is rendered.

Expected result: show a failed-read state with Retry and use the no-blocks copy only after a successful empty response.

Root cause and scope

At current origin 9ea59724df24d62729a9360f3902d964dab39b3e, services/platform/app/features/settings/audit-logs/components/block-counters-table.tsx:32-39 destructures only data and isLoading; :39 maps undefined to []; the DataTable at :102-113 receives no error or retry callback. A settled failed query follows the ordinary empty-state path.

Evidence

  • Probe: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/block-counters-read-error.probe.test.tsx
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/block-counters-read-error.replay.log
  • Probe assertion: one Vitest test passed with data: undefined, isLoading:false, isError:true; normal no-blocks copy appeared without alert/retry.

Activity

  1. yannickmonney commented on Oct 4, 2026

    @yannickmonney
    ContributorAuthor

    Implemented in PR #4314: #4314

    The block-counter query now passes its error and refetch into the shared DataTable error state, so failed reads show localized recovery UI instead of the successful empty copy. Successful empty responses retain “No sign-in blocks”. Regression tests cover both states and accessibility.

    Validation: focused Vitest passed (2 tests), targeted type-aware Oxlint passed, commit conflict/format/local-SAST hooks passed. Platform TypeScript, browser/E2E/backend, migrations/docs sweeps remain unrun under the light-run limits. Duplicate issue; #3852 is the source and #3854 is covered by the same PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions