Skip to content

[PART 3] feat: HTTP proxy and route handlers#3

Merged
andreabadesso merged 1 commit into
masterfrom
feat/core-proxy-routes
Apr 1, 2026
Merged

[PART 3] feat: HTTP proxy and route handlers#3
andreabadesso merged 1 commit into
masterfrom
feat/core-proxy-routes

Conversation

@andreabadesso

Copy link
Copy Markdown
Contributor

Summary

  • proxy.rs: Forward requests to wallet-headless containers with API key injection
  • routes.rs: Session CRUD endpoints, wildcard proxy handler, health check

Acceptance Criteria

  • POST /sessions spawns a container and returns session_id + api_key
  • GET /sessions lists active sessions with idle time
  • DELETE /sessions/:id removes the container and cleans up state
  • ANY /sessions/:id/api/* proxies to the correct container
  • Proxy injects x-api-key header — callers never need to know the key
  • Proxy forwards X-Wallet-Id, Content-Type, and Accept headers
  • last_activity is updated on each proxied request
  • Capacity check rejects new sessions when max_instances is reached (503)
  • CORS is permissive (development-friendly)
  • GET /health returns 200 OK

🤖 Generated with Claude Code

@andreabadesso andreabadesso changed the title feat: HTTP proxy and route handlers [PART 3] feat: HTTP proxy and route handlers Mar 31, 2026
@andreabadesso andreabadesso force-pushed the feat/core-proxy-routes branch from c6feafb to e77d07d Compare March 31, 2026 13:23
@andreabadesso andreabadesso changed the base branch from master to feat/core-state-docker March 31, 2026 13:23
@andreabadesso andreabadesso added the enhancement New feature or request label Mar 31, 2026
@andreabadesso andreabadesso self-assigned this Mar 31, 2026
@andreabadesso andreabadesso moved this to In Progress (Done) in Hathor Network Mar 31, 2026
@github-project-automation github-project-automation Bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Mar 31, 2026
@andreabadesso andreabadesso force-pushed the feat/core-state-docker branch from b30ff51 to 207b9ef Compare April 1, 2026 14:20
@andreabadesso andreabadesso changed the base branch from feat/core-state-docker to master April 1, 2026 14:22
- proxy.rs: forward requests to wallet-headless containers with API key injection
- routes.rs: session CRUD, wildcard proxy handler, and health endpoint

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andreabadesso andreabadesso force-pushed the feat/core-proxy-routes branch from e77d07d to ec8369d Compare April 1, 2026 14:23
@andreabadesso andreabadesso merged commit 428e5ab into master Apr 1, 2026
1 check failed
@github-project-automation github-project-automation Bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Apr 1, 2026
@andreabadesso andreabadesso deleted the feat/core-proxy-routes branch April 1, 2026 14:23
@andreabadesso andreabadesso moved this from Waiting to be deployed to Done in Hathor Network Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants