Skip to content

Remove the connection request table and API availability column - #372

Merged
tnkuehne merged 3 commits into
mainfrom
open-connections-cleanup
Nov 24, 2026
Merged

tnkuehne merged 3 commits into
mainfrom
open-connections-cleanup

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Drops the connection_request table and the app.service_access_mode column that #369 stopped using.

This ships in a later deployment than #369. Hosted deployments migrate the database before the new control plane replaces the old one, and the previous control plane still selected app.service_access_mode.

Testing

  • Locally, once: an upgrade from 0041 with a stored connection request and availability value removes the table and the column and keeps the apps.

RetriggerView in GreptileConfidence Score: 4/5

Verify that each Hosted installation is running a Worker that includes #369 before applying 0042.

Findings

  1. P1 Older Workers lose app connections ▶

Summary

Migration 0042 removes the connection_request table and app.service_access_mode column now that #369 no longer uses them.

  • The database drops old connection requests and app access settings.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["Hosted applies migration 0042"] --> B["Live Worker continues serving"]
  B --> C["Hosted deploys replacement Worker"]
  B --> D["Pre-#369 Worker reads the dropped column and fails"]
Loading

Reviews (1) · Last reviewed commit: "Drop the migration journal check" · Reviewed by Greptile

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 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 2491d3b Nov 24 2026, 04:21 PM

@tnkuehne
tnkuehne force-pushed the open-connections-cleanup branch from a96db7f to a0b1b70 Compare November 24, 2026 13:41
tnkuehne added a commit that referenced this pull request Nov 24, 2026
…on (#369)

Connections to app APIs no longer need administrator approval. Anyone
who manages the calling app, as owner or collaborator, connects it to
any API in the organization. Administrators no longer choose per API
whether approval is required.

## Removed

- **UI:** availability page, connection request pages, the **Requests**
view and the approval grouping in **App APIs**, the **Access** row on
API pages, and the request variant of the connection form
- **API:** `PUT /api/v1/app-services/{appId}/access` and
`/api/v1/connection-requests` (list, create, approve, reject);
`accessMode` leaves the app service schemas
- **CLI:** `widefleet services access|requests|approve|reject` and
`widefleet connect --request`
- **Database:** nothing yet. The code stops reading `connection_request`
and `app.service_access_mode`;
#372 drops them in a later
deployment, because Hosted migrates before the new control plane
replaces the old one.

Binding permission checks stay the same: the caller must be an app the
person manages, and the provider must be a deployed app in the same
organization with the selected entrypoint. Cycle, binding-name and
resource-collision checks are unchanged.

Documentation: #370

## Screenshots

Member view, before and after.

| | Before | After |
| --- | --- | --- |
| App APIs, 1280 light | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-catalog-1280-light.png"
width="400"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-catalog-1280-light.png"
width="400"> |
| App APIs, 390 dark | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-catalog-390-dark.png"
width="200"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-catalog-390-dark.png"
width="200"> |
| API page, 1280 light | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-reference-1280-light.png"
width="400"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-reference-1280-light.png"
width="400"> |
| API page, 390 dark | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-reference-390-dark.png"
width="200"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-reference-390-dark.png"
width="200"> |
| Connection form, 1280 light | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-connect-1280-light.png"
width="400"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-connect-1280-light.png"
width="400"> |
| Connection form, 390 dark | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-connect-390-dark.png"
width="200"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-connect-390-dark.png"
width="200"> |
| Connections empty state, hint text, light | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-connections-crop-light.png"
width="380"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-connections-crop-light.png"
width="380"> |
| Connections empty state, hint text, dark | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/before-connections-crop-dark.png"
width="380"> | <img
src="https://gist.githubusercontent.com/tnkuehne/c16c68433ab4eb31c889b20b2c853eb2/raw/6dea6858069bcd0ecdc4e87b67d4d5ea7338c422/after-connections-crop-dark.png"
width="380"> |

Not shown: administrator views. They only lose the same elements.

## Testing

- `pnpm exec vitest run` (full default suite)
- `RUN_CLI_TESTS=1 pnpm exec vitest run
apps/control-plane/tests/app-services-cli.test.ts`
- Playwright: `lets members connect any API in their organization`,
`shows versioned service documentation through authenticated API and
accessible pages`
- `cargo clippy -p platform-cli --all-targets -- -D warnings`, `cargo
test -p platform-cli`
- `pnpm typecheck`, `oxfmt --check`, `oxlint --type-aware`
Base automatically changed from open-connections to main November 24, 2026 16:20
@tnkuehne
tnkuehne force-pushed the open-connections-cleanup branch from a0b1b70 to 2491d3b Compare November 24, 2026 16:20
@tnkuehne
tnkuehne marked this pull request as ready for review November 24, 2026 16:31
@@ -0,0 +1,3 @@
DROP TABLE connection_request;
--> statement-breakpoint
ALTER TABLE app DROP COLUMN service_access_mode;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Older Workers lose app connections

If a Hosted installation still runs a Worker from before #369, 0042 drops app.service_access_mode before Hosted replaces that Worker. The old Worker still reads the column, so app managers can’t add API connections until the replacement goes live. If the deploy fails, those requests keep failing. Verify that the live Worker includes #369 before running 0042.

@tnkuehne
tnkuehne merged commit eed3f9c into main Nov 24, 2026
16 checks passed
@tnkuehne
tnkuehne deleted the open-connections-cleanup branch November 24, 2026 16:39
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