I didn't quite understand the process of composing these CRD schema files, like gitops-the-magickey/policies/schemas/argocd.json in your example. Suppose I have a YAML manifest of a CRD ("kind: CustomResourceDefinition"), how do I create a json schema for it, so Trivy scanner can understand my custom misconfiguration policies?
that is another video -- I guess I should have sent more time explaining it -- I based it on the following tutorial json-schema.org/learn/getting-started-step-by-step.html The json schema is there to set the fields that have to be present in the CRD -- this makes it possibel to check the fields in the CRD with the schema and specify Rego policies for them
I didn't quite understand the process of composing these CRD schema files, like gitops-the-magickey/policies/schemas/argocd.json in your example.
Suppose I have a YAML manifest of a CRD ("kind: CustomResourceDefinition"), how do I create a json schema for it, so Trivy scanner can understand my custom misconfiguration policies?
that is another video -- I guess I should have sent more time explaining it -- I based it on the following tutorial json-schema.org/learn/getting-started-step-by-step.html
The json schema is there to set the fields that have to be present in the CRD -- this makes it possibel to check the fields in the CRD with the schema and specify Rego policies for them
@@AnaisUrlichs Thank you!