Skip to content

Cluster manager reverse tunnel#801

Open
edlerd wants to merge 1 commit into
canonical:mainfrom
edlerd:websocket
Open

Cluster manager reverse tunnel#801
edlerd wants to merge 1 commit into
canonical:mainfrom
edlerd:websocket

Conversation

@edlerd

@edlerd edlerd commented May 26, 2025

Copy link
Copy Markdown
Contributor

Done

  • added reverse tunnel to cluster manager
  • proxy endpoint to expose the LXD API through the tunnel
  • expect an authorization / bearer header for auth, reply with the session that the client can cache

Ready for review.

Comment thread cmd/microcloudd/cluster_manager_task.go Fixed
Comment thread cmd/microcloudd/cluster_manager_task.go Fixed
@edlerd edlerd force-pushed the websocket branch 7 times, most recently from 1d36035 to e4741bd Compare May 27, 2025 08:54
@roosterfish

Copy link
Copy Markdown
Contributor

@edlerd can this PR be closed?

@edlerd

edlerd commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

@edlerd can this PR be closed?

We might want to use this approach at a later time, so I'd keep it open in draft state.

@edlerd edlerd force-pushed the websocket branch 3 times, most recently from 99939f7 to 0f73e50 Compare February 27, 2026 09:22
@github-actions github-actions Bot added the Documentation Documentation needs updating label Feb 27, 2026
@github-actions github-actions Bot removed the Documentation Documentation needs updating label Feb 27, 2026
@edlerd edlerd force-pushed the websocket branch 6 times, most recently from 03a8fa9 to 99d12b3 Compare March 2, 2026 17:59
Comment thread cmd/microcloudd/cluster_manager_task.go Fixed
Comment thread cmd/microcloudd/cluster_manager_task.go Fixed
@edlerd edlerd force-pushed the websocket branch 3 times, most recently from 8988de9 to f1f9f2f Compare May 28, 2026 07:46
@edlerd edlerd marked this pull request as ready for review May 28, 2026 07:47
@edlerd edlerd changed the title Cluster manager proof of concept for reverse tunnel [spike] Cluster manager reverse tunnel May 28, 2026
@edlerd edlerd force-pushed the websocket branch 4 times, most recently from 1f74f54 to 79d3180 Compare May 28, 2026 15:11

@roosterfish roosterfish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi, thanks for this. I have left a few comments on the spec and here, mainly around how we spawn and manage the tunnel routine as well as some inconsistencies I have spotted between setting various cluster manager configs on the CLI compared to the underlying struct fields.

Comment thread api/types/cluster_manager.go Outdated
Comment thread api/types/cluster_manager.go Outdated
Comment thread api/types/cluster_manager.go Outdated
Comment thread api/types/cluster_manager.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Outdated
Comment thread cmd/microcloudd/cluster_manager_task.go Fixed
@roosterfish

Copy link
Copy Markdown
Contributor

Also can you please extend the cluster manager test suite to test the tunnel?

Timeout: 30 * time.Second,
}

lxdResponse, err := lxdHttpClient.Do(newReq)
@edlerd edlerd force-pushed the websocket branch 2 times, most recently from 6bbe407 to 7a910a3 Compare June 10, 2026 21:11
@edlerd

edlerd commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Also can you please extend the cluster manager test suite to test the tunnel?

Added some basic tests for setting / unsetting. To test the whole tunnel feature set, we'd need a full cluster manager in CI.

@edlerd edlerd requested a review from roosterfish June 11, 2026 06:48
@edlerd edlerd force-pushed the websocket branch 4 times, most recently from c08ac56 to 7201339 Compare June 15, 2026 11:06
Comment thread test/suites/cluster-manager.sh Fixed
@edlerd edlerd force-pushed the websocket branch 2 times, most recently from 41d2261 to fdbbad7 Compare June 15, 2026 14:54
Signed-off-by: David Edler <david.edler@canonical.com>
@edlerd

edlerd commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

@roosterfish please have another look at this, all comments above should be resolved.

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.

3 participants