-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the rules for a RLP that targets a GW into all RLPs that target…
… HTTPRoutes linked to that GW Merging the rules of the gateway RLP is needed because the wasm-shim indexes all RLPs but will only enforce one RLP config per request. It looks up in the index for the RLP config whose associated hostnames contain a match, by checking the longest (most specific) hostnames first. (This is the same behaviour of how Authorino works.) Without merging the gateway RLP rules in, while having RLPs targetting at both levels (HTTPRoute and Gateway), a request whose hostname matches a hostname of the HTTPRoute would trigger only the limits from the route RLP and not the ones from the gateway RLP.
- Loading branch information
1 parent
61edeea
commit 185f46f
Showing
3 changed files
with
44 additions
and
184 deletions.
There are no files selected for viewing
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
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
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