Publishing Policies
Publishing policies to share them with others has never been easier than with jsPolicy. As a policy author, you have the following options to make a policy available for others:
- Share a
JsPolicy
YAML file ready to be applied withkubectl apply -f policy.yaml
- Share a
JsPolicy
+JsPolicyBundle
YAML file combo ready to be applied withkubectl apply -f policy.bundle.yaml -f policy.yaml
- Publish an
npm
package containing utility functions or entire policy implementations that others can require/import and easily execute inside thespec.javascript
field of theirJsPolicy
objects or in any other policy-related code that will be compiled to aJsPolicyBundle
later on
Contribute To The Policy Catalog
On this documentation site, we are maintaining a Policy Catalog with ready-to-use policies and policy logic. Open a pull-request on GitHub to add a policy that you want to contribute to the policy catalog.