Skip to content

fix(auditlogs): accept api actor context#373

Open
EfeDurmaz16 wants to merge 2 commits into
cloudflare:mainfrom
EfeDurmaz16:fix/auditlogs-api-actor-context
Open

fix(auditlogs): accept api actor context#373
EfeDurmaz16 wants to merge 2 commits into
cloudflare:mainfrom
EfeDurmaz16:fix/auditlogs-api-actor-context

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • Accept actor.context: "api" in audit log responses.
  • Add a regression test for an audit log response containing the live API actor context value.

Fixes #352.

Verification

  • pnpm --filter auditlogs test -- src/tools/auditlogs.tools.test.ts
  • pnpm --filter auditlogs check:types
  • pnpm exec prettier apps/auditlogs/src/tools/auditlogs.tools.ts apps/auditlogs/src/tools/auditlogs.tools.test.ts --check
  • git diff --check

Note

  • The targeted Vitest run emits the existing Wrangler config warning about observability.traces; the test passes.

Signed-off-by: EfeDurmaz16 <efebarandurmaz05@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auditlogs_by_account_id: zod validation fails on actor.context == "api" (new value from Cloudflare API)

1 participant