Forces
Forces is the product responsible for the client-side part of the DevSecOps agent. It uses the Integrates API to communicate with the back-end.
Contributing
Please read the contributing page first.
Internals
- Forces is written in Python, with the rich library providing colors, tables and formatting, an image is built from the code with makes which is then deployed to the Fluid Attacks DockerHub page.
Getting Started
-
Configure your Development Environment.
-
When prompted for an AWS role, choose
dev
, and when prompted for a Development Environment, pickintegratesForces
. -
Run this command within the
universe
repository:This will build and run the Forces CLI application, including the changes you’ve made to the source code. Most of the time you’ll be running Forces this way.
Linting and testing
To invoke the linter, run the following command with makes:
To lint the tests use:
To run the tests, use:
Building the container locally
Most of the time you’ll be running Forces via makes. But in case you want to manually build and check the container, follow these steps:
-
Build the container image (a tarball)
-
Load the tarball into the local Docker repository
-
Run the container image
Checking the output
Forces can be pointed to your local or ephemeral Integrates instances, to do
this, you can set the API_ENDPOINT
variable:
-
Local environment:
-
Ephemeral environment:
The output can be seen in the DevSecOps table of the group in the instance you pointed Forces to.