fix: remove hardcoded domain hub.host.uk.com from EntitlementApiController #7

Open
opened 2026-02-20 16:34:46 +00:00 by Clotho · 0 comments
Member

Problem

Line ~80 of Controllers/EntitlementApiController.php hardcodes the domain hub.host.uk.com during workspace creation.

// EntitlementApiController.php ~line 80
$workspace->domain = 'hub.host.uk.com';

Impact

  • The package cannot be reused across different deployments or environments
  • Self-hosted deployments would get the wrong domain assigned to new workspaces

Acceptance Criteria

  • Move the domain to a config value: config('tenant.default_domain')
  • Add a sensible default fallback using config('app.url')
  • Document the configuration option in CLAUDE.md and README.md

Discovered during automated scan (issue #3)

## Problem Line ~80 of `Controllers/EntitlementApiController.php` hardcodes the domain `hub.host.uk.com` during workspace creation. ```php // EntitlementApiController.php ~line 80 $workspace->domain = 'hub.host.uk.com'; ``` ## Impact - The package cannot be reused across different deployments or environments - Self-hosted deployments would get the wrong domain assigned to new workspaces ## Acceptance Criteria - Move the domain to a config value: `config('tenant.default_domain')` - Add a sensible default fallback using `config('app.url')` - Document the configuration option in `CLAUDE.md` and `README.md` _Discovered during automated scan (issue #3)_
Clotho added the
discovery
bug
labels 2026-02-20 16:34:46 +00:00
Clotho was assigned by Charon 2026-02-21 00:01:44 +00:00
Charon added the
agent-ready
label 2026-02-21 01:32:01 +00:00
Sign in to join this conversation.
No description provided.