feat: warn on stale/orphaned connectors in tunnel list#2
Open
drewr wants to merge 1 commit into
Open
Conversation
Tunnels whose connector lease has expired show 'stale' in a new
CONNECTOR column. Connectors that have no associated tunnel (left
over from an unclean shutdown) are shown in a separate ORPHANED
CONNECTORS section at the bottom of the table.
Changes:
- TunnelSummary gains connector_ready and connector_name fields
- New OrphanedConnector struct
- list_project_with_orphans() fetches all Connectors in one extra
API call, joins Ready status onto each tunnel, and collects any
Connector not referenced by a tunnel as an orphan
- Commands::List uses list_active_with_orphans(); emits
connector field ('ok'/'stale') and orphaned_connector entries
- RenderTable adds CONNECTOR column and orphan section
d9f955e to
b9e4d79
Compare
This was referenced Jun 20, 2026
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.
Important
This PR depends on #1 and should be merged after it.
Summary
datumctl connect tunnel listnow surfaces connector health so users can spot stale or orphaned connectors without needing to run a separatedatumctl get connectorscommand.New CONNECTOR column
Each tunnel row gains a CONNECTOR column showing
ok(lease active) orstale(lease expired — agent is offline, traffic will be dropped).Orphaned connector section
Connectors that exist in the project but are not referenced by any tunnel are shown in a separate section at the bottom of the table. These are typically left over from a tunnel agent that exited uncleanly.
Changes
connect-lib/lib/src/tunnels.rs:TunnelSummarygainsconnector_readyandconnector_namefields; newOrphanedConnectorstruct; newlist_project_with_orphansandlist_active_with_orphansmethods that fetch all Connectors in one extra API callconnect-lib/bin/src/main.rs:Commands::Listuseslist_active_with_orphans, emitsconnectorfield andorphaned_connectorentries in JSON outputconnect-plugin/internal/output/convert.go:RenderTableadds CONNECTOR column and renders orphaned connector section