Repository navigation
Remove the connection request table and API availability column - #372
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 2491d3b | Nov 24 2026, 04:21 PM |
tnkuehne
force-pushed
the
open-connections-cleanup
branch
from
November 24, 2026 13:41
a96db7f to
a0b1b70
Compare
tnkuehne
force-pushed
the
open-connections
branch
from
November 24, 2026 13:41
2a69f86 to
9ef69a5
Compare
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`
tnkuehne
force-pushed
the
open-connections-cleanup
branch
from
November 24, 2026 16:20
a0b1b70 to
2491d3b
Compare
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; | |||
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drops the
connection_requesttable and theapp.service_access_modecolumn 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
0041with a stored connection request and availability value removes the table and the column and keeps the apps.Verify that each Hosted installation is running a Worker that includes #369 before applying
0042.Findings
Summary
Migration
0042removes theconnection_requesttable andapp.service_access_modecolumn now that #369 no longer uses them.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"]Reviews (1) · Last reviewed commit: "Drop the migration journal check" · Reviewed by Greptile