Commit Graph

40 Commits

Author SHA1 Message Date
Артем
fc93cda066
MSPF-601: Bouncer integration and webhooks (#510)
* bouncer integration WIP

* added preprocess

* added minor fixes

* remixed handler api

* fixed some tests

# Conflicts:
#	apps/capi/src/capi_auth.erl

* fixed

* fixed

* fixed test hack + format

* added empty impl bypass

* remixed

* refactored

* minor

* fixed dialyzer

* added requested changes

* fixed
2021-02-19 14:22:46 +03:00
dinama
92619bb9cd
upgrade world (#507) 2021-01-31 22:09:20 +03:00
Sergey Yelin
2ef82c8c34
Cleanup release (#504)
* Cleanup release

* Revert formater changes
2020-12-07 13:12:44 +03:00
Toporkov Igor
ef87be9180
MSPF-579: Prometheus metrics (#494)
* Add Prometheus to dependencies

* Update build images

* Add MetricsRoute to config building

* Provide sample config

* Squash health and metrics routes in one argument

* Delete forgotten argument from spec

* Do not include src to release
2020-10-23 16:48:22 +03:00
Andrey Fadeev
74ce0cd4a0
Add formatter (#492)
* Add erlfmt
* Apply erlfmt
* Update build-utils
2020-10-14 11:45:53 +03:00
Boris
9f1b092b41
Capi-414: change idempotent checker algorithm create payment (#470) 2020-09-17 17:10:33 +03:00
Roman Pushkov
fb91862e79
MSPF-487: graceful shutdown (#485)
* add drainer dep

* use drainer

* remove drainer tests

* update .app.src
2020-07-14 14:05:49 +03:00
Andrew Mayorov
765a44ff77
Bump to rbkmoney/dmt_client@9148719 (#481)
* Bump to rbkmoney/damsel@d0e949b9
* Bump to rbkmoney/woody_erlang@dd5eaa73
2020-06-29 18:24:20 +03:00
Sergey Yelin
2d3cd91661
MSPF-532: get rid of rfc3339 (#473)
* MSPF-532: Update image

* MSPF-532: Remove rfc339 from capi

* Upgrade libs

* Update uac

* Refactor auth code

* Fix dialyzer errors
2020-04-27 18:43:54 +03:00
Boris
c6701e58ca
add lechiffre (#448) 2020-01-23 16:17:17 +03:00
Toporkov Igor
f7274d1ad5
CAPI-396: Migrate to uac (#438)
* Migrate to uac

* Deduplicate get_unique_id/0

* Remove redundant logging

* Simplify types in capi_auth

* Use macro for token signee

* Fix indentation

* Log OperationID in case of authorization failure

* Return keyset to the capi config

* Provide dummy snowflake config

* Deduplicate unique_id/0

* Remove from access info from config

* Rework uac configuration
2019-11-06 16:58:46 +03:00
ndiezel0
2c544098f8
CAPI-385: Update reporter (#425)
* CAPI-385: Update reporter

* CAPI-385: Add GetReport check test, fix dialyzer

* CAPI-385: Add DownloadFile id checks and test for it
2019-10-10 12:15:22 +03:00
Alexey
6085f0a2a7
HG-497: PCIDSS cleanup (#416) 2019-10-04 15:26:18 +03:00
Toporkov Igor
2d227c856f
MSPF-456: Business deadlines (#405)
* Updated swag commit

* Bumped and renamed damsel

* De-hardcoded oops body test

* Added payment deadlines

* Added parsing error clause handling

* Added default deadlines

* Bump damsel

* Increased test payment deadline

* Bumped swag

* Actualized damsel

* Added env for processing deadline

* Beautify indentation

* Clarified processing deadline related names

* Respond with an error on invalid processing deadline

* Revert "Respond with an error on invalid processing deadline"

This reverts commit fd964027193c8b15ea7d8b21a5441bbfa10854d8.

* Hide processingDeadlineReached error from client

* bump swag

* Add processing deadline error

* Rename dmsl in new test
2019-09-16 17:49:37 +03:00
Andrey Fadeev
a981947b56
Update scoper (#404)
And add scoper to config example
2019-08-09 16:10:32 +03:00
Andrey Fadeev
af2bb80e08
Add scoper to v2 (#403)
* Add scoper
* Add metadata collecting
2019-08-09 13:52:20 +03:00
Toporkov Igor
456b9a91e1 Erlang OTP 21 to v2 (#342)
* CAPI-351: Erlang 21 to CAPI V2 (#339)

* First step of migration

* spec fix, changed headers to map

* Bumped back swag commit

* Bumped swag commit

* reverted bump

* Second migration step

* Linter fixes

* Bump build_image_tag

* Update build utils

* Gave up on using deprecated ranch child spec

* Updated plt version

* Bumped service-erlang

* Actually use stream_handlers, bump woody

* removed commeted funnctions

* CAPI-353: OTP 21 logger (#341)

* Initial lager migration

* Added missing comma

* Fix config typos and indentation, bumped formatter

* Fixed oops body responce

* Fixed wrong reply format, refactored oops body retrieval

* Bumped hackney and thrift, fixed inet version

* Renamed and fixed stream handler, fixed wrong handlers order

* Test for oops_body

* Use join to make file path

* MSPF-476: Add operation_id to access log

* Upgrade to Erlang 21.3.8.4

* Refactor access log configuration

* lager -> logger

* Upgrade woody

* Fix default logger config
2019-07-03 11:11:31 +03:00
Boris
e018c2170f
CAPI-345 Invoice idempotency (#327) 2019-04-16 16:38:14 +03:00
Andrey Fadeev
996338bac4
CAPI-327 Add VM metrics to v2 (#312)
Add `how_are_you` library usage
2019-01-15 00:37:48 +03:00
Alexey
df64102174
CAPI-304: Use BinBase when creating payment resources (#269)
* raw version of binbase integration

* upgrades from v2

* moved binbase lookup to a more suitable place

* some catches and renamings

* save metadata, save everything to token

* make metadata encoding/decoding more futureproof

* fix linter

* fix linter but better

* use actual msgpack marshalling

* accept metadata from other sources

* use mapmap instead of mapfold
2018-10-03 18:08:11 +03:00
Evgeny Levenets
29d1418564
add woody deadlines on service level (#231)
* add woody deadlines on service level
* don't overwrite incoming deadline
2018-07-06 10:50:08 +03:00
Andrew Mayorov
a9019e34c1
Employ dmt_client here (#216) 2018-05-17 14:10:30 +03:00
Petr Kozorezov
f7ef72654d
add "health" handle (#187)
* add "health" handle

* apply review comments
2018-04-13 15:35:02 +03:00
Petr Kozorezov
74c28089e5
Capi 253/epic/error mapping (#183)
* add token consumer

* refactor a little; add error mapping for payment + tests

* update client payment error mapping

* apply review fix

* apply review comments

* update payment client mapping

* move to master branches; fix magista payments errors
2018-04-02 13:33:10 +03:00
Andrew Mayorov
f653e420a0
CAPI-231: Put the notion of digital wallets into this shithole (#145)
* CAPI-231: Proudly employ cowboy_access_log

* BA-52: Bump to master rbkmoney/swag@13e66dd

* BA-52: Bump to master rbkmoney/damsel@620cca5
2018-01-24 17:16:39 +03:00
Natalia Pulina
247689c5ce
CAPI-192: new tests, real_SUITE fixed with mocked services (#111) 2017-10-31 13:15:56 +03:00
Andrew Mayorov
5fc7edf37b HG-182: Switch damsel to master (#116) 2017-10-23 17:53:18 +03:00
Evgeny Levenets
b80382247c HG-278: subscriptions support (#113)
* HG-278: subscriptions support (#110)

* HG-182: Bump to rbkmoney/swag@a880e4d

* HG-182: Bump to rbkmoney/hellgate@80f2474
2017-10-23 17:01:01 +03:00
Anton Belyaev
18a52c4a21 Add payouts statistics search (#85) (#107)
* CAPI-170: support payouts stats search
* CAPI-198: fix access scopes for refunds API (#108)
* Replace cp_proto and damsel submodule with dmsl rebar dep
* Fix (temporary) docker-compose conf to use for both CI and OS X
2017-10-11 00:02:17 +03:00
Anton Belyaev
7842fa6ef9 Refactor work with api_client (#79)
* use one pg container for all the dbs in docker-compose;
* get rid of pimp in docker compose;
* merge api_client into capi as one of apps.
2017-07-31 16:59:37 +03:00
Artem Ocheredko
0510e5507f CAPI-96: Add user identity extension (#50)
* CAPI-96 Add user identity extension

* CAPI-96 Hardcode user identity realm
2017-05-15 17:34:32 +04:00
Anton Belyaev
f932354405 CAPI-124: new swagger-codegen and penetration bugfixes (#44)
* correct parent RpcID creation
* bump up to a new cool swagger-codegen (several fixes, get rid of pools, etc)
* fix base64 decode and other stuff
* add support for sendfile ASCII kitties for 5xx replies
2017-05-03 15:00:02 +04:00
Andrew Mayorov
c05aaa295c MSPF-191: Implement invoice access token management (#31)
* MSPF-191: Ensure to fail on error in scripts

* MSPF-191: Implement invoice access token management

 * Introduce the notion of resource hierarchy and ACLs
 * Desing dedicated JWT authorizer, capable of issuing and verifying JWTs
 * Delegate operation authorization down into logic handler

* MSPF-191: Bump to rbkmoney/swag@e90d600

* MSPF-191: Bump to rbkmoney/woody@b5ae9ae, rbkmoney/api_client@36eb5a2

* MSPF-191: Bump service deps

* MSPF-191: Fix dialyzer warning

* MSPF-191: Remove commented code

* MSPF-191: Enforce requirement to have configured jwt authorizer

* MSPF-191: Add a couple of TODOs

* MSPF-191: Fix ACL scope removal and test it

* MSPF-191: Add the notion of dedicated signee to the authorizer

* MSPF-191: Simplify scope decoding

* MSPF-191: Adapt testsuite to rbkmoney/hellgate@6dae29b

* MSPF-191: Fix release definition

* MSPF-191: Eliminate dirty hack

* MSPF-191: Put a static private key in the release

* MSPF-191: Fix some specs and mention contract violation
2017-02-22 14:36:17 +03:00
Andrew Mayorov
2d2b863254 MSPF-191: Update to rbkmoney/woody_erlang@b5ae9ae, streamline other deps (#30) 2017-02-17 17:24:54 +03:00
Petr Kozorezov
e4d59c8899 MSPF-193: add apps for the introspection (#27) 2017-02-10 16:45:06 +04:00
Petr Kozorezov
d737d947a2 MSPF-193: add applications to release build for debugging and profiling (#24) 2017-02-09 13:15:51 +04:00
Dmitry Manik
2a2f8d6898 CAPI-50: Rewrite tests with wrapped responses 2016-12-07 15:39:10 +03:00
Artem Ocheredko
26f1e2beca CAPI-32 Move to the newest images and fix missed fields (#16)
* CAPI-32 Move to the newest images and fix missed fields. Change linter code complexity change to soothe the unnecessary warnings. Add new swag version and fix ip_address source
2016-10-26 16:39:32 +03:00
Artem Ocheredko
8453b38f74 CAPI-32 Add json debug logs (#9)
* CAPI-32 Add json debug logs
2016-10-13 05:54:36 +03:00
Artem Ocheredko
2dcb9c1294 Capi 25/ft/erlang thrift card payment (#3)
* CAPI-25 Add initial project structure. Add mock-backend and basic tests. Add new building with Jenkins and add real backend handler.
2016-09-05 15:21:44 +03:00