Python, go and node agents

The normal way to implement Sealights agents

Now implementing the agents the normal is done inside the dockerfile. We'll show you one example but all the rest follow the same rules.

  1. Make sure you provide the dockerfile with the needed environment variables, here you see it in the relevant yaml file in helm-chart/templates/ folder but on your local machine for example you can just define them and it will use them.

Giving dockerfile environment variables
  1. Make sure you provide the dockerfile with the needed build arguments

expected build arguments

Note: Different languages sometimes need different arguments, also AGENT_URL isn't always a url. We just called the variable that for simplicity.

  1. Download the agent then make a build session-id.

line 35 shows install and 36 making the build session
  1. Scan the code and send the build map

Scanning the code
  1. Run your code with Sealights (test listener)

Running the code with Sealights

Last updated