Skip to content

Node groups

A node group is a named set of nodes. Groups are how policies reach machines: you bind a policy to a node group, and every node in the group receives it. This page covers creating, editing and deleting node groups, how membership works, adding and removing member nodes, and generating enrollment tokens.

Open it from Fleet -> Node Groups in the sidebar.

How group membership determines policies

  • A node can be a member of any number of node groups, and a group can contain any number of nodes (many-to-many).
  • A node receives every policy that is released and has an enabled binding to at least one of its groups. A policy bound to several of the node's groups is delivered once.
  • A node in no group (shown as Unassigned) receives no policies.
  • When several policies of the same type apply to one node, they are merged on the node. The binding priority decides which value wins for some policy types; see Bindings.

New nodes join the node group of the enrollment token they used. You can add them to more groups later, either from the group (see Manage the members of a group) or from the node on the Nodes page.

The node group list

Node Groups page listing groups with their description, number of nodes and creation date, and the Create Node Group button

Column Content
Name Group name. Sortable.
Description Optional description.
Nodes Number of member nodes. Select it to open the Nodes page filtered to this group. Sortable.
Created Creation time. Sortable.

Use Search by name or description... to filter the list. The row menu offers Add nodes..., Manage members, Generate token, Edit and Delete. Tick several rows to use Actions for bulk Edit (one row only) and Delete.

Create a node group

  1. Select Create Node Group.
  2. Enter a Name (for example Engineering Desktops) and an optional Description.
  3. Select Create.

Requires node_group:create.

Plan groups around policy needs

Groups are cheap. Typical layouts are by department (Finance, Engineering), by location (Berlin Office), by hardware or role (Kiosks, Laptops), plus a broad group such as All Desktops for baseline policies. Because nodes can be in several groups, you can combine a baseline group with more specific ones.

Manage the members of a group

Add nodes

  1. In the row menu of the group, select Add nodes....
  2. The dialog lists the nodes that are not members yet, with their status and current groups. Use the search box to narrow the list (name, FQDN or IP address); ticked nodes stay selected when you search again. At most 100 nodes are listed at a time.
  3. Tick the nodes and select Add.

The nodes keep their other groups. Requires node:view and node:create.

Review and remove members

  1. In the row menu of the group, select Manage members.
  2. The dialog lists the member nodes with their status and their other groups. Search and page through the list as needed.
  3. To remove one node, select Remove in its row and type the node name to confirm. To remove several, tick them, select Remove selected and type Yes.

A removed node stops receiving the policies bound to this group and keeps its other memberships; a node left in no group receives no policies. Open in Nodes opens the Nodes page filtered to the group. Viewing requires node:view; removing requires node:delete.

To set all groups of one node in a single dialog, use Change groups on the Nodes page.

From a script

The same actions are available over the REST API:

POST   /api/v1/node-groups/{group_id}/nodes            {"node_ids": ["...", "..."]}
DELETE /api/v1/node-groups/{group_id}/nodes/{node_id}

The POST adds up to 500 nodes in one call, applies fully or not at all, skips nodes that already are members and answers {"added": N}. Both calls need the same permissions as the dialogs and are recorded in the audit log.

Edit a node group

Select Edit in the row menu. You can change the Name and Description, then select Save. The dialog also shows the Group ID with a copy button; you need this ID when configuring Kerberos auto-enrollment (see Kerberos). Requires node_group:edit.

Delete a node group

  1. Make sure the group has no member nodes. The server refuses to delete a group that still has nodes assigned (cannot delete node group: N node(s) still assigned). Remove them with Manage members first, or decommission them.
  2. Select Delete in the row menu (or Actions -> Delete for several groups).
  3. Type the group name to confirm (Yes when deleting several groups) and select Delete.

All policy bindings of the deleted group are removed with it. Requires node_group:delete.

Generate an enrollment token

An agent proves it may join the fleet with a one-time enrollment token that is tied to a node group. When the agent enrolls, the server creates the node and adds it to that group.

  1. In the row menu of the target group, select Generate token.
  2. Review the token rules shown in the dialog and select Generate Token.
  3. The dialog shows:
    • Enrollment Command - a ready-made sudo bor-agent --token ... command.
    • Token Only - the token itself, with a copy button.
  4. Copy the token and select Done. The token is not shown again after the dialog is closed.

Token rules:

  • The token expires 5 minutes after it is generated. The exact expiry time is shown in the dialog.
  • The token is single-use: it enrolls exactly one machine.
  • Generating a token requires node_group:create.

Prefer a token file over the command line

The generated command passes the token with --token, which is deprecated because the token becomes visible in process listings. Save the token to a root-only file and use --token-file instead:

sudo install -m 0600 /dev/null /root/bor-token
sudoedit /root/bor-token        # paste the token, save
sudo bor-agent --token-file /root/bor-token
sudo systemctl enable --now bor-agent
sudo rm /root/bor-token

The agent also reads the token from the BOR_ENROLLMENT_TOKEN environment variable. See Agent installation and the CLI reference.

For many machines, the Deploy agent dialog (masthead or Nodes page) can generate the token for you and produce one script that installs, enrolls and starts the agent. Pick the node group under Enroll into node group... and select Add enrollment step.

Machines joined to FreeIPA or Active Directory can enroll with Kerberos instead of a token; they then land in the group configured on the server. See Kerberos.

Verify

After enrollment, the new node appears on the Nodes page with the group in the Node Group column. The Nodes count of the group increases by one.