Edge Agent Onboarding
Edge onboarding is intentionally simple:
- Install
serviceradar-agenton the host (RPM/DEB from the releases page). - In the UI, create an agent package.
- Copy/paste the enroll command on the host.
That is it. The agent enrolls, receives config, and starts streaming results.
Prereqs
-
You can reach the public web UI/API origin for your deployment over HTTPS.
-
The host can reach the public
agent-gatewaygRPC endpoint on TCP50052(outbound). This may be a different hostname or IP from the web UI. -
You have
sudoon the host. -
For Helm deployments, configure the public web and agent-gateway endpoints before creating an onboarding package. A common deployment uses separate DNS names and a dedicated agent-gateway
LoadBalancer:webNg:host: serviceradar.example.compublicUrl: https://serviceradar.example.comgatewayAddress: agent-gateway.example.com:50052agentGateway:publicHostname: agent-gateway.example.comservice:type: LoadBalancerannotations:external-dns.alpha.kubernetes.io/hostname: agent-gateway.example.com.webNg.hostis Phoenix's public host andwebNg.publicUrlis the bare HTTPS origin used by generated install commands and signed tokens. The CLI uses it only to download the onboarding bundle.webNg.gatewayAddressis the externally reachablehost:portwritten into that bundle asgateway_addr; the installed agent uses it for its long-lived mTLS gRPC connection.agentGateway.publicHostnameshould match the gateway DNS name and is used for the public artifact endpoint on TCP50053. The bundle verifies the gateway using the hostname fromwebNg.gatewayAddress, so the certificate presented by the gateway must cover that name. Changing the name can require certificate reissuance. Do not set any of these public values to a Kubernetes Service name.The agent-gateway can instead share a Gateway API data-plane address, but enabling the web
HTTPRoutealone does not expose gRPC. The parent Gateway must have TCP listeners for50052and, when enabled,50053; then configuregatewayApi.agentGateway.enabledand the matchingparentRefs. See Helm Deployment and Configuration.
1. Install The Agent (RPM/DEB)
Download the latest serviceradar-agent package from the ServiceRadar releases page and install it on the target host:
- Releases: github.com/carverauto/serviceradar/releases
- Debian/Ubuntu: install the
.deb - RHEL/Alma/Rocky: install the
.rpm
For the full hosted onboarding path (SSO, collectors, RBAC, and day-2 ops), see the Cloud Quickstart.
After install, confirm the CLI exists:
/usr/local/bin/srctl --help
2. Create An Agent Package (UI)
In the web UI:
- Go to Settings → Agent Deploy (
/settings/agents/deploy) - Click Create Agent Package (opens edge package creation)
- Fill in the required fields (gateway, agent ID/label, etc.)
- Submit and copy the edgepkg token from the success modal
Under Advanced options, set Partition and optionally Host IP.
Both values remain in the form during validation and are saved with the package.
Leading and trailing whitespace is removed on submission. An empty or
whitespace-only partition uses default; an empty or whitespace-only host IP
leaves address detection to enrollment.
The enroll command looks like:
sudo /usr/local/bin/srctl enroll --core-url https://<SERVICERADAR_HOST> --token edgepkg-v3:<token>
3. Enroll The Host
On the host where you installed the agent, paste the enroll command from the UI:
sudo /usr/local/bin/srctl enroll --core-url https://<SERVICERADAR_HOST> --token edgepkg-v3:<token>
Notes:
- Treat the token as a secret (it grants enrollment).
- Enrollment automates agent identity and mTLS — you do not generate or distribute certificates by hand for standard Cloud or chart-managed installs.
- Bundle/package download tokens are accepted only in explicit request headers or POST bodies, never in URL query strings.
- Enrollment requires verified HTTPS.
srctl enrollno longer supports an insecure TLS bypass. - Newly issued agent enrollment tokens use the signed
edgepkg-v3format. Signededgepkg-v2tokens remain accepted for upgrade compatibility. - The signed token embeds the deployment's public API origin. When
--core-urlis supplied, the explicit CLI value overrides the embedded origin after the same HTTPS validation. This lets an operator recover from a token minted with a stale hostname; create a new package after correcting the deployment value. --core-urldoes not override the agent's gRPC destination. The downloaded bundle suppliesgateway_addr, which comes fromwebNg.gatewayAddressin a Helm deployment. Correct that deployment value and issue a new package if the agent is dialing the web hostname on50052or another unreachable endpoint.- If you need to re-enroll, generate a new agent package to get a fresh token. Re-enrollment is also how an existing packaged Linux host publishes host-trust for managed installation. The layout is in Managed component certificates.
If enrollment tries to resolve serviceradar-web-ng, the token was minted with
an internal endpoint. Set webNg.publicUrl correctly and issue a new package,
or use --core-url https://<PUBLIC_HOST> as a temporary override.
If enrollment succeeds but the agent later times out connecting to
<WEB_HOST>:50052, the web URL is no longer the problem. Verify the
gateway_addr in /etc/serviceradar/agent.json, confirm it names the actual
agent-gateway L4 endpoint, and test TCP reachability to port 50052. A web-only
Gateway normally exposes 80/443, not the agent-gateway ports.
4. Verify
In the UI:
- Go to Settings -> Agents
- Confirm the agent shows Online and its last-seen timestamp is updating.
On the host:
- Check the agent service logs (systemd) and confirm it connects to
agent-gateway.
Certificate lifetime and expiry alerts
New edge leaf certificates default to 90 days, with supported requested lifetimes
of 7 through 365 days. The shared ServiceRadar.Edge.CertificateLifetimePolicy
validates issuance options; allow_short_test_lifetime: true permits positive
lifetimes below the minimum for explicit tests, without bypassing the maximum.
Gateway issuance above the default also requires an admin or system actor in long_ttl_approved_by.
Changing issuance options does not extend certificates already installed.
To change the default for a deployment, set AGENT_CERT_VALIDITY_DAYS to the same
integer from 7 to 365 on core-elx, web-ng, and the agent-gateway. With Helm, set
certs.agentValidityDays, which reaches all three. Each service refuses to start
when the value is not an integer in that range.
The Create agent package form pre-fills Certificate validity (days) with the deployment default. You can enter another value from 7 to 365 for that package; a value above the default needs an administrator. After the package is created, the page shows when the issued certificate expires.
The gateway records the peer certificate's validity, serial, and SHA-256 fingerprint during Hello and heartbeats. A change from a previously recorded serial or fingerprint records the time the replacement was observed. Agents that have not reported certificate metadata can have empty certificate fields. See SRQL agent certificate fields for queries to locate expiring agents.
The expiry monitor runs every 15 minutes by default (core application setting
ServiceRadar.Infrastructure.AgentCertExpiryMonitor, reschedule_seconds).
It evaluates non-superseded agents with a recorded expiration:
- More than 7 days and at most 14 days remaining: warning.
- At most 7 days remaining, including already expired: critical.
- More than 14 days remaining after replacement: active expiry alerts resolve.
- Superseded agent identities: active expiry alerts resolve.
Automatic leaf certificate renewal
Renewal-capable agents connected to a renewal-capable gateway renew over the existing mTLS connection without a process restart. Renewal starts at two-thirds of the current leaf lifetime plus random delay of up to 5% of that lifetime, capped at six hours. A certificate already past that target is renewed as soon as the agent connects. Failed attempts retry after 1, 2, 5, and 15 minutes, then hourly; near expiry the delay is shortened to stay inside the remaining lifetime.
The agent generates a new key, persists the returned certificate, hot-reloads
its TLS credentials, and reconnects with Hello. Keep component-bundle.pem in
the certificate directory: this private-key-bearing recovery file has mode
0600 and lets startup repair an incomplete certificate/key replacement.
Renewal rotates the leaf certificate, not the deployment CA.
The predecessor remains usable until the successor completes Hello, so a lost renewal response does not immediately strand the agent. Retirement currently uses the gateway's in-memory registry; it is lost on gateway restart and is not shared across replicas. Durable cluster-wide revocation remains pending.
Expired or revoked certificates cannot renew. Upgrade older agents before
expiry; if renewal is no longer possible, generate a fresh onboarding package
and re-enroll. Local expiry diagnostics report
local mTLS client certificate expired (notAfter=..., serial=...); re-enroll required.
Renewal failures are logged; dedicated renewal-failure alerts remain pending.
Gateway certificate rejections log
Edge mTLS peer certificate rejected with a normalized reason such as
certificate_expired, unknown_ca, or bad_cert, and peer subject, issuer,
serial, and expiration when available.
Next: Turn On Collection
Onboarding just gets the agent connected. The next step is enabling the collection features you want (all via the UI).
Host Metrics (Sysmon)
Sysmon profiles control host metrics collection from enrolled agents.
- Go to Settings → Host Health (
/settings/sysmon) - Create a baseline profile (example: “Default Host Metrics”)
- Set Target Query to apply broadly, for example:
in:devices(apply to all devices)in:devices tags.role:server(only servers)
- Save
Agents fetch updated profiles via GetConfig and start publishing host metrics.
See: Sysmon Profiles
Visibility Profiles (passive fingerprint / capture)
Visibility profiles control what enrolled host agents capture and fingerprint. They are not sweep profiles: sweeps scan CIDRs; visibility profiles watch traffic already crossing an allowlisted NIC.
- Assign the netprobe add-on to the host agent (Settings -> Agents -> Add-ons). See Host Network Visibility.
- Go to Settings -> Network Services -> Visibility Profiles
(
/settings/networks/visibility-profiles) - Create a profile: name, capture interface (exact kernel NIC name), SRQL
target (blank means
in:devices), and only the fingerprint / DPI capabilities you need. Attributed flows come from the netprobe assignment, not from this profile. - Enable the profile after targeting is narrow enough.
See: Visibility Profiles
Network Sweeps (Availability + Discovery Seeds)
Sweep groups schedule scans against device inventories and static targets.
- Go to Settings -> Networks
- Create a Scanner Profile (ports, timeouts, concurrency)
- Create a Sweep Group and choose:
- target criteria (inventory match)
- static targets (CIDRs / IPs / ranges)
- schedule
- Enable the group
See: Network Sweeps
SNMP Polling
SNMP profiles configure embedded agent SNMP polling.
- Go to Settings -> SNMP Profiles
- Create a profile and set a Target Query (SRQL) to select devices
- Add targets/credentials and enable polling
See: SNMP Ingest Guide
Discovery / Mapper
Discovery runs inside serviceradar-agent and is configured from the UI.
- Go to Settings -> Networks -> Discovery
- Create/enable discovery jobs
- Verify interfaces and topology are flowing into inventory and the graph
See: Discovery Guide
Notification Delivery From This Site (Edge Route)
An enrolled agent can also be the thing that delivers a notification, for a
destination that is only reachable from inside this network - an internal
ticketing system, an on-premises chat server, an SMS gateway on a private
segment. That is the edge_agent execution route on a notification channel.
- Import and approve a Wasm plugin package whose manifest declares a
notifications:block and requests thenotify:v1capability. - Assign that package to this agent. The assignment's narrowed capability set
must still include
notify:v1; the agent checks it, so denying it on either the approval or the assignment stops delivery. - Create a notification provider bound to the package and one declared notifier
key, then a channel on the
edge_agentroute naming this agent.
Three things to know before you route a page through an edge agent:
- The edge route is for unreachable destinations only. Everything reachable from the platform should stay on the control plane, which is the default.
- The command path is at-most-once with no store-and-forward. If the agent has no live control session when a notification is dispatched, the command is refused and nothing re-drains it on reconnect. An escalation policy whose only reachable channel is an edge agent therefore cannot deliver the page that says this site went dark - the platform detects the outage, and the agent it would have paged through went dark with it. Always give an edge-routed channel a control-plane fallback.
- Slack and Discord incoming webhooks cannot run on the edge route, because their webhook URL carries the secret in the path and no credential-injection mode rewrites a path. Use the bot-token mode for those destinations; it works on either route.
See: Notification Plugins (Wasm) and Notifications