Commit Graph

17 Commits

Author SHA1 Message Date
Andrew Mayorov
03bee5f234
Use binaries exclusively when making up log events 2020-10-30 13:47:11 +03:00
Andrew Mayorov
a4aabc6903
Update test/ct_helper.erl
Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-10-30 13:44:45 +03:00
Andrew Mayorov
8ed64fe5d7
Fix linter complaints
Also tune it slightly for test code.
2020-10-30 13:40:07 +03:00
Andrew Mayorov
186664726a
Bump to rbkmoney/genlib@7637d915 2020-10-28 19:27:19 +03:00
Andrew Mayorov
806bef3009
Verify that audit log overload stops handlers
Though it's not apparently, so skip the test for now but keep testcase
for future experimentation.
2020-10-27 19:28:14 +03:00
Andrew Mayorov
eb952bda47
Allow to configure flush_qlen
For the sake of easier testing.
2020-10-27 19:23:32 +03:00
Andrew Mayorov
7bbf26e6a7
Move tempdir facility to ct_helper 2020-10-27 15:48:13 +03:00
Andrew Mayorov
7a07d35bbf
Add tests checking basic audit logging guatantees 2020-10-27 15:38:34 +03:00
Andrew Mayorov
96851ec303
Introduce the omnipresent ct_helper 2020-10-27 14:51:51 +03:00
Andrew Mayorov
765d90357e
Make audit pulse config more flexible 2020-10-27 14:48:35 +03:00
Andrew Mayorov
457f623072
Remove scoper use from handler
Seems unnecessary for the time being.
2020-10-23 19:29:30 +03:00
Andrew Mayorov
5410558a4a
Leave a note about prep_stop/1 purpose 2020-10-23 19:27:42 +03:00
Andrew Mayorov
1226a2b802
Enable audit logging through dedicated log handler
Also make sure it's hard to disable and misconfigure.
2020-10-23 19:23:16 +03:00
Andrew Mayorov
2fa0e506b6
Allow to set up multiple pulse handlers 2020-10-23 19:22:03 +03:00
Andrew Mayorov
902f06949a
Futureproof policy contract (#3)
In line w/ rbkmoney/bouncer-policies#1.

* Fix stop order in tests for robustness
* Add another testcase for invalid ruleset
* Enforce draft-04 JSON schema validation
2020-10-21 17:17:29 +03:00
Andrew Mayorov
9004e3fe50
Implement a thrift service around opa policy solver (#1)
Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-10-14 12:09:26 +03:00
Andrew Mayorov
c928a722c4
Initial commit 2020-10-02 19:58:31 +03:00