FED-M4: search verb + audit log + rate limit #463
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: Federation v1 — see
docs/federation/PRD.mdanddocs/federation/MILESTONES.md.Goal
Keyword search over allowed resources with full audit and per-grant rate limiting.
Scope
searchverb acrossresourcesallowlist (intersection of scope + native RBAC)federation_audit_log:grant_id,verb,resource,query_hash,outcome,bytes_out,latency_msquery_hash= SHA-256 of normalized queryRetry-Afterand structured bodyDeliverables
apps/gateway/src/federation/server/verbs/search.controller.tsapps/gateway/src/federation/server/audit.service.ts(async, non-blocking)apps/gateway/src/federation/server/rate-limit.guard.tsAcceptance Tests
searchreturns ranked hits only from allowed resourcessearchexcludingcredentialsreturns no credential hits even when keyword matchesfederation_audit_logwithin 1soutcome='denied'Retry-AfterDependencies
Blocked by FED-M3.
Estimated budget
~20K tokens
Risk notes
Audit writes must not block request path. Use bounded queue with drop-with-counter pattern, not in-line writes.