Skip to content

This repository contains a simple Helm chart for deploying a "Hello World" Nginx application, along with Open Policy Agent (OPA) rules for verification and an AI-assisted mechanism to fix policy violations.

Notifications You must be signed in to change notification settings

amsilf/sc-helm-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Helm App Deployment with OPA Verification and AI-Assisted Fixes

This repository contains a simple Helm chart for deploying a "Hello World" Nginx application, along with Open Policy Agent (OPA) rules for verification and an AI-assisted mechanism to fix policy violations.

Prerequisites

  • Helm 3+
  • OPA
  • Python 3+
  • OpenAI API key (for ChatGPT integration)

Helm Chart

The Helm chart in the helm/ directory deploys a simple Nginx server with a "Hello World" page.

OPA Verification

The OPA policies in the opa/ directory verify the Helm chart against predefined rules. To run the verification:

This script will:

Detect OPA policy violations Use ChatGPT to suggest fixes Apply the fixes to the relevant files Create a new branch with the changes Push the branch and create a pull request

About

This repository contains a simple Helm chart for deploying a "Hello World" Nginx application, along with Open Policy Agent (OPA) rules for verification and an AI-assisted mechanism to fix policy violations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published