Sample scripts based on safeguard-bash. These scripts are meant to give ideas about how safeguard-bash may be used to solve problems.
-
Demonstrate how to set up certificate login by adding the certificate trust and creating a certificate user. Then, call connect-safeguard.sh with the appropriate parameters.
-
Demonstrate how to handle events using safeguard-bash. Safeguard will send events to connected clients via SignalR as they occur. There are events for all object creation, modification, deletion. There are also events for password automation and access request workflow.
Both of the samples below include a Dockerfile and demonstrate how to run in a container, but you probably want to read about event-handling before reading through the samples.
-
Sample scripts for A2A events. A2A events are password changes, and the A2A handler will immediately pull the password and call another script with the new password.
-
Sample script for generic events.
-
-
Demonstrate how to use an API key from TPAM to do a simplistic import of TPAM systems into Safeguard as new assets. This script makes use of the batch endpoint.
The Dockerfile in the directory also shows how a docker image could be created based on safeguard-bash with additional components.