NAPE - Not Another Policy Engine Help

1st - Download Source Code

Let's get started by cloning the NAPE and NAPE-Evaluator source code repositories.

First, the NAPE-Evaluator

The NAPE-Evaluator is responsible for applying a NAPE Test of Detail to a piece of Evidence.

  1. Either clone or download the NAPE-Evaluator source code into your nape project directory

    If you are using git, then simple clone the project using the following commands. We always prefer the SSH approach for security reasons, although using an https clone works well if all you prefer to do is use the NAPE software.

    SSH

    git clone git@github.com:nape-not-another-policy-engine/nape-evaluator.git

    HTTPS

    git clone https://github.com/nape-not-another-policy-engine/nape-evaluator.git

    Not using Git?

    You can download the software by clicking on the "Code" button near the top right of the screen, and then selecting the "Download Zip" option.

    How to Download ZIP File for NAPE Evaluator Source Code

    Ensure you unzip the download into your nape project directory, and double check that the directory name of all the unzipped contents is called nape-evaluator.

  2. Double check that you have a directory called nape-evaluator in your project directory.

    Here is an example of what your directory may look like:

    nape-not-another-policy-engine % ls -a . nape-evaluator ..

    If you navigate into the nape-evaluator directory, you should see the Makefile we will use in the following steps to build and install the cli.

    nape-not-another-policy-engine % cd nape-evaluator nape-evaluator % ls -a . (many other files will be listed) Makefile ...
  3. You are now done with downloading, or cloning, the NAPE-Evaluator source code.

Second, the NAPE CLI

The NAPE CLI is main program that you, or a machine, will use to import NAPE Assurance Procedure and execute them.

  1. Either clone or download the NAPE source code into your nape project directory

    If you are using git, then simple clone the project using the following commands. We always prefer the SSH approach for security reasons, although using an https clone works well if all you prefer to do is use the NAPE software.

    SSH

    git clone git@github.com:nape-not-another-policy-engine/nape.git

    HTTPS

    git clone https://github.com/nape-not-another-policy-engine/nape.git

    Not using Git?

    You can download the software by clicking on the "Code" button near the top right of the screen, and then selecting the "Download Zip" option.

    How to Download ZIP File for NAPE CLI Source Code

    Ensure you unzip the download into your nape project directory, and double check that the directory name of all the unzipped contents is called nape.

  2. Double check that you have a directory called nape in your project directory.

    Here is an example of what your directory may look like:

    nape-not-another-policy-engine % ls -a . nape nape-evaluator ..

    If you navigate into the nape directory, you should see the Makefile we will use in the following steps to build and install the cli.

    nape-not-another-policy-engine % cd nape nape % ls -a . (many other files will be listed) Makefile ...
  3. We are done with downloading the source code, let's build and install each cli.

Next, Build the Source Code

By now, you should have both the nape-evaluator and nape directories within your nape project directory, and all the source code in each directory.

Let's move onto 2nd - Build Source Code

Last modified: 06 September 2024