Skip to content

fix(docker): pass web endpoints envs to enterprise api service#6394

Merged
gustavosbarreto merged 1 commit into
masterfrom
fix/enterprise-compose-api-web-endpoints
Jun 1, 2026
Merged

fix(docker): pass web endpoints envs to enterprise api service#6394
gustavosbarreto merged 1 commit into
masterfrom
fix/enterprise-compose-api-web-endpoints

Conversation

@gustavosbarreto
Copy link
Copy Markdown
Member

What

Adds SHELLHUB_WEB_ENDPOINTS and SHELLHUB_WEB_ENDPOINTS_DOMAIN to the api (api-enterprise) service in docker-compose.enterprise.yml.

Why

In the unified architecture the cloud/enterprise routes are registered inside the api-enterprise binary, gated by SHELLHUB_WEB_ENDPOINTS. The web-endpoints envs used to live on the separate cloud service; commit 782f93e63 removed that service when merging into api-enterprise but did not carry the envs onto api, and the later overlay fix 47599e316 added them to gateway/ssh/ui but missed api.

Without them the api never enables the feature, so in enterprise deployments (SHELLHUB_ENTERPRISE=true, SHELLHUB_CLOUD=false) every web endpoint and legacy tunnel request returns 404, even with the flag set on the other services. The gateway renders the routes and the subdomain proxy, forwards to api:8080, and the api 404s because the handlers were never registered.

The DNS provider / ACME vars are consumed only by the gateway, so they are not added here.

Affects v0.25.0-rc.1 and current master.

Fixes: #6393

The api-enterprise service registers the web endpoint and legacy
tunnel routes, gated by SHELLHUB_WEB_ENDPOINTS. The unified
architecture merge dropped the cloud service that carried these
envs, and the later overlay fix added them to gateway/ssh/ui but
missed api. Without them the api never enables the feature, so
every web endpoint and tunnel request returns 404 in enterprise
deployments even with the flag set elsewhere.

Fixes: #6393
@gustavosbarreto gustavosbarreto requested a review from a team as a code owner June 1, 2026 16:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Claude finished @gustavosbarreto's task in 3m 5s —— View job


Code Review Complete

Reviewed 1 file across code quality, security, testing, Go/TypeScript patterns, and architecture — no issues found. The code looks good as-is.

The fix correctly adds the missing SHELLHUB_WEB_ENDPOINTS and SHELLHUB_WEB_ENDPOINTS_DOMAIN env vars to the api service, matching the pattern already used by ui, ui-react, gateway, and ssh in the same file. The architecture agent verified that the api-enterprise binary does read these variables to gate web endpoint route registration, confirming the 404 behavior described in the PR without them.


To request another review round, comment /review.

@gustavosbarreto gustavosbarreto merged commit d25b80f into master Jun 1, 2026
13 checks passed
@gustavosbarreto gustavosbarreto deleted the fix/enterprise-compose-api-web-endpoints branch June 1, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enterprise compose: api service missing SHELLHUB_WEB_ENDPOINTS, web endpoints return 404

1 participant