Skip to content

feat: unified ingestLogs RPC with session or API key auth - #19

Merged
mhweiner merged 2 commits into
mainfrom
feat/dual-auth-ingest
Jul 28, 2026
Merged

feat: unified ingestLogs RPC with session or API key auth#19
mhweiner merged 2 commits into
mainfrom
feat/dual-auth-ingest

Conversation

@logfox-agent

Copy link
Copy Markdown
Contributor

Summary

  • Remove ingestLogsV1 and direct /v1/ingest fetch; use typed RPC ingestLogs at /v1/ingestLogs
  • Session RPC calls use authToken; ingest prefers apiKey then falls back to authToken
  • logfox run sends app UUID locally and app name for non-local API-key-only flows
  • CloudWatch setup forwarder points at /v1/ingestLogs

Companion api-service PR: logfoxai/api-service (feat/dual-auth-request-context)

Test plan

  • npm run validate (build)
  • Local logfox run --name my-app -- echo hello with session auth
  • Non-local run with API key only (app name resolution on server)

Remove ingestLogsV1 and /v1/ingest direct calls; use ingestLogs RPC with
bearer from authToken or apiKey. Point CloudWatch setup at /v1/ingestLogs.
Use authToken for typed RPC calls and apiKey for ingest only. Restore
non-local logfox run by sending app name when no local app record exists.
@mhweiner
mhweiner merged commit c8be9e8 into main Jul 28, 2026
3 checks passed
@mhweiner
mhweiner deleted the feat/dual-auth-ingest branch July 28, 2026 01:44
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.

2 participants