GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
223 stars 129 forks source link

How to add a new policy bundle #376

Closed xingao267 closed 3 years ago

xingao267 commented 4 years ago

Is there any existing instructions around the process of how to add a new policy bundle? I'm working on adding a healthcare-best-practices policy bundle. And based on my guesses, I just add a new entry to the policy sample that I would like to include in the bundle, e.g. in samples/storage_location.yaml's metadata.annotations list, I added line bundles.validator.forsetisecurity.org/healthcare-best-practices-v1: security. Am I on the right track? After I do that, how do I update all other docs and references? I guess make generate_docs?

xingao267 commented 4 years ago

@morgante @gkowalski-google any guidance here?

morgante commented 4 years ago

@xingao267 Yes you just need to add the annotation on the resources + run make generate_docs.

xingao267 commented 4 years ago

@morgante thanks! I hit this error when trying to run make generate_docs though.

gkowalski-google commented 4 years ago

It looks like it's just a permissions issue, can you take a look and see if you have write permissions to that file?