Connect Deployed Agents to SaaS Management (Docker)
Prerequisites
Access to a SaaS tenant on my.openappsec.io (WebUI for SaaS management) Follow the instructions available here:
Agent profile created for open-appsec Docker deployment in SaaS tenant Follow the instructions available bellow, once done, don't forget to copy the profile token after policy installation as this is needed in the installation steps further below:
Linux machine with:
Docker software installed (or similar compatible Container runtime)
Root Permissions
Existing open-appsec WAF deployment on Docker which is:
locally managed
not connected to the central WebUI yet
Instructions:
Step 1: Update your docker-compose.yaml
file:
Locate the
AGENT_TOKEN
key in yourdocker-compose.yaml
file.Copy the Token from your WebUI Docker Profile (as described in the prerequisites) and paste it as the value for the
AGENT_TOKEN
key.
Example docker-compose.yaml
snippet, make sure to do the above change in your own docker-compose.yaml
file:
If you chose "“Declarative configuration” management make sure to keep the agent local configuration file volume mount which gets mounted to /ext/appsec
inside the agent container.
If you chose "This Management" then the above mentioned volume mount is no longer needed, and can be removed.
Step 2: Apply the adjusted Docker Compose configuration:
Run the following commands to recreate the agent container based on the adjusted Docker Compose file which now includes the AGENT_TOKEN
specification for connecting to Management WebUI (SaaS):
Step 3: Verify the connection:
Log in to the Web UI and check if your agent is connected.
If you chose “This management” management mode:
Step 4: Create one or more assets in the Web UI, make sure to connect the asset to the profile you have created in the Prerequisites:
Protect Additional AssetsLast updated