Skip to content

Document organization access, invitations and company sign-in - #58

Closed
tnkuehne wants to merge 28 commits into
mainfrom
docs/organization-selection
Closed

tnkuehne wants to merge 28 commits into
mainfrom
docs/organization-selection

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Delivered in #86 as part of the Widefleet 0.4.2 documentation publication. This PR is superseded.

Document organization access, invitations and company sign-in released in platform and CLI 0.4.0, and align the self-hosting guides with the published release.

The installation guide uses the three released Widefleet images, the Compose initialize and runtime services, and the matching persistent volumes for backup and recovery. External-service startup, app authentication and released-version requirements follow the same configuration. Pair with #54 for Dynamic Worker connector documentation; both branches target main and merge without conflicts.

Implementations #74 and #76 are included in published release v0.4.0. Runtime 0.3.0 is bundled, but its independent runtime-v0.3.0 download release is not yet published. Runtime updates download published packages; rollback selects a compatible package already stored by the installation.

Validation: 21 Compose configuration tests pass. Formatting, documentation links and isolated static-site builds pass, including the combined #54/#58 content. No merge or production deployment was performed.

RetriggerView in GreptileConfidence Score: 5/5

The changes since the previous review appear safe to merge, with no new blocking issue established.

Summary

Documents organization access, invitations and company sign-in for platform and CLI 0.4.0.

  • The guides explain how people choose an organization and use its services.
  • A new guide explains how people join organizations and set up company sign-in.
  • The connector guide explains organization-scoped connector management.
  • The preview guides explain how organization suffixes change app addresses.
  • The self-hosting guides describe the 0.4.0 runtime setup and recovery path.

Reviews (46) · Last reviewed commit: "Remove obsolete migration guidance and c..." · Reviewed by Greptile

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs dd0a27f Oct 23 2026, 10:55 AM

@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch 2 times, most recently from e8df13d to 9a10c94 Compare October 20, 2026 07:51
@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch from 9a10c94 to 87ebd34 Compare October 20, 2026 08:00
@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch from 87ebd34 to 66fb034 Compare October 20, 2026 08:47
@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch from 66fb034 to bffe0a1 Compare October 20, 2026 08:56
@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch from bffe0a1 to 9e90441 Compare October 20, 2026 10:10
@tnkuehne tnkuehne changed the title Document organization selection for the browser, API and CLI Document organization selection and connector administration Oct 20, 2026
@tnkuehne
tnkuehne changed the base branch from fix/scoped-service-discovery to feat/scoped-connector-management October 20, 2026 10:10
@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Comments Outside Diff

These findings could not be posted inline.

  • P1 Connector page is hidden apps/control-plane/src/routes/(workspace)/connectors/new/+page.server.ts:6 ▶

    The new /connectors/new route hides the management page for a connector named new, which appSlug allows. Deploying that connector redirects back to the upload page, and its management link cannot reach its status or secret controls. Put connector creation on a route that cannot overlap an allowed connector name.

@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch 2 times, most recently from a557a33 to 072ab77 Compare October 20, 2026 10:29
@tnkuehne

Copy link
Copy Markdown
Contributor Author

Addressed all three findings in the outside-diff review in the implementation layer, #59:

  • Connector page is hidden: already fixed in b8870e8. Upload lives at /connectors/-/deploy; a connector named new retains its management URL.
  • Failed disconnects lose retry controls: fixed in 1948bb4. Management includes both saved and still-active bindings. Failed removals offer a retry; pending removals remain visible with disabled controls until activation confirms removal. Browser coverage verifies the queued retry, retained serving snapshot and final disappearance with JavaScript enabled and disabled.
  • CLI check never runs: fixed in 1948bb4. The rust-runtime job now includes connector-scope.integration.test.ts in its RUN_CLI_TESTS=1 invocation.

Validation: all 14 organization browser tests and all 5 scoped connector integration tests passed, including the real Rust CLI. pnpm check and both Node and Cloudflare builds passed. This PR is rebased onto the corrected implementation and still contains only documentation changes.

@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch from 072ab77 to 3555bd5 Compare October 20, 2026 14:10
@tnkuehne
tnkuehne force-pushed the docs/organization-selection branch 2 times, most recently from 878de60 to 8955286 Compare October 20, 2026 15:10
@tnkuehne
tnkuehne added this pull request to stack #60 October 20, 2026 15:40
Base automatically changed from feat/scoped-connector-management to main October 20, 2026 15:45
tnkuehne added a commit that referenced this pull request Oct 20, 2026
Application access requires an authenticated fleet and organization
context. App creation, name resolution, listing, direct access,
catalogs, grants, previews and member lookup stay within that context.
Organization admins receive app permissions without installation-wide
administration. Background actors retain the context across database
connections, and preview-tree mutations reject cross-fleet
relationships.

App names are unique per fleet. An optional stable fleet hostname suffix
places apps and named previews directly under the shared `APP_DOMAIN`:
for suffix `alpha`, the app `notes` is assigned
`notes-alpha.apps.example.test`, with preview
`review-notes-alpha.apps.example.test`. Complete hostnames are reserved
atomically and checked against DNS limits. The CLI accepts both
supported preview layouts and prints the server-provided URL. Default
installations retain their existing URLs and preview layout.

Migration `0020_application_context` associates existing fleets with the
installation organization, replaces global app-name uniqueness and adds
the optional hostname suffix. Persisted actor commands from older builds
lack the required context and are rejected; drain outstanding
actor-based Cloudflare operations before upgrading. This is the
unreleased migration, updated in place. Explicit package exports and a
runtime composition parameter allow extensions to reuse the shared
implementation. Other administration and app-sign-in paths remain
installation-scoped.

Validation: 49 PostgreSQL application/context tests; 40 real CLI tests;
52 local workerd deployment tests, including app-service-created flat
app and preview addresses, actual Dynamic Worker routing and isolated
D1/R2 data. Strict types, format and lint passed; Node and Cloudflare
builds also passed on the complete implementation stack. All services
and fixtures were local.

Release-dependent documentation: #58, blocked until the corresponding
platform and CLI releases are published. No production deployment or
migration was performed.



<!-- greptile_comment -->

<!-- greptile_summary -->

<h2><a
href="https://app.greptile.com/api/retrigger?id=83988798"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img
alt="Retrigger"
src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"
align="right"></picture></a><a
href="https://app.greptile.com/mendra/github/widefleet/widefleet/-/pull/55"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img
alt="View in Greptile"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"
align="right"></picture></a>Confidence Score: 5/5</h2>

<!-- greptile-impact-verdict --> The reviewed changes appear safe to
merge; no new blocking issue was found.

<details open><summary><h3>Summary</h3></summary>

Application services now require an authenticated fleet context.
- App access and member searches stay within the authenticated fleet.
- Apps and named previews use names within each fleet’s hostname space.
- Background app work and preview trees keep the same fleet boundary.
</details>

<details open><summary><h3>Diagram</h3></summary>

```mermaid
%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Authenticated request] --> B[Select fleet]
  B --> C[Check organization membership]
  C --> D[Build application context]
  D --> E[Fleet-scoped application services]
  D --> F[Background actor]
  F --> E
  E --> G[Create app or preview hostname]
  G --> H[Check DNS limits]
  H --> I[Reserve unique hostname]
```
</details>

<!-- greptile_confidence_score:5 -->

<sub>Reviews (2) · Last reviewed commit: ["Use stable fleet suffixes for
flat app
a..."](239c85b)
· [Reviewed by
Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub>

<!-- /greptile_comment -->
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