feat: implement TenantContext and tenant detection via subdomain #7

Merged
psycodepath merged 1 commit from issue/1-tenant-detection into main 2026-07-03 18:49:43 +00:00
Owner
  • Add TenantContext value object for representing tenant identity
  • Add TenantDetectorInterface port for tenant detection abstraction
  • Implement SubdomainTenantDetector adapter for extracting tenant from HTTP Host header
  • Add comprehensive unit tests for tenant detection logic
  • Add Behat feature tests for tenant detection scenarios

Handles subdomain extraction from localhost-style hosts (e.g., family1.localhost)
and gracefully falls back to empty tenant for requests without subdomains.

- Add TenantContext value object for representing tenant identity - Add TenantDetectorInterface port for tenant detection abstraction - Implement SubdomainTenantDetector adapter for extracting tenant from HTTP Host header - Add comprehensive unit tests for tenant detection logic - Add Behat feature tests for tenant detection scenarios Handles subdomain extraction from localhost-style hosts (e.g., family1.localhost) and gracefully falls back to empty tenant for requests without subdomains.
feat: implement TenantContext and tenant detection via subdomain
Some checks failed
CI/CD Pipeline / test (pull_request) Failing after 2s
CI/CD Pipeline / build-and-push (pull_request) Failing after 0s
cafbb879eb
- Add TenantContext value object for representing tenant identity
- Add TenantDetectorInterface port for tenant detection abstraction
- Implement SubdomainTenantDetector adapter for extracting tenant from HTTP Host header
- Add comprehensive unit tests for tenant detection logic
- Add Behat feature tests for tenant detection scenarios

Handles subdomain extraction from localhost-style hosts (e.g., family1.localhost)
and gracefully falls back to empty tenant for requests without subdomains.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
psycodepath/hrp!7
No description provided.