This runbook will guide the process of spinning up Standard Chain Security Monitoring deployments.
We are able to spinup monitors for a single l2/l1 chain, or for all l2/l1 chains that are ready to be monitored.
In order for a chain to be ready for monitoring it must satisfy three requirements:
In order to create new deployment you will need:
VPN
When generating new node configurations or checking if a node is ready for being added to the configuration we need to have internal vpn enabled.
git clone <https://github.com/ethereum-optimism/k8s>
You can either use local python 3 or docker, but you will need to keep using it for the rest of the process.
Python 3
cd k8s/scripts/security-monitoring-ops
make
source .venv/bin/activate
Docker
cd k8s/scripts/security-monitoring-ops
just setup
# 1. Pull the latest changes from the main branch
git checkout main
git pull origin main
# 2. Generate changes either by using python 2.1 or docker 2.2
# 2.1
python main.py --sync-chain race/sepolia
# 2.2
just run --sync-chain race/sepolia
# ==> Check command result. It should be all green
# 3. Check if local changes have being applied
git diff ../../kustomize/automated-security-monitoring
The sync process will add files if files needs to be added, or will remove files if files need to be removed. Files may change as well as a result of configuration changes.
# 2. Generate changes either by using python 2.1 or docker 2.2
# 2.1
python main.py --sync-chain race/sepolia
# 2.2
just run --sync-chain race/sepolia