Skip to content

This web based application enables developers to quickly unit test individual API calls for both Incapsula and SecureSphere, as well as provides utilities for migrating policies and configurations between the solutions in bulk

License

Notifications You must be signed in to change notification settings

imperva/imperva-web-api-composer

Repository files navigation

Imperva Web API Composer

license support

Description

This web based application enables developers to quickly unit test individual API calls for both Incapsula and SecureSphere, as well as provides utilities for migrating policies and configurations between the solutions in bulk.

Prerequisites

(For GCP / Kubernetes deployment, see GCP instructions)

Container Setup

To deploy a container based on this image, follow the steps below. The instructions assume you have chosen /opt/docker/imperva-web-api-composer as a base folder for storing settings and data. If you choose a different path, please update the path in the commands below accordingly.

  1. On the Docker host, create the docker-compose.yml file inside the /opt/docker/imperva-web-api-composer folder. A sample docker-compose.yml file is included in this repository.
  2. Change into the /opt/docker/imperva-web-api-composer folder.
    • host# cd /opt/docker/imperva-web-api-composer
  3. Pull the latest image from the registry:
    • host# docker-compose pull
  4. Use docker-compose to bring up the container:
    • host# docker-compose up -d

You can modify the ports mapped by the sample docker-compose.yml file if you'd prefer to run HTTP and HTTPS traffic on ports other than 8080 and 8443, respectively, on your system.

Accessing the UI

Once the container has been started, you can simply access the UI by navigating to http://localhost:8080. If you've chosen an alternate port other than 8080, be sure to connect to it instead.

Initial Configuration

TO DO...

Troubleshooting

If you need to access the container in order to troubleshoot one or more errors, you should use the docker exec -t -i _containerId_ /bin/ash command to connect to the container replacing _ containerId _ with the actual ID of the container shown in the first column when you run docker ps -a.

Once connected, error information can be found in the /var/log/apache2/apitool_error_log file.

Updating and Upgrading the Container

In the future, you can update the container by simply re-running docker-compose pull followed by docker-compose up --force-recreate from the /opt/docker/imperva-web-api-composer folder. These commands will automatically pull the latest version of the image(s) from the registry and replace it without affecting your data or configurations.

Additional Help or Questions

If you have questions, find bugs or need additional help, please send an email to: [email protected].

Links

About

This web based application enables developers to quickly unit test individual API calls for both Incapsula and SecureSphere, as well as provides utilities for migrating policies and configurations between the solutions in bulk

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published