sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
184 stars 85 forks source link

Add ability to censor request bodies #432

Closed f355 closed 4 years ago

f355 commented 4 years ago

SIP request bodies sometimes contain private information. One example is SMS-over-IP which has text message contents in MESSAGE request bodies.

This adds the ability to selectively replace the request bodies for certain methods with a bunch of x'es.

In addition, heplify-server used to log the database password first thing after the startup, now it doesn't do that anymore.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

adubovikov commented 4 years ago

Thank you for your contribution. Why you don't want to use more efficient LUA script's way ?

lmangani commented 4 years ago

Thanks for your PR! Just before merging, attaching our LuaJIT reference in case you'd like to move the function there: https://github.com/sipcapture/homer/wiki/HOMER-LUA-Scripting

f355 commented 4 years ago

I've made this change a few months ago when lua support was still in its infancy and pretty much not documented.

Apart from that, a lua script would be something that only I use, and this PR makes the option available to everybody.

adubovikov commented 4 years ago

ok. Thank you!

Please don't forget to star us: https://github.com/sipcapture/homer/stargazers