Credentials
When you install Sentinel, you configure two credentials generated by the panel wizard. Each serves a distinct security purpose.
AGENT_TOKEN starts with sts1.
Proves the identity of the node. Every API request from Sentinel includes this token in the Authorization header. The panel looks up the token in the database to find which tenant and node the request belongs to.
Think of it as a username for the node.
AGENT_SECRET 64-character hex string Used to sign the commands the panel queues for Sentinel (HMAC-SHA256). When Sentinel polls and picks up a pending command, it verifies the HMAC signature before executing anything. This prevents a stolen token from being used to issue commands.
Think of it as a signing key for panel-to-Sentinel commands.
Where they live
The installer writes both credentials to Sentinel's config file:
Rotating credentials
If your credentials are lost, compromised, or you need to re-enroll a node:
.env manually and restart the service