Dual Docker: NGINX/Kong/Envoy + Security Agent
Last updated
Last updated
In this option you will deploy two docker images:
NGINX or Kong - managed locally by you
CloudGuard WAF Agent - centrally managed via WebUI or API
The benefit of this mode is that you can upgrade each docker separately.
As part of your CI, use the checkpoint/infinity-next-nano-agent registry to pull the Nano-Agent image.
Make sure you obtain the <token> from the Enforcement Profile page, Authentication section. you will need it during agent deployment.
Run the agent with this command:
–e https_proxy
parameter is optional and used only in case the outbound traffic reaches the internet through a proxy server.
Replace the NGINX container using the following registry to pull the image for this deployment:
For NGINX: checkpoint/infinity-next-nginx
For Kong: checkpoint/infinity-next-kong
As part of creating your reverse proxy for this environment, make sure that the reverse proxy is deployed with the correct downstream and upstream routing.
Change your existing NGINX/Kong docker run command and add the --ipc=host
parameter.
If you are installing a reverse proxy for the first time and have no prior knowledge of deployment methods, an example of simple deployment instructions using NGINX can be found in the official NGINX docker hub repository.
Deploy the two containers.
To make sure that it is running, run: docker ps
.
To configure SSL certificates in NGINX follow these guides:
To configure SSL certificates in Kong follow the guide in the following link.
Following the steps above, the agent will install and connect automatically. CloudGuard WAF web portal should display a successful connection message: