sp4-v2-1770499323/.sdlc/features/mesh-interop/tasks.md
rdev-worker 34f37a44b8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
build: /implement-feature mesh-interop --requirements 'Chat Service must cal...
2026-02-07 21:49:45 +00:00

39 lines
1.6 KiB
Markdown

# Implementation Tasks: Service Mesh Interop
## Task 1: Add /validate endpoint to auth-svc
- **ID**: task-1
- **Status**: completed
- **Blocked by**: none
- **Files**:
- `services/auth-svc/internal/api/handlers/validate.go` (new)
- `services/auth-svc/internal/api/handlers/validate_test.go` (new)
- `services/auth-svc/internal/api/routes.go` (modify)
- `services/auth-svc/internal/api/spec.go` (modify)
- **Scope**: Add POST /api/auth-svc/validate endpoint that validates a Bearer token and returns user info
## Task 2: Add auth-svc client and queue producer to chat-svc
- **ID**: task-2
- **Status**: completed
- **Blocked by**: task-1
- **Files**:
- `services/chat-svc/internal/port/auth.go` (new)
- `services/chat-svc/internal/port/queue.go` (new)
- `services/chat-svc/internal/adapter/authclient/client.go` (new)
- `services/chat-svc/internal/adapter/jobqueue/producer.go` (new)
- `services/chat-svc/internal/api/handlers/task.go` (new)
- `services/chat-svc/internal/api/handlers/task_test.go` (new)
- `services/chat-svc/internal/api/routes.go` (modify)
- `services/chat-svc/internal/api/spec.go` (modify)
- `services/chat-svc/cmd/server/main.go` (modify)
- **Scope**: Add inter-service auth validation and job queue producer to chat-svc
## Task 3: Register chat_task handler in worker-svc
- **ID**: task-3
- **Status**: completed
- **Blocked by**: none
- **Files**:
- `workers/worker-svc/internal/handlers/chat_task.go` (new)
- `workers/worker-svc/internal/handlers/chat_task_test.go` (new)
- `workers/worker-svc/cmd/worker/main.go` (modify)
- **Scope**: Register and implement chat_task job handler in worker-svc