defenseunicorns / lula

The Compliance Validator
Apache License 2.0
149 stars 23 forks source link

Parameterization of Policies #312

Closed meganwolf0 closed 2 days ago

meganwolf0 commented 7 months ago

If external referencing is implemented Lula Validations, it would be beneficial to have some kind of parameterization functionality so you could employ re-usability across validations.

meganwolf0 commented 5 months ago

Thinking about this issue again with respect to a recent issue found in possibly needing to add imagePullSecrets to a cluster to create/destroy test resources (#408). We could possibly implement a variable templating similar to how zarf does (to be moved to defenseunicorns/pkg if link is broken).

This would probably be applicable to generating API requests with credentials from a pipeline and creating the reusable polices as mentioned above - a specific example of this is seen with writing BB vs UDS policies, where the policy is exactly the same but the resources in the cluster are differently named.

meganwolf0 commented 2 days ago

Should be closed by templating work (e.g., #517, #591, #641, #642)