Skip to content

[codex] Fix node-scoped Linear disconnect#157

Merged
rhymiz merged 2 commits into
mainfrom
lb/node-scoped-linear-disconnect
Apr 29, 2026
Merged

[codex] Fix node-scoped Linear disconnect#157
rhymiz merged 2 commits into
mainfrom
lb/node-scoped-linear-disconnect

Conversation

@rhymiz
Copy link
Copy Markdown
Contributor

@rhymiz rhymiz commented Apr 29, 2026

Summary

  • Add node-scoped Linear connection links so disconnecting one Foreman server node does not disconnect other nodes that share the same Linear workspace credential.
  • Send the selected node id on desktop proxy requests and enforce active node-link checks before node-scoped Linear operations can use or refresh credentials.
  • Revoke shared Linear workspace credentials only after the last active node link is removed, and update docs for the node-scoped disconnect behavior.

Root Cause

Linear connection rows were keyed around the Foreman user and Linear workspace, so disconnecting a workspace revoked the shared credential row. Multiple Foreman server nodes owned by the same user could therefore lose access when only one selected node was disconnected.

Validation

  • cargo test -p foreman-proxy
  • cargo test --workspace
  • cargo fmt --check
  • cd foreman-desktop && bun run typecheck
  • git diff --check

@rhymiz rhymiz marked this pull request as ready for review April 29, 2026 16:36
@rhymiz rhymiz requested a review from foreman-vk as a code owner April 29, 2026 16:36
@rhymiz rhymiz merged commit ae4f506 into main Apr 29, 2026
2 checks passed
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