Skip to content

feat(gateway): add ingestor proxy route (#229)#240

Merged
crrow merged 1 commit intomainfrom
issue-229-gateway-ingestor
Mar 31, 2026
Merged

feat(gateway): add ingestor proxy route (#229)#240
crrow merged 1 commit intomainfrom
issue-229-gateway-ingestor

Conversation

@crrow
Copy link
Copy Markdown
Collaborator

@crrow crrow commented Mar 31, 2026

Closes #229

Summary

  • Add /api/ingest/{*rest} proxy route to the gateway, forwarding to the ingestor service
  • Add ingestor_upstream config field (defaults to http://127.0.0.1:8081)
  • Refactor proxy logic into a shared forward() helper to eliminate duplication between meta and ingestor handlers
  • Ingestor route shares the same auth + rate limit middleware as meta

Test plan

  • All 15 existing gateway tests pass
  • cargo clippy clean
  • cargo check -p stream-app verifies full integration

Add /api/ingest/* proxy route to the gateway, forwarding requests to the
ingestor service. Refactor proxy logic into a shared `forward()` helper
to avoid duplication between meta and ingestor handlers.

Closes #229
@crrow crrow merged commit 7e07542 into main Mar 31, 2026
9 checks passed
@crrow crrow deleted the issue-229-gateway-ingestor branch March 31, 2026 03:55
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.

fix(gateway): add ingestor proxy route

1 participant