Commit Graph

20 Commits

Author SHA1 Message Date
Andrew Mayorov
1f76fab18c
MSPF-641: Bump to rbkmoney/image-service-erlang@0c1352d base image (#21)
* Bump to rbkmoney/image-service-erlang@0c1352d base image
* Update relx config w/ minimal mode
2021-02-18 16:00:56 +03:00
Andrew Mayorov
4b86d8e48f
MSPF-641: Relax fsync-every-write audit log handler policy (#20)
* Make fsync repeat interval configurable as usual.

* Dig into logger internals to sync w/ handler reliably

* Upgrade to opa 0.26.0-debug service image in tests

* Bump to rbkmoney/image-build-erlang@61a001b
2021-02-18 11:24:50 +03:00
Andrew Mayorov
2e575b0654
Cut fragments ctx out of audit logs (#19)
They provide too much redundant information at no tangible benefit.

Also stop adding woody metadata to audit log events.
2021-02-08 11:12:39 +03:00
Andrew Mayorov
6a7ca8f2e9
Enforce unified formatting w/ erlfmt (#18)
* Bump to rbkmoney/build_utils@e131872
2021-02-04 17:23:35 +03:00
Andrew Mayorov
db9721bf71
Don't audit-log 'undefined' when no restrictions (#17) 2021-02-04 15:47:19 +03:00
Andrew Mayorov
85c7edeb6e
Specify orgmgmt-proto as application dependency (#16)
Otherwise it's missing from a release.
2021-02-01 14:51:00 +03:00
Andrew Mayorov
e81966c411
Provide explicit party ctx through orgmgmt stub (#15) 2021-01-29 13:06:52 +03:00
Andrew Mayorov
c0e85ff764
Bump to rbkmoney/bouncer-proto@a126059 (#14) 2021-01-27 13:51:48 +03:00
ndiezel0
530f8e646f
MSPF-629: Add decisions (#12)
* MSPF-629: Add decisions

* MSPF-629: Fix compile

* MSPF-629: Review fix

* MSPF-629: Update bouncer_proto

* MSPF-629: Fix lint and move from_thrift_struct/4 to bouncer_thrift

* MSPF-629: Fix merge

* MSPF-629: Remove `jsx:encode/1` for restrictions

* MSPF-629: Rename decision -> judgement

* MSPF-629: Change README.md

* MSPF-629: Fix tests

* MSPF-629: Add bundle.tar.gz to gitignore

* MSPF-629: Fix test

* MSPF-629: Fix last test

* MSPF-629: Fix lint

* MSPF-629: Simplify regex

* MSPF-629: Alternative solution to atomization

* MSPF-629: Review fix

* MSPF-629: Review fix
2020-12-31 17:26:12 +03:00
Andrew Mayorov
2850275de0
Fix generic thrift→json encoding (#13)
Tags (which are integer field designators in thrift serializations)
were wrongly interpreted as indices in Erlang record tuples.

* Update for recent rebar3_lint w/ elvis_core 1.0.0
2020-12-28 17:59:17 +03:00
ndiezel0
2445f446d6
MSPF-591: Update bouncer_proto (#11)
* MSPF-591: Update bouncer_proto

* MSPF-591: Fix lint

* MSPF-591: Update proto
2020-12-03 17:22:32 +03:00
Артем
c9f70695cc
Update bouncer proto (#10) 2020-11-25 15:20:17 +03:00
ndiezel0
b042399a6d
MSPF-620: Add OrgManagement stub (#8)
* MSPF-620: Add OrgManagement stub

* MSPF-620: Fix lint

* MSPF-620: Review fix
2020-11-03 17:26:56 +03:00
Andrew Mayorov
bcd8095d97
Switch to pre-alpine rbkmoney/image-service-erlang@688cee7 (#7) 2020-10-31 21:31:33 +03:00
Andrew Mayorov
09a759551e
Add forgotten vm.args file (#6) 2020-10-30 16:14:01 +03:00
Andrew Mayorov
44fa86982d
MSPF-585: Implement naive audit logging (#4)
* Allow to set up multiple pulse handlers

* Enable audit logging through dedicated log handler

* Remove scoper use from handler

* Verify that audit log overload stops handlers

Though it's not apparently, so skip the test for now but keep testcase
for future experimentation.

Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-10-30 15:10:07 +03:00
Andrew Mayorov
905cdda999
Add rudimentary README (#5) 2020-10-29 14:41:57 +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