This inspec profile helps in assessing the security configuration around DHIS2 deployments.
- Clone the repository
$ git clone https://github.com/davinerd/dhis2-inspec.git
$ cd dhis2-inspec
- Install inspec (if running locally)
Please choose the method that works best for you in the official documentation.
- Run the desired control
dhis2-inspec$ inspec exec controls/<control>.rb
If you want to assess the deployment on an lxd container, use the run_inspec_lxd.sh
script and pass the container name and the control you want to use
dhis2-inspec$ bash run_inspec_lxd.sh <container_name> controls/<control>.rb
To assess the tomcat deployment on an lxd container, assuming you have a container named dhis2
, you can use:
dhis2-inspec$ bash run_inspec_lxd.sh dhis2 controls/tomcat.rb