Skip to content

Allow organization admins to manage their connectors - #59

Merged
tnkuehne merged 6 commits into
fix/scoped-service-discoveryfrom
feat/scoped-connector-management
Oct 20, 2026
Merged

tnkuehne merged 6 commits into
fix/scoped-service-discoveryfrom
feat/scoped-connector-management

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Organization admins could discover connectors but could not deploy them, manage secrets or grant app bindings: those operations still required installation administration and selected the default fleet. Connector management now uses the authenticated organization's admin role and fleet in shared services. The CLI and API deploy and update connectors; the browser manages existing connectors. Two organizations can deploy the same connector name with separate artifacts, secrets, jobs and app bindings. Installation settings, deployment-agent administration and runtime upgrades retain their operator permissions.

Cloudflare command admission checks the actor's organization against the target fleet. Subsequent Workflow steps match the immutable accepted command, and a rejected command cannot mark another operation as failed. Connector logs use the selected fleet and reject foreign targets before querying the backend. Native job claims retain their fleet boundary after opening a separate database connection.

The browser adds connector status, secret management and app binding forms, with links to connector logs. Every write includes the displayed organization, so stale tabs cannot write into a newly selected organization. Secret values are redacted from failed form responses. Activation is shown as pending until confirmed. Failed disconnects keep their still-active bindings visible with retry controls until removal is confirmed. Connector deployment and code updates use the existing CLI/API workflow; the CLI bundles source projects. Complete connector removal is not an existing operation and is not added here.

Stacked on #57. Release-dependent documentation is maintained separately in #58. This change does not enable a production multi-tenant installation or add onboarding, billing, domain provisioning or organization-specific app sign-in.

Validation:

  • pnpm check: strict workspace types, formatting and type-aware lint.
  • Connector API/CLI suite: 12 tests passed, including deployment with the real CLI.
  • Local workerd connector suite: 9 tests passed, including two organizations' actual Dynamic Worker activation and secrets, plus rejected Workflow replays.
  • Real Rust CLI against the authenticated shared API, with organization-scoped list, secrets and app bindings; existing connector CLI suite also passed. The scoped real-CLI test is included in the rust-runtime CI job.
  • Browser organization suite: 14 tests passed with JavaScript enabled and disabled, including navigation to API-deployed connectors named new, multiline secrets, binding changes, failed-removal retries, role revocation, secret redaction and stale-tab rejection.
  • Node and Cloudflare control-plane builds passed. All fixtures and services were local; no production deployment or migration was run.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new blocking issue remains.

Summary

Connector management now uses the selected organization’s admin role and fleet across shared services, API, CLI and browser.

  • Organization admins can deploy connectors and manage secrets in their selected fleet.
  • Organization admins can assign connectors only to apps in their fleet.
  • Connector logs show output only from the selected organization’s fleet.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Authenticated request] --> B[Selected organization]
  B --> C{Organization admin?}
  C -->|No| D[Reject management request]
  C -->|Yes| E[Use selected fleet]
  E --> F[Deploy connector]
  E --> G[Change secrets or app bindings]
  E --> H[Read connector logs]
  F --> I[Cloudflare steps match accepted command]
Loading

Reviews (5) · Last reviewed commit: "Remove manual connector bundle upload fr..." · Reviewed by Greptile

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 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 b9615dd Oct 20 2026, 03:12 PM

@tnkuehne
tnkuehne force-pushed the feat/scoped-connector-management branch from 1948bb4 to 1cb61d9 Compare October 20, 2026 14:10
@tnkuehne
tnkuehne added this pull request to stack #60 October 20, 2026 15:40
@tnkuehne
tnkuehne merged commit 5b9e3e9 into main Oct 20, 2026
18 checks passed
@tnkuehne
tnkuehne deleted the feat/scoped-connector-management branch October 20, 2026 15:45
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