Skip to content

fix: isolate managed-provider app naming from BYO Modal's MODAL_APP_NAME#426

Merged
mrubens merged 1 commit into
developfrom
fix/roomote-cloud-app-name-isolation
Jul 16, 2026
Merged

fix: isolate managed-provider app naming from BYO Modal's MODAL_APP_NAME#426
mrubens merged 1 commit into
developfrom
fix/roomote-cloud-app-name-isolation

Conversation

@mrubens

@mrubens mrubens commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #402, prompted by review on the hosting-operator side.

resolveRoomoteCloudModalAppName gave MODAL_APP_NAME precedence as an escape hatch — but that env var belongs to the bring-your-own Modal provider. A deployment that customizes its BYO Modal app name would therefore also redirect the managed provider's sandboxes inside the hosting operator's shared workspace, defeating per-deployment attribution (and mixing tenants' usage under one app).

  • The managed provider now ignores MODAL_APP_NAME entirely (pinned by a test).
  • Its escape hatch is a dedicated ROOMOTE_CLOUD_APP_NAME — deployment-managed like the rest of the ROOMOTE_CLOUD_* family: catalog field with encrypted-env fallback resolution, reserved from the generic env editor, stripped from task sandboxes.
  • Precedence: ROOMOTE_CLOUD_APP_NAMEroomote-<slug> → client default. Plain BYO Modal continues to read only MODAL_APP_NAME; neither provider consults the other's variable.

Validation: lint / check-types clean; types, env, compute-providers, and controller suites green.

resolveRoomoteCloudModalAppName gave MODAL_APP_NAME precedence as an
escape hatch, but that env var belongs to the bring-your-own Modal
provider: a deployment customizing its BYO app name would also redirect
the managed provider's sandboxes inside the hosting operator's shared
workspace, defeating per-deployment attribution.

The managed provider now ignores MODAL_APP_NAME entirely and gets its
own deployment-managed override, ROOMOTE_CLOUD_APP_NAME (catalog field
with DB-fallback resolution, reserved from the env editor, stripped from
task sandboxes), with the slug mapping roomote-<slug> as the default.
@roomote-roomote

roomote-roomote Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed 2764965

@mrubens
mrubens merged commit c023805 into develop Jul 16, 2026
17 checks passed
@mrubens
mrubens deleted the fix/roomote-cloud-app-name-isolation branch July 16, 2026 15:26
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.

1 participant