Bitcoind RPC proxy

I wonder how counterpartyd talks to my bitcoind, or will it somedays steal my coins ? so I googled around and came up with this

It is a template of proxy server that forwards requests to bitcoind. I put it between counterpartyd and bitcoind. Now it’s just dumping the calls from counterpartyd, but it can be modified to do interesting things like preventing counterpartyd to touch other addresses on your wallet besides the ones that you give permission, or send mail when it sees your orders that requires BTCPay are matched, etc