Skip to content

chore(management): drop the unused hbbr-local HTTP endpoints - #62

Merged
YuZhiYuanDev merged 1 commit into
masterfrom
chore/drop-hbbr-local-management-endpoints
Oct 17, 2026
Merged

YuZhiYuanDev merged 1 commit into
masterfrom
chore/drop-hbbr-local-management-endpoints

Conversation

@hashbk

@hashbk hashbk commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the Console server-management v2 rework (#439 in rustdesk-console, #59 here): the per-service management API design from #52 kept an optional local HTTP listener and direct session endpoints on hbbr, but nothing consumes them anymore — Console talks to a single upstream (the hbbs management API) and every relay is aggregated behind the /v1/relays/:id/* proxy endpoints over the outbound control channel.

  • Remove the hbbr-only GET /v1/sessions and DELETE /v1/sessions/:uuid handlers and their routes (sessions_snapshot/disconnect_session stay: the control channel uses them).
  • Stop starting the local management listener on hbbr; keep init_managed_state because the control channel's proxied requests need the state.
  • Update docs/management.md to state that the HTTP API is served by hbbs only.

What stays from #52

.dockerignore (used by the docker build contexts), management-schema.json (compiled in via include_str! and backing /v1/config) and the hbbs management API itself remain in use; docker-managed/ and its CI job were already dropped in #61.

Validation

cargo check --locked --all-features --all-targets and cargo test --locked --all-features pass locally (48 tests). No Console-side change is required: it never calls the removed endpoints.

The hbbr-local management endpoints (GET /v1/sessions, DELETE
/v1/sessions/:uuid) and the optional local listener startup came from
the original per-service API design. Since the relay control channel
aggregates every relay behind the hbbs proxy endpoints
(/v1/relays/:id/*) and Console only talks to the hbbs API, nothing
consumes the hbbr listener anymore. Keep initializing the managed
state for the control channel but never bind a local listener on
hbbr, and update the documentation accordingly.
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 59c59424-8163-4698-9d91-26dffffec5cb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@YuZhiYuanDev
YuZhiYuanDev merged commit 9b949db into master Oct 17, 2026
3 checks passed
@YuZhiYuanDev
YuZhiYuanDev deleted the chore/drop-hbbr-local-management-endpoints branch October 17, 2026 11:24
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.

2 participants