This is a bare-bones Infrastructure as Code Policies project where policies are open to public.
The IaC policies will be verified by Palo Alto Networks before they are available to world.
Just add/update the IaC policies and create PR to contribute to this project.
It's a maven Java project. Go to iac-policies project directory and run $ mvn clean install
.
Yes, you need
- Java JDK or any other Java 8 version.
- Apache Maven 3
src/main/resouces/content
Yes. Each Infrastructure as Code Template Policies go in template specific file. e:g; CFT template related rules are added/edited to file src/main/resources/content/cft.json
Yes. Only Json format is supported. The policies are Json arraylist of Rule Object where each Rule consists of severity, resourceType, policy(rule name/what is the rule for), rule(based on json path), is(UUID), enabled(default false)
When I have added/updated rules in one of the files and full build with unit tests working on my local machine, i am ready to push changes.
Create Pull Request with new changes in new branch to be merged to master. Once approved by PANW, it will be merged for the world to be used.