Templates

Rule templates and Rego Playground in JFrog AppTrust

In JFrog AppTrust, templates are used to define compliance rules and policies. A template contains the logic and parameters for a rule, but does not include the actual parameter values by which a rule is evaluated. Several rules can use the same template as long as they use different values.

For example, a template might say that X percent of tests must pass. This template can be used to create rules that say 70% must pass, 80% must pass, or 90% must pass.

For your convenience, AppTrust comes with a set of predefined templates that you can use. In addition, you create your own templates. To help you organize your templates, you can assign them versions and classify them into categories such as security, legal, operational, quality, audit, or workflow.

Templates are defined using Rego code. AppTrust provides a set of flexible tools in the Rego Playground for viewing, creating, editing, and testing your custom templates. This chapter provides the information and procedures you need to manage your templates.

What's Next?

  • Learn more about Custom Templates and the Rego Playground.
  • Learn how to Create a Template.