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

chore: create plugins package. #734

Merged
merged 2 commits into from
Mar 28, 2023
Merged

chore: create plugins package. #734

merged 2 commits into from
Mar 28, 2023

Conversation

jcchavezs
Copy link
Member

@jcchavezs jcchavezs commented Mar 24, 2023

This PR creates the plugin package to be able to extend coraza functionality with plugins through a experimental package.

This work was proven to work with this exec plugin https://github.com/jcchavezs/coraza-exec-action-wasm.

It also moves operators, actions and transformations to an internal package and expose the register functions through a plugins package.

Closes #632

@jcchavezs
Copy link
Member Author

I am trying the new plugins API with this plugin https://github.com/jcchavezs/coraza-exec-action-wasm

@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (7189eb5) 81.86% compared to head (4f56af3) 81.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           v3/dev     #734      +/-   ##
==========================================
+ Coverage   81.86%   81.88%   +0.01%     
==========================================
  Files         149      152       +3     
  Lines        8334     8340       +6     
==========================================
+ Hits         6823     6829       +6     
  Misses       1290     1290              
  Partials      221      221              
Flag Coverage Δ
default 77.90% <100.00%> (+0.01%) ⬆️
examples 25.49% <98.59%> (ø)
ftw 49.79% <98.59%> (ø)
ftw-multiphase 49.90% <98.59%> (ø)
tinygo 77.05% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/actions/allow.go 100.00% <ø> (ø)
internal/actions/auditlog.go 72.72% <ø> (ø)
internal/actions/block.go 100.00% <ø> (ø)
internal/actions/capture.go 100.00% <ø> (ø)
internal/actions/chain.go 100.00% <ø> (ø)
internal/actions/ctl.go 95.84% <ø> (ø)
internal/actions/deny.go 84.21% <ø> (ø)
internal/actions/drop.go 84.21% <ø> (ø)
internal/actions/exec.go 70.00% <ø> (ø)
internal/actions/expirevar.go 67.85% <ø> (ø)
... and 89 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jcchavezs jcchavezs marked this pull request as ready for review March 27, 2023 19:42
@jcchavezs jcchavezs requested a review from a team as a code owner March 27, 2023 19:42
@jcchavezs jcchavezs merged commit e1c369c into v3/dev Mar 28, 2023
@jcchavezs jcchavezs deleted the plugins_package branch March 28, 2023 04:39
M4tteoP pushed a commit to M4tteoP/coraza that referenced this pull request Mar 28, 2023
* feat: create plugins package.

* chore: improves license.
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.

Create a plugin package with all the methods in the same package
3 participants