alibaba / higress

Cloud Native API Gateway | 云原生API网关
https://higress.io
Apache License 2.0
2.63k stars 434 forks source link

Implement ip black & white list plugin using TinyGo #607

Closed rinfx closed 4 months ago

rinfx commented 9 months ago

Why do you need it?

We want to implement black & white list plugin for access control.

How could it be?

The plugin should support two modes:

  1. black list mode: default action is pass, when source ip hits black list the request will be denied.
  2. white list mode: default action is deny, when source ip hits white list the request will pass.

A plugin config maybe like:

mode: black
ip_list:
- "1.1.1.1"
- "10.2.0.0/16"
WeixinX commented 7 months ago

If anyone needs to get this task please comment and I will assign it to you ~ ❤️

Renz7 commented 6 months ago

assign it to me.