-
Notifications
You must be signed in to change notification settings - Fork 5
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: support for external middleware plugins #83
Merged
stormc
merged 1 commit into
siemens:main
from
michaeladler:43-plugin-system-for-external-middlewares
Jan 10, 2024
Merged
feat: support for external middleware plugins #83
stormc
merged 1 commit into
siemens:main
from
michaeladler:43-plugin-system-for-external-middlewares
Jan 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #83 +/- ##
==========================================
+ Coverage 79.85% 80.27% +0.41%
==========================================
Files 85 89 +4
Lines 3376 3747 +371
==========================================
+ Hits 2696 3008 +312
- Misses 492 533 +41
- Partials 188 206 +18 ☔ View full report in Codecov by Sentry. |
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
4 times, most recently
from
November 21, 2023 12:29
521b212
to
35a8e04
Compare
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
11 times, most recently
from
November 23, 2023 10:18
381dc8a
to
58fe750
Compare
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
from
December 1, 2023 09:43
58fe750
to
990b111
Compare
stormc
reviewed
Dec 13, 2023
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
from
December 13, 2023 15:49
990b111
to
7836279
Compare
stormc
reviewed
Dec 13, 2023
stormc
reviewed
Dec 13, 2023
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
4 times, most recently
from
December 15, 2023 12:29
b032a83
to
b642140
Compare
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
stormc
reviewed
Dec 15, 2023
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
11 times, most recently
from
December 20, 2023 16:37
45f8d96
to
b77e30b
Compare
stormc
reviewed
Dec 22, 2023
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
2 times, most recently
from
January 3, 2024 14:39
ba78a2c
to
8ddcc77
Compare
This commit introduces possibility to integrate external middleware plugins. These plugins have the possibility to modify incoming HTTP requests prior to routing. This includes modifying headers, routing and denying requests. Due to the lack of a proper plugin system in Go, external middleware plugins are implemented as standalone sub-processes. They communicate with wfx via protobuf message over stdin/stdout, hence it's crucial for the plugin to read from stdin promptly to avoid blocking wfx. An example plugin written in Go is included in the `example/plugin` subdirectory, taking special care that stdin does not block. Signed-off-by: Michael Adler <[email protected]>
michaeladler
force-pushed
the
43-plugin-system-for-external-middlewares
branch
from
January 10, 2024 08:01
7fbd177
to
14037c9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This commit introduces possibility to integrate external middleware plugins. These plugins have the possibility to modify incoming HTTP requests prior to routing. This includes modifying headers, routing and denying requests.
Due to the lack of a proper plugin system in Go, external middleware plugins are implemented as standalone sub-processes. They communicate with wfx via protobuf message over stdin/stdout, hence it's crucial for the plugin to read from stdin promptly to avoid blocking wfx. An example plugin written in Go is included in the
example/plugin
subdirectory, taking special care that stdin does not block.Issues Addressed
List and link all the issues addressed by this PR.
Change Type
Please select the relevant options:
Checklist