Skip to content

[BUG] Plugin rule update did not take effect in time. #4378

@iwangjie

Description

@iwangjie

Bug Description

After the plug-in matching rule is updated, the new rule of the request gateway does not take effect.

synchronous invalid.

Context

After I modified the rule in shenyu admin, the synchronization gateway was triggered, and the gateway did not seem to handle it correctly

The gateway uses prefix tree to store rules, and the processing logic of updating action is putNode, so the historical rules are not cleaned up, which leads to the request interface still using the old rules after updating rules

Divide plugin, the source address can still be accessed after the Condition changes, which is fatal:
image

Similarly, WAF plugin
After the firewall rule switch changes, it does not take effect, which is also fatal:

image

image

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions