Validate with ai#252
Conversation
- Extracted passed and failed result counts from ValidateWithRego() - Added a new bool flag --takeaction, if set to true will skip printing results and pass the results to cfg.GenerateOpenAIResponse() - Extracted []Results from ValidateWithRego() for passing it to cfg.GenrerateOpenAIResponse() as userPrompt combining it with reqinput
- Need to integrate the LLM Config with other Genval Commands when interadcting with AI
… by genval Rego workflow. - As there is no config passed by the user currently, the config for AI is included in the cmd func. - Need to only extract Dockerfile from the LLM response, so that it be passed back to Validator for final validation with Rego
… by genval Rego workflow. - As there is no config passed by the user currently, the config for AI is included in the cmd func. - Now, the Final Dockerfile is written to the pre-defined path provided in
- TODO: provide the updated Dockerfile and only the failed results as userPromt at each iteration. - Print Final Dockerfile on the terminal in addition to writing that to the output path provided - Print the diff of original and the Final Dockerfile
TODO: Remove all the debug print lines of traces in rego.Evan() TODO: Refactor the flag parsing with viper.BindFlg wrapper funcs
TODO: Merege the YAML config from CEL and Regex polcy to the existing for consistancy TODO: Make PrintResults func consistant across all techs validation TODO: Impletement validation remediation for regex and CEL
TODO: Add remediation to Infrafile and TErrqaform
…n of Cue validation and generation Update examples in Cmds
DryRun Security SummaryThe pull request enhances the Expand for full summarySummary: The code changes in this pull request focus on enhancing the security and functionality of the The key security-related changes include:
Overall, these changes demonstrate a strong focus on improving the security and usability of the Files Changed:
Code AnalysisWe ran
|
DryRun Security SummaryThe pull request enhances the Genval application's security and usability by introducing automated remediation, centralized configuration management, improved error handling, support for OCI registry-based policies, and robust input validation for infrastructure-as-code file validation. Expand for full summarySummary: The code changes in this pull request focus on enhancing the security and usability of the Genval application, which is a tool used for validating and remediating infrastructure-as-code (IaC) files, such as Dockerfiles and Kubernetes manifests, using various policy frameworks (e.g., Rego, CEL). The key security-related improvements include:
Overall, the changes in this pull request demonstrate a strong focus on improving the security and usability of the Genval application, which is a crucial tool for securing infrastructure-as-code in modern software development and deployment practices. Files Changed:
Code AnalysisWe ran
|
This PR Implements remediations to failed results while validating resources with different techs available with Genval like, Rego, CEL, and Regex.
Genval can now accept parameters from YAML file by passing
--configflag.