Hi,
I’ve configured a control policy to execute custom automation when containers are discovered within the Container Provider (Openshift).
I would like to the automation to execute a script against the newly discovered container.
I can pull back the container parameters, such as:
$evm.root[‘container_image’].name
$evm.root[‘container_image’].image_ref
$evm.root[‘container_image’].environment_variables
I used object_walker to identify what i needed.
I can instantiate scripts using awesome_spawn pass variables and read back output.
The issue I have is trying to execute a script against a target host where the container is running. I’m assuming its possible as smartstate scanning is able to schedule a container on target hosts and inspect discovered containers.
I’m trying to perform compliance scanning of containers.
Any ideas/thoughts/guidance would be much appreciated.