oliver-zehentleitner / maity

hardening: access-gate allow-lists match exact paths (second factor, pending DELETE)

Sign in to report

tsk-ap93xkh7n03d Open

Follow-up from #1824 (tsk-f5sdcgr7vzj0, point 3), which kept the access gates' allow-list behaviour unchanged on purpose.

Tighten two allow-list matches to exact paths, failing closed:

  • the second-factor gate matches only paths under /api/v1;
  • the pending-account exception for DELETE matches a whole path segment, not a prefix.

Neither is reachable today per the #1824 author; this is hardening. Build on the shared matcher from #1824 after it merges, with tests for the near-miss paths.