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

Refactor the plugin API #202

Merged
merged 55 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ad70ff7
Redesign the WIT API - does not compile
sporkmonger Dec 12, 2023
f6d1e01
Most of the SDK is wired up to the bindings - does not compile
sporkmonger Dec 15, 2023
5ebecd0
Upgrade wasmtime to 16.0.0 along with associated dependencies
sporkmonger Jan 11, 2024
0106007
Drop unused import
sporkmonger Jan 11, 2024
44cfe8e
Merge branch 'upgrade-wasmtime' into api-refactor
sporkmonger Jan 11, 2024
6c506d4
Checkpoint now that things compile again.
sporkmonger Jan 17, 2024
cb8042b
Updated macros to the new API design
sporkmonger Feb 9, 2024
2dc87d3
Renaming environment.wit to config.wit to avoid confusion w/ WASI's e…
sporkmonger Feb 12, 2024
7cdec43
No longer needed since we specify path in the wit-bindgen macro
sporkmonger Feb 12, 2024
9bdf452
Add missing http types and outgoing-handler add_to_linker lines
sporkmonger Feb 13, 2024
ada87a6
Updated examples to the new API design
sporkmonger Feb 13, 2024
479aa21
Currently fails without explicit wit-bindgen dependency
sporkmonger Feb 13, 2024
95c8f8c
Fix typo.
sporkmonger Feb 13, 2024
8bd6610
Fix sender error from premature close and envoy spurious message issue
sporkmonger Feb 18, 2024
cc600fe
Switch to incoming-response. Does not work yet.
sporkmonger Feb 21, 2024
43a8d16
Minor refactor. Still does not work yet.
sporkmonger Feb 21, 2024
b970093
Fixed the envoy message issue. Caused by an accidentally inverted if …
sporkmonger Feb 26, 2024
8d908a8
There's no good reason to expose the connection pool implementation d…
sporkmonger Feb 28, 2024
01dff40
Checkpointing the config functions. Need to refactor the inner type u…
sporkmonger Feb 28, 2024
6bd6bf3
Refactored guest config to avoid serialization the new API design mad…
sporkmonger Feb 29, 2024
47f28bf
Add client_ip implementation inside guest and plumb through proxy_hop…
sporkmonger Mar 1, 2024
682bca8
Re-introduce Redis implementation to the host
sporkmonger Mar 5, 2024
90b5f0d
Environment is now injected via WasiCtxBuilder
sporkmonger Mar 5, 2024
fb46448
Drop unused http client and unused imports
sporkmonger Mar 5, 2024
a8fca5c
Drop unused function since we've lost this capability
sporkmonger Mar 5, 2024
e46f6d0
Merge branch 'main' into api-refactor
sporkmonger Mar 5, 2024
670b8f3
Allow Decision to be tested w/ relative_eq
sporkmonger Mar 6, 2024
abae45b
Extracted build into its own crate and added integration test to use it
sporkmonger Mar 6, 2024
86296bb
Reintroduced and improved plugin execution integration tests
sporkmonger Mar 6, 2024
2073861
Clean up compiler warnings
sporkmonger Mar 6, 2024
19105b4
Fix clippy warnings
sporkmonger Mar 6, 2024
d84ff41
Refactor functions with huge parameter lists into a new context struct
sporkmonger Mar 7, 2024
ec9cdac
Tidy up some whitespace
sporkmonger Mar 7, 2024
b26fe3c
Execute feedback in observe-only mode
sporkmonger Mar 7, 2024
7b29166
Attempting to fix ABI action
sporkmonger Mar 7, 2024
c5e45e6
Check in the markdown files generated from WIT
sporkmonger Mar 7, 2024
fe143e7
WIT markdown files seem low-value for our use-case, removing
sporkmonger Mar 8, 2024
27dd928
Make config tests semi-independent of integration tests
sporkmonger Mar 8, 2024
5ae3462
Drop resolved TODO comment
sporkmonger Mar 8, 2024
9090a2f
Drop TODO comments that don't seem relevant anymore
sporkmonger Mar 8, 2024
0d1d4ea
Add missing comments to the rate limiting and circuit breaking functions
sporkmonger Mar 11, 2024
dcc8730
Fix incorrect function comment.
sporkmonger Mar 11, 2024
a85e90b
Tidy up the path resolution logic
sporkmonger Mar 11, 2024
f24d780
Expanding error message slightly
sporkmonger Mar 11, 2024
97ffd47
Clarify what a primitive value is in error message
sporkmonger Mar 12, 2024
0ca338e
Fix linting issue
sporkmonger Mar 12, 2024
430b9cd
Add invalid argument error for redis and check bounds for counters
sporkmonger Mar 12, 2024
dc66855
Be consistent when using 'or 0' in lua scripts
sporkmonger Mar 12, 2024
dedd665
Add range checks for window as well
sporkmonger Mar 12, 2024
7ef4a43
Removing TODO because I'm satisfied the current behavior is fine
sporkmonger Mar 12, 2024
08a7ca2
Clarify response phase skipping and decision feedback
sporkmonger Mar 12, 2024
e310777
This was a useless question mark operator.
sporkmonger Mar 12, 2024
4a7ce45
Macro didn't fully qualify every HashMap usage
sporkmonger Mar 13, 2024
7878698
Relax the set function's signature to allow either Vec<u8> or [u8] re…
sporkmonger Mar 13, 2024
65d8c9e
Clarify the expected trait in error message
sporkmonger Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
fmt:
name: rustfmt
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,6 +20,7 @@ jobs:
- run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -40,6 +41,7 @@ jobs:
run: cargo clippy --no-deps --workspace --all-targets -- --deny warnings

test:
name: Test suite
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -69,4 +71,4 @@ jobs:
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: test
args: -p bulwark-cli -p bulwark-config -p bulwark-decision -p bulwark-ext-processor -p bulwark-wasm-host -p bulwark-wasm-sdk -p bulwark-wasm-sdk-macros
args: -p bulwark-cli -p bulwark-build -p bulwark-config -p bulwark-decision -p bulwark-ext-processor -p bulwark-wasm-host -p bulwark-wasm-sdk -p bulwark-wasm-sdk-macros
Loading
Loading