bcgov / DBC-APIM

DataBC OPEN API Services
Apache License 2.0
1 stars 0 forks source link

Assessment: Kong Plugin with Lua #85

Open BK01 opened 6 years ago

BK01 commented 6 years ago

Investigate writing a Kong plugin with Lua to zero the last Octet of an ip address to enable usage of the cloud for analytics without personal information.

1, it will be used for IP anonymous on cloud analytic services like google, snowplow, etc 2, once the plugin enabled for an API behind Kong, it should zero out last octet of client’s real ip and pass as X-Forward-For and Origin to upstream

https://getkong.org/docs/0.11.x/plugin-development/ https://github.com/Kong/kong-plugin