Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce Postee Actions #249

Merged
merged 18 commits into from
Feb 11, 2022
Merged

Conversation

simar7
Copy link
Member

@simar7 simar7 commented Jan 29, 2022

This PR introduces Postee Actions, a lightweight (no-code) workflows that allows users to configure Postee to execute ad-hoc but useful post processing steps.

Some use cases include (but are not limited):

  1. As a security practitioner, I want to remove a vulnerable image from my node when Trivy scan detects a vulnerability in an image, so that I can keep vulnerable images unavailable for deployment.
  2. As a security practitioner, I want to ship Tracee security notifications logs from my node when security events are detected, so that I can build a timelog for forensics purposes.
  3. [WIP] As a Kubernetes operator, I want to add labels to my Kubernetes cluster when Starboard detects a vulnerable image in my cluster, so that I can effectively manage vulnerable deployments.

These are some examples of how a user can use Postee Actions.

Signed-off-by: Simar simar@linux.com

@simar7 simar7 self-assigned this Jan 29, 2022
@simar7 simar7 marked this pull request as ready for review February 1, 2022 01:24
@simar7
Copy link
Member Author

simar7 commented Feb 1, 2022

@AndreyLevchenko - do you know why the CI is failing?

outputs/exec.go Outdated Show resolved Hide resolved
outputs/http.go Outdated Show resolved Hide resolved
outputs/http.go Outdated Show resolved Hide resolved
outputs/http.go Outdated Show resolved Hide resolved
This commit introduces the exec action which allows a practitioner to run shell
commands upon receiving a trigger.

Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
outputs/exec.go Outdated Show resolved Hide resolved
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>

Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
@codecov
Copy link

codecov bot commented Feb 10, 2022

Codecov Report

Merging #249 (cb50267) into main (ca72375) will increase coverage by 0.46%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   86.87%   87.33%   +0.46%     
==========================================
  Files          28       28              
  Lines        1112     1153      +41     
==========================================
+ Hits          966     1007      +41     
  Misses         88       88              
  Partials       58       58              
Impacted Files Coverage Δ
router/builders.go 98.01% <100.00%> (+0.96%) ⬆️
router/router.go 86.79% <100.00%> (+0.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca72375...cb50267. Read the comment docs.

Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
@simar7 simar7 changed the title feat: Introduce Postee actions framework feat: Introduce Postee Actions Feb 10, 2022
@simar7 simar7 merged commit a74c883 into aquasecurity:main Feb 11, 2022
@simar7 simar7 deleted the postee-actions branch February 11, 2022 23:08
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.

None yet

2 participants