Go to file
Matt 5aa761e8aa feat: add secure token-based agent registration and multi-tenant isolation
- Add RegistrationToken model for secure agent registration
- Add secret_hash field to Agent model (SHA-256 hashed credentials)
- Create admin auth dependency for protected endpoints
- Create agent auth dependency with X-Agent-Id/X-Agent-Secret headers
- Add backward compatibility with legacy Bearer token auth
- Add registration token CRUD endpoints under /tenants/{id}/registration-tokens
- Update agent registration to use registration tokens
- Add authentication to task endpoints with tenant isolation
- Add comprehensive tests for auth and registration flows

Breaking changes:
- /tasks/next no longer accepts agent_id query param (uses auth headers)
- PATCH /tasks/{id} now requires authentication

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 11:11:32 +01:00
.claude Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
alembic feat: add secure token-based agent registration and multi-tenant isolation 2025-12-07 11:11:32 +01:00
app feat: add secure token-based agent registration and multi-tenant isolation 2025-12-07 11:11:32 +01:00
tests feat: add secure token-based agent registration and multi-tenant isolation 2025-12-07 11:11:32 +01:00
.env.example Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
.gitignore Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
CLAUDE.md Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
Dockerfile Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
ROADMAP.md feat: add tenant_id to agent registration and task filtering 2025-12-05 20:09:58 +01:00
alembic.ini Initial commit: LetsBe Cloud Orchestrator 2025-12-03 11:02:31 +01:00
docker-compose-dev.yml refactor: reorganize Docker Compose for dev/prod separation 2025-12-04 14:08:44 +01:00
docker-compose.yml refactor: reorganize Docker Compose for dev/prod separation 2025-12-04 14:08:44 +01:00
nginx.conf Add production Docker Compose and nginx config 2025-12-03 11:25:57 +01:00
requirements.txt Add ENV and FILE management APIs with tests 2025-12-04 00:30:37 +01:00