Skip to content

feat: first implementation#1

Merged
gusfcarvalho merged 6 commits intomainfrom
gc-feat-first-implementation
Mar 6, 2026
Merged

feat: first implementation#1
gusfcarvalho merged 6 commits intomainfrom
gc-feat-first-implementation

Conversation

@gusfcarvalho
Copy link
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces an initial Go implementation of a Continuous Compliance Framework plugin that executes Cloud Custodian policies in dry-run mode, converts results into a standardized payload, evaluates OPA policy bundles, and submits evidence via the agent runner API.

Changes:

  • Add Cloud Custodian plugin implementation with config parsing, policy loading (inline/file/HTTP), check execution, standardized payload creation, OPA evaluation, and optional debug payload dumping.
  • Add comprehensive unit tests for config parsing, policy loading/parsing, executor behavior, payload building, and eval-loop behavior.
  • Add Go module scaffolding plus basic CI workflows and build tooling/docs updates.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
main.go Core plugin implementation: config parsing, policy resolution/parsing, custodian execution, payload creation, OPA evaluation, evidence submission, debug dumping.
main_test.go Unit tests covering parsing, policy loading, executor behavior, payloads, and eval-loop error handling.
go.mod Declares module and dependencies for the new plugin.
go.sum Dependency checksums for the new module.
README.md Documents AWS --region all behavior and new debug payload dumping config fields.
Makefile Adds basic build/clean/help targets (currently includes an OPA CLI presence check).
.gitignore Adds ignore entry for policies.
.github/workflows/test.yml Adds reusable Go test workflow.
.github/workflows/push.yml Runs tests on PRs and pushes.
.github/workflows/release.yml Triggers release workflow on tags.
.github/workflows/build-and-upload.yml Builds/releases artifacts and uploads via gooci.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gusfcarvalho gusfcarvalho merged commit 204f31b into main Mar 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants