Skip to main content

Hosts and Access Entries

Everything you reach in Selvara RMM hangs on one chain: a customer holds folders, a folder holds hosts, and a host holds what it takes to reach it: its access entries (the stored SSH, RDP, VNC and web logins), its addresses and shares, and how it is reached (directly, over its own agent, or through a tunnel host). It may run the agent and be monitored, or it may only be connected to. This page is how that chain works: what a host without an agent is, what a link host is, what a host owns, how reachability decides how a host opens, how folders file hosts, what the host trash holds, and what happens when an agent is installed on a host or removed from it. For the screens see Customers and Hosts; for the access entries themselves, passwords and the desktop app see Access Entries; for what happens when you press Connect see Opening a host.

Kinds of host​

Host with an agentHost without an agentLink host
Kindagentremoteweblink, local or vscode
StatusOnline, Offline, Degraded, StandbyNo agent (UNMANAGED)No agent (UNMANAGED)
What it isa machine that is monitoreda machine you only connect toone web address, one local VS Code or WSL target, or one remote VS Code project
In the hosts lista coloured row with its measurementsa grey row, no metrics, and what opens on ita grey row with its address
Counted as downyes, when it stops reportingnevernever
Monitoring, alerts, patching, security, reportsyesno, it is not part of the fleetno
Jobs, shells, scripts, scans, service actionsyes, where permittedrefused with 409 host_unmanagedrefused with 409 host_unmanaged
Access entriesany number (up to 64)any number (up to 64)exactly one
Addresses, shares, reachabilityyesyesno (a link host has one target)
Deleting itdeleted for goodgoes to the trash with its entriesgoes to the trash with its entry
Customer without a service contractcannot have onecan have any numbercan have any number

A host without an agent (kind remote) is where the access entries to a machine hang when nothing is installed on it. It has a name, a region, tags, a colour, notes and a folder like any other host, and appears in the hosts list under Infrastructure → Hosts next to the monitored ones. The monitoring lists, the counts on the home page and the overview, alerts, charts, patching, security and access leave it out. Everyone who reaches a customer sees the customer's hosts without an agent, whatever their role; what they may do with them follows their permissions. A network device polled over SNMP is a third kind and has no agent either, but it is not a host for access entries; see SNMP Devices.

The status No agent is not a fault. Nothing alerts on it and nobody is told, and the database keeps the two apart: a host has the status No agent exactly when it has no agent.

Names are unique inside a customer, ignoring case. A second host that would take a name that is taken gets -2, -3 and so on when it is created by a host registering itself, and is refused with 409 name_taken when a person types the name.

A link host is a host that is a single thing to open, so it carries exactly one access entry and nothing else. There are three kinds:

  • Web link (weblink): one web address, with its own user name, stored password, icon and quicklink switch. It is how a Proxmox login, a router page or a SaaS site is kept.
  • Local (local): one local VS Code folder, or one folder in a WSL distribution. There is no longer one Local computer host per customer: every folder is a host of its own, filed in a folder of the tree like any other.
  • VS Code (remote) (vscode): one project folder on a machine you reach over SSH, opened with VS Code Remote-SSH. Its entry holds the SSH address and port, the user name, the stored password, the project folder and the icon, and the host's name is what the list shows. It opens in the desktop app only; the web interface offers Open in VS Code (which hands over to the app) and copies of the user name and password. Every project is a host of its own, so projects on one development server can be filed in different folders.

Link hosts are not devices. They are left out of the counts of hosts, the fleet, inventory, patching, monitoring, alerts, vulnerabilities, maintenance, discovery, the search for twins and the customer's stat cards, they take no agent and no merge (merge_invalid), and no customer needs a service contract for them. They can be renamed, tagged, coloured, filed in a folder, moved to another customer and trashed like any other host without an agent. They are created and edited as one unit, the host and its entry in one step (/api/links, see the API), and the dashboard's one Add host button offers, under Without agent, the choices Host, Web link, Local VS Code or WSL and VS Code (remote); With agent creates a monitored host and shows its key.

Viewers do not see link hosts. A person with the role Viewer sees no web links, local targets and remote VS Code projects, in the dashboard or in a loader: they can contain user names and internal addresses, exactly like access entries, which viewers never saw.

What a host owns​

Everything below is stored with the host. Access entries refer to it, and it is shown on the host's Access tab (?tab=access; the old ?tab=connections leads there). An agent host's entries are also the Access tab of its Edit host dialog (?edit=access).

Addresses​

A host answers to one or more addresses, a DNS name or an IP address without scheme, port or brackets. The list is a union of two sources:

  • Reported addresses, which an agent sends with every report (its hostname and the addresses of its interfaces). They exist for hosts with an agent only, are shown read-only with the badge reported by agent, and disappear from the list when the agent stops reporting them.
  • Manual addresses, which a person adds (up to 64 per host, each with an optional label). They are the only ones that are stored. A manual address can be changed and deleted; changing its value rewrites the access entries that use it in the same step, and deleting one that entries use is refused with 409 address_in_use and their number.

When a reported and a manual address are the same name the reported one is shown; adding a manual address that is already in the list is refused with 409 address_taken. An access entry of protocol SSH, RDP or VNC must use one of the host's addresses, picked from the list when it is created (address_unknown otherwise); the Access entry dialog can add the address in the same step. If an agent stops reporting an address an entry still uses, the entry keeps working and shows no longer reported.

Web entries​

A web page of a host (a Proxmox interface, a management page, a status page) is a web access entry, like any other login. It has an optional name, an http or https URL, an optional user name and password, an icon and a quicklink switch that puts it on the quick access board. Without a name the host part of the URL is shown. A host may hold several web entries; two with the same URL and user name are refused (access_duplicate). URLs that start with javascript:, data:, vbscript: or blob: are refused (unsafe_url_scheme). The name is only for web entries and at most 200 characters.

A web entry is opened as typed in a browser; the desktop app opens it through the tunnel host when the host's tunnel switch is on and a tunnel host is chosen (see Reachability). Earlier versions kept a separate list of web addresses beside the entries. The upgrade turned each into a web entry under the same id, so links, quicklinks and favourites keep working; an address the host already had as a web entry was merged into that entry (its quicklink switch and name were kept), and an address on a link host, which holds exactly one entry, was dropped.

Shares​

A share is a file share of the host: a UNC path (\\server\share), an absolute path or an smb:// address, with a name. Up to 64 per host. {host} in the path becomes the host's first address and {user} the user name of the entry of that host you used last (otherwise its oldest one); a share whose {user} cannot be filled is copy-only. A browser cannot open a share, so it copies the path; the desktop app opens it. A share is never tunnelled.

Tags, colour and notes​

Tags, colour and notes belong to the host. Tags are shown in the lists and found by search; a tag keeps the case it is typed in. A host holds up to 50 tags of at most 80 characters. A person who may edit the customer's access (connection.edit) can set the tags and the colour of any host, also of a host with an agent, with PATCH /api/systems/{id}/labels; the host's edit dialog and PATCH /api/systems/{id} take the same fields under the host's own right. Notes are the host's Notes tab.

Reachability​

A host has no reach mode. It has paths, and which of them exist follows from facts the host already has:

PathIt exists whenUsed by
DirectalwaysThe desktop app: a click, and the first entry of the right-click menu. Nothing travels through Selvara.
Via agentthe host has an agentThe browser by default, and the right-click entry Connect via agent in the desktop app. The traffic goes over the gateway's relay, and the agent connects to its own loopback; the entry's address is only a label.
Via tunnel hostthe host's tunnel switch is on and a tunnel host of the same customer is chosenThe browser when the agent path is blocked by the state of the agent, and the right-click entry Connect via tunnel host in the desktop app.

Link hosts and network devices have only the direct path. Nothing is stored for the first two paths: installing an agent adds the agent path, removing it takes the path away, and neither changes the tunnel switch or the chosen tunnel host.

The tunnel switch and the tunnel host are set on the Access tab's Reachability card or with PUT /api/systems/{id}/reachability ({ "viaTunnel": true, "tunnelSystemId": "..." }; viaTunnel: false clears both). That needs connection.edit at the customer and is audited as host.reachability_set. The refusals are tunnel_system_required (the switch is on and no tunnel host is given), invalid_tunnel_system (not an agent, another customer, the host itself, or not marked as a tunnel host), tunnel_host_required, customer_not_monitored, tunnel_requires_customer and host_kind (a link host or a network device). The old body { "mode": ... } is still accepted for scripts and is deprecated; see API.

What each path allows in the browser and in the desktop app is on Opening a host. In short:

  • The browser picks the agent path, and the tunnel host path only when the agent path is blocked because the agent is offline, not yet approved or too old, or because the desktop action is off (Agent Settings), and the tunnel host is available. A missing right is never worked around. RDP, VNC and SSH open this way; SSH is a real login with the stored entry, and the agent terminal is its own item (Web Terminal).
  • The desktop app connects directly on a click, which is never blocked by the agent's state, the desktop and tunnel actions or the tunnel right. The right-click menu offers Connect via agent and Connect via tunnel host for the paths that exist. A host that is only reachable through its agent (behind NAT) therefore needs the right-click entry.
  • A host without an agent and without a tunnel host opens in the desktop app only, because the dashboard cannot reach the customer's network by itself. The Access tab says so. To open such a host in the browser, route it through a tunnel host.
  • The agent path ignores the entry's address. It always connects to the host's own loopback, so an entry on an agent host that names another machine connects to the agent host.

Changing the tunnel switch, deleting an entry or trashing a host closes the sessions that its route no longer allows.

How the reach modes of earlier releases became paths is described under Upgrading to 3.5.0; the step from the earlier connection model to 3.4.0 under Upgrading to 3.4.0.

Folders​

A customer has one level of folders, and so does every private customer. A folder holds the customer's hosts. An access entry is in its host's folder; it has none of its own.

  • File a host on the host's page, or with Move to folder in the selection bar of the hosts list, which moves any number of hosts of one customer in one step (POST /api/connection-folders/move-hosts) and disables, with the reason, what the person may not move. A host with an agent is filed the same way. Moving a host to another customer unfiles it.
  • The entries follow the host. There is nothing to set on an entry. Link hosts are filed like any other host; a web link, a local folder and a remote VS Code project sit in the folder tree next to the machines.
  • Group by folder in the hosts list puts a collapsible header above each folder, and the Folder filter (and folderIds and unfiled in the API) narrows the hosts, alerts, patches, patch runs, security and access lists to the folders of their hosts. A folder only narrows what a person already sees.
  • Deleting a folder (DELETE /api/connection-folders/{id}) does not delete its hosts or their entries: they become unfiled. Only the folder goes to the trash, and restoring it brings back an empty folder; the hosts are not filed again.
  • Merging customers merges folders of the same name into one.

Access entries of a host​

The Access tab of a host lists what is stored for it and has one card per kind of data: access entries, addresses, shares and reachability. An entry's row shows its protocol icon and title on one line; the info button next to it lists protocol, address, port, login, path, URL and whether a password is stored, each with a copy button (the password itself is never shown). For a link host the tab is the one form of its single entry; its name, folder, tags and colour are edited with the host. Connect on a host (in a row or on its page) lists what the host offers; see Opening a host. A host with entries cannot disappear unnoticed: deleting it, or a customer with such hosts, asks first and says how many entries are affected.

An access entry is created on a host that is chosen; nothing is guessed from an address any more. The Add access dialog is on the host's tab, and a host is created first (Add host) when there is none. Consequences:

  • An entry cannot change host. Create it on the other host and delete the old one.
  • An entry cannot move to another customer on its own. Its customer is the host's, set by the database; move the host.
  • Two entries with the same protocol, address, port and user name are allowed (their credentials may differ); the API refuses an exact duplicate with 409 access_duplicate.
  • A host holds at most 64 entries (limit_reached), and a link host exactly one.
  • Which protocols a host takes follows its kind: a host with or without an agent takes SSH, RDP, VNC and web (a Proxmox page on pve1:8006 is a web entry of pve1); a web link takes a web entry only; a local host takes VS Code and WSL entries only; a VS Code (remote) host takes one VS Code entry with an SSH address; a network device takes none.

The session list and the access lists open a host directly on its Access tab. A link of the form /systems/<id>?tab=access&entry=<entry id> scrolls to one access entry and highlights it for two seconds; an entry that no longer exists is ignored. The parameter is not written back, so reloading the page does not highlight it again.

Possible duplicates​

A host without an agent that another host of the customer may be the same machine as (the same name, hostname or any address, reported or manual, under another spelling) is listed with the evidence, on the customer's page and on the host. Nothing is merged on its own. Link hosts take no part. Not a duplicate of … (the cross next to a name) removes that pair from the list for everyone, and records it in the audit log (POST /api/systems/{id}/not-duplicate with { "other": "<host id>" }); a later match with another host is still listed. Merge into… folds a host without an agent into another host of the same customer (POST /api/systems/{id}/merge): its access entries, addresses and shares move, its tags and notes are added to the target's, the target takes its folder when it has none, keeps its colour (or takes the merged host's when it has none) and takes over a tunnel switch and tunnel host of the merged host when its own tunnel switch is off, and the host is deleted.

Moving a host to another customer​

A host moves with its access entries, addresses, shares, tags, colour and notes, and arrives unfiled; the database sets the customer of its entries. A tunnel that would span two customers is cut: the moved host's tunnel switch is turned off, and every host that reached through it keeps its switch but loses the tunnel host, so its card asks for a new one. A host and its tunnel host that move together in one call keep the tunnel. A link host moves like any other host.

Tunnel hosts​

A host can be reached through the tunnel of an agent inside the customer's network. Which agents may carry them is the customer's decision: an agent is a tunnel host once it is marked as one. Only tunnel hosts are offered where a host's tunnel switch is turned on, in the dashboard, and the server refuses any other host with 422 invalid_tunnel_system. A host without an agent, a network device and a link host cannot be one.

  • Mark a host on its page, in the Edit host dialog (Tunnel host), or with PATCH /api/systems/{id} and "tunnelHost": true. The bulk action tunnel_host of POST /api/systems/bulk marks or unmarks many at once. It needs the right to manage the host and is audited as system.tunnel_host_change.
  • Unmark the same way. A tunnel host that other hosts still reach through is not unmarked: the answer is 409 tunnel_host_in_use with details.hostCount and details.entryCount, the number of hosts that use it and of their access entries, and in a bulk call the host is skipped as in_use. Set those hosts to another route first. When a tunnel host is unmarked in a bulk call, hosts in the trash that reached through it lose the tunnel host and keep their switch.
  • A customer without a tunnel host offers no tunnel choice in a host's Reachability card, only a hint that says where to mark one.
  • Moving an agent to another customer takes the mark off, unless the hosts that reach through it move with it; removing the agent takes it off too.

Putting an agent on a host, and taking it off​

  • Install agent turns a host without an agent into an agent in place (POST /api/systems/{id}/install-key), for a customer with a service contract or in your own area. The id, name, access entries, addresses, notes, tags and folder stay; the host gains the agent path and its tunnel switch is kept; the install key is shown once, and the host reads offline until the agent reports. See Agent Installation.
  • A host that enrols itself is found, not duplicated. When it presents an enrollment token and exactly one host without an agent of that customer answers to the hostname it reports (by name or hostname, or by an address together with a name), that host receives the agent in place and keeps its name, and the enrollment is recorded as such. A match on an address alone, several matches, or a host that already has an agent create a new host; the customer page then offers Merge for what may be the same machine. A new agent has the agent path. See Enrollment tokens.
  • Remove agent is the reverse (POST /api/systems/{id}/remove-agent). The host stays with its id, name, notes, tags, folder, addresses and access entries, and it loses the agent path. Hosts that reached through it as a tunnel host lose their tunnel host and keep their switch. What the agent produced is deleted: measurements, alerts, events, jobs, patch and inventory data, services, vulnerability findings, SSH keys, sessions, and the settings and policies that only an agent used. The agent that is still installed is turned away from then on, with its own secret and with the instance's, so uninstall it on the machine (Uninstalling); until then it keeps trying.
  • End monitoring for a customer (Customers and Hosts) keeps an agent that has access entries as a host without an agent and deletes the others.
  • Regenerating the install key replaces the key of a host that has an agent. A host without an agent and a network device have none to replace and answer 409 host_unmanaged.

Deleting a host, and the host trash​

Delete host (DELETE /api/systems/{id}, or delete in POST /api/systems/bulk) treats the kinds of host differently:

  • A host without an agent and a link host go to the trash, together with their live access entries, all stamped alike. Notes, tags, addresses and shares stay with them. The host disappears from the hosts list, the customer's counts, the folder counts, the pickers and every search, and a new host may take its name. The customer's trash lists the host with the number of entries that return with it (a link host shows its address instead), and entries that were deleted on their own earlier as separate rows.
  • A restore brings the host back with the entries that were trashed with it (POST /api/connection-trash/hosts/{id}/restore). A name that is taken in the meantime gets a number after it, and a folder that is in the trash is left. Restoring an entry by itself (POST /api/connection-trash/access-entries/{id}/restore) brings it back to its host; when the host is in the trash, restoring the entry restores the host alone, and the other entries stay in the trash. The entry of a link host is never listed on its own.
  • Purging (DELETE /api/connection-trash/hosts/{id}) deletes the host, its notes and every entry that hung on it, trashed or not. The daily trash sweep does the same for hosts that have been in the trash longer than the trash retention (30 days by default; see Configuration), and audits it as system.purge.
  • An agent or a network device is deleted for good with everything it measured. The access entries that hang on an agent go with it, they are not put in the trash. The dialog says how many entries are affected in either case, and a delete does not go through until that is confirmed. A link host is its own entry, so deleting one needs no confirmation.

For historical reasons the delete call keeps the wire names confirmConnections in the body, confirm_connections_required with details.connections in the refusal, and connectionsTrashed and connectionsDeleted in the answer; they count access entries now.

Everything that is trashed this way is audited as system.delete (trashed says which), system.restore and system.purge.

Who may do what​

ActionNeeds
See the hosts of a customerany role with access to the customer, a viewer included, read-only; a viewer does not see link hosts
Add, rename, file, move, merge and delete a host without an agent, and create, edit and delete a link hostthe right to edit the customer's access entries (connection.edit)
Edit a host's access entries, addresses, shares and reachabilityconnection.edit at the customer, not the host's own right; see Security
Set the tags and the colour of any hostconnection.edit at the customer
Install the agent, remove it, regenerate its keymanage the customer's hosts (an administrator, or a manager granted the customer)
Mark or unmark a tunnel hostmanage the customer's hosts
Restore or purge a trashed host or entryconnection.edit
Connect, copy a passwordthe access permissions of the customer; see Access Entries

Hosts in a private customer follow the same rules with one difference: only the owner reaches them.