Security Constraints
How the Supervisor verifies agent scripts with signature files before execution.
The supervisor starts, stops, and restarts the agents. The supervisor executes the following scripts for the agents.
- selfheal.sh
- start.sh
- stop.sh
- restart.sh
Signature files are maintained for the following scripts during the release build process.
| Script Name | Signature File Name |
|---|---|
| selfheal.sh | selfheal.sh.sig |
| start.sh | start.sh.sig |
| stop.sh | stop.sh.sig |
| restart.sh | restart.sh.sig |
If you modify any script externally post-deployment, then signature verification fails.
The supervisor tracks these scripts using the corresponding .sig files.
Before executing any script, the Supervisor checks if any script is modified or not. The supervisor checks the signatures of these scripts. If you modify any script externally, then the signature verification fails. In this case, the Supervisor logs an error, and the Supervisor does not execute the script.
The supervisor tracks the .jar and binary files present inside the agent folders using the file checksums.
selfheal.sh, start.sh, and restart.sh files internally check the signatures of .jar files. If .jar files are tampered with, then these scripts do not start or restart the agents. In this case, the selfheal.sh file stops the agent.
There is signature verification logic applicable for producer scripts as well. Encoded signature strings are maintained in the database for individual producer scripts. If you modify any producer script, then the script execution fails due to a mismatch in the signature.
Note:
We do not recommend you modify any script, .jar, or binary file.