Ready to read this content aloud.
Executive summary
Hosting a remote-support service yourself reduces reliance on third parties for certain functions, but it does not automatically make identity, security, and availability trustworthy. Operators become responsible for more trust boundaries: clients, rendezvous and relay services, management API, authentication, reverse proxies, endpoint configuration, and persistent state.
In this project, I preserved an existing RustDesk OSS service used by native clients and introduced a separate management API with corporate login, HTTPS publishing, and a web interface. This separation made it possible to evolve administrative functions without simultaneously replacing the core remote-support service.
The API deployment and positive authentication path were validated. However, browser-based remote control, broad revocation coverage, and restoration of the new API were not accepted in the latest checkpoint examined. Those limits determine the conclusions of this study.
The implementation is private. Architecture and integration issues are generalized without revealing the organization, real endpoints, credentials, inventory, firewall rules, or exact topology.
The problem: one solution, four operational products
It is tempting to describe everything as a “RustDesk server.” That hides distinct responsibilities:
| Layer | Responsibility | Risk of conflation |
|---|---|---|
| Native client | Initiate or receive remote sessions using approved configuration | Successful installation can hide a broken service or configuration |
| OSS rendezvous/ID and relay | Connection discovery and transport between clients | Panel failure does not necessarily mean relay failure |
| Management API and panel | Login, inventory/administration, integration | Publishing the API does not enable functional browser remote control |
| WebClient | Establish a support session inside the browser | Loaded pages and WebSocket handshakes do not prove a working session |
The goal was not merely to display a login screen over HTTPS. It was to establish which control was tested at each hop and which functions still lacked evidence.
Trust boundaries rather than port numbers
The simplified design is:
The management API has its own persistent data and does not inherit client identities for convenience. The entry proxy receives authorized incoming traffic; backend access is limited to approved origins with certificate verification. The application process stays bound to the required host-local interface.
The OSS components remain responsible for native connection transport. That split also supports incident diagnosis without restarting every component indiscriminately.
Evolving the API without changing transport
Adopting a compatible community management API delivered functionality, but it also introduced integration and upgrade ownership. A prebuilt Docker image is not a prebuilt security policy.
The deployment separated persistent configuration, the server’s public identity key, API state, and protected LDAP secrets. Authentication material stayed outside the repository and content served to the browser. Mutable Docker image tags deserve particular scrutiny: reproducible upgrades require a pinned version or digest reviewed before promotion.
The native client’s API server setting is independent of its ID and relay destinations. Changing the management endpoint should not inadvertently redirect an existing support channel. The public RustDeskIntuneDeployment package handles Windows client distribution and detection; it does not deploy, secure, or certify the private API.
End-to-end TLS requires explicit trust
The browser checks the entry certificate, but the proxy must also verify the backend service certificate. A network hop does not become trustworthy merely because it is considered “internal.”
In this design, the public entry certificate and internal backend certificate use distinct trusted chains, both subject to verification. Configuration needs the correct certificate name, appropriate CA, and backend SNI, together with restrictions on permitted sources.
A 200 OK for the home page proves only an HTTP response. It does not prove authentication, authorization, relay connectivity, or remote-control functionality. This distinction became important during web-interface validation.
LDAPS is not the whole authorization model
Encrypted LDAP enables authentication against corporate accounts. Public registration can be disabled, while a local administrative contingency account receives separate protection.
A successful login for an authorized user is the first gate, not the last. The full acceptance matrix must also cover:
- denial of ineligible accounts;
- effective separation of operator and administrator rights;
- group revocation and already-open sessions;
- token expiration and invalidation;
- directory outages;
- compensating measures when the login layer does not provide MFA.
LDAPS secures the channel and authenticates credentials; it does not add MFA. A source allowlist or rate limit on the admin login path does not prove coverage of every client authentication route either. The control needs real negative requests and correct source-address interpretation behind proxies.
Why HTTP 101 was not enough for WebClient
One of the most instructive issues was the boundary between a successful WebSocket upgrade and actual remote control.
WebSocket routes returned 101 Switching Protocols, confirming that the proxy negotiated the protocol on those paths. During WebClient testing, however, the session still failed to establish the full connection path to the required service. Another interface variant was unavailable at the expected path.
The appropriate conclusion was:
| Acceptance gate | Result |
|---|---|
| Management API HTTPS | Verified |
| Authorized corporate login | Verified |
| WSS route handshake | Verified |
| Browser remote control | Not accepted |
There is no contradiction. A handshake does not verify subsequent messages, JavaScript-selected endpoints, session authorization, or client/server version compatibility.
Similarly, a page behaving differently in a private browser window is a diagnostic signal about cache or session state, not proof of broad compatibility. Native client support remains a separate operational domain.
Persistent files are a security boundary
Two categories of state must never be considered disposable:
- Support server identity and configuration: cryptographic material, runtime settings, and data required for clients to recognize the correct server.
- Management identity: SQLite database, profiles, directory integration, protected credentials, and proxy settings.
Persistent volumes must survive container replacement. SQLite backups require a consistent copy strategy, especially with active transactions and WAL files. Copying a database file while it is being written is not automatically a recoverable backup.
Private-key file permissions, access to persistent volumes, retention, protected copies, and restore drills are part of the threat model. A public key intentionally shared with clients must not be confused with the server’s private key.
An acceptance matrix with explicit limits
| Capability | Evidence at the reviewed checkpoint |
|---|---|
| Native OSS rendezvous/relay | Operational in the service baseline |
| Management API process and persistence | Deployed |
| HTTPS publishing and backend certificate verification | Configured and tested |
| Authorized-user LDAPS login | Validated |
| WSS upgrade on published routes | 101 confirmed |
| Browser remote control | Not accepted |
| Account and token denial/revocation across all scenarios | Not fully demonstrated |
| Consistent backup and restore for the new API | Not demonstrated |
| Fleet-wide Intune update for this API | Separate workstream and evidence |
The result is a partially validated technical deployment, not blanket certification of remote web access. I have not assumed that open gaps were subsequently resolved.
Engineering lessons and next gates
I would keep five independent acceptance gates for self-hosted support: identity and rights, hop-by-hop TLS, real native-client availability, recoverable persistent state, and end-to-end WebClient tests when browser support is required.
The next work also needs negative tests for groups, tokens, rate limiting, and source restrictions, along with pinned container images and a restore exercise. Only then would I widen rollout under an explicit risk decision.
The central lesson is straightforward: self-hosting means owning dependencies, not assuming they are already controlled.
Confidentiality statement
The flows are simplified. No real domains, IP addresses, hosts, access rules, user identifiers, support data, credentials, private key material, or environment-specific vulnerability details are published.