Commit Graph

58 Commits

Author SHA1 Message Date
Andrew Mayorov
14369d48f4
TD-124: Setup CI/CD with GH Actions (#1)
* Drop proprietary CI stuff
* Stop including default secret in release
* Fix io encoding w/ iosetopts
* Bump to valitydev/damsel@dcd92dd
* Implement and test `GetServiceProviderByID` op
* Depend on valitydev/swag-payments@a639270
* Drop geo api handler and tests
* Switch to valitydev upstream
  * valitydev/cowboy_access_log@04da359
  * valitydev/damsel@b25d336
  * valitydev/dmt_client@e9b1961
  * valitydev/dmt_core@910e20e
  * valitydev/party_client_erlang@8fc5595
  * valitydev/woody_erlang@0c2e16d
  * valitydev/woody_api_hay@4c39134
* Drop client url logging
* Setup CI/CD with GH Actions
* Drop dead links

Co-authored-by: ndiezel0 <ndiezel0@gmail.com>
2022-02-04 19:28:33 +03:00
Jarosław Rogov
8381da653a
ED-282/deps: Migrate to feat for idempotency feats (#578)
* ED-282/deps: Migrate to feat for idempotency feats

* ED-282/ref: Fix dialyzer warning

* ED-282/ref: Fix dialyzer warnings

* ED-282/fix: Remove leftover

* ED-282/ref: Fix legacy module naming

* ED-282/ref: Fix headers module naming

* ED-282/fix: Fix v2 legacy fallback

* ED-282/fix: Fix v2 compativility code

* ED-282/ref: Fix dialyzer and linter warnings

* ED-282/fix: Fix bug and dialyzer warnings

* ED-282/test: Return create_invoice_legacy_fail

* ED-282/ref: Rewrite feat CT reader

Make it simpler and more explicit

* ED-282/ref: Fix formatting

* ED-282/fix: Remove debug leftovers

* ED-282/fix: Fix CT feat reader

* ED-282/test: Fix unused fields

* ED-282/ref: Refactor capi_bender

* ED-282/ref: Refactor arg naming in capi_bender

* ED-282/fix: Fix capi_bender list_diff for legacy

* ED-282/test: Add success test and fix impl

* ED-282/fix: Fix types for consistency

* ED-282/ref: Tweak elvis to ignore idemp tests

* ED-282/ref: Simplify capi_bender API

* ED-282/deps: Switch capi_bender to bender_client

* ED-282/ref: Remove direct bender call leftovers

* ED-282/fix: Return spec for get_context_data

* ED-282/ref: Rename bender capi namespace const

* ED-282/ref: Remove leftover

* ED-282/ref: Remove read_schema redundant clauses

* ED-282/ref: Rename bender namespace var

* ED-282/ref: Remove leftovers and fix formatting
2021-11-02 15:24:00 +03:00
Alexey
a3b0bf5074
ED-222: Support for simpler token-keeper metadata format (#562) 2021-08-19 11:55:47 +03:00
dinama
96da4b830b
ED-193: +PaymentInstitution payout +payout_manager_proto (#556) 2021-07-29 15:38:56 +03:00
Sergey Yelin
b2194a0b2f
ED-195: Remove blacklists from capi (#555)
* ED-195: Remove blacklists from capi

* Remove config example

* Fix dialyzer
2021-07-15 23:45:18 +03:00
Alexey
5436a5fbab
Revert "Revert "ED-184: migrate to party_client"" (#548) 2021-06-30 13:28:15 +03:00
Alexey
4aab3c8de3
Revert "ED-184: migrate to party_client (#546)" (#547)
This reverts commit a1151e3ca3.
2021-06-29 14:35:03 +03:00
dinama
a1151e3ca3
ED-184: migrate to party_client (#546) 2021-06-28 18:43:17 +03:00
Alexey
af3819613e
ED-119: Token Keeper integration (#545) 2021-06-28 17:20:00 +03:00
Andrew Mayorov
a709fd560f
ED-65: Safeguard bouncer integration (#516)
* Bump to rbkmoney/bouncer_client_erlang@2c083eb
* Provide sample bouncer_client config
2021-03-04 19:47:37 +03:00
Артем
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
104c3a7a82
+fix demo config (#509) 2021-02-01 18:30:04 +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
Boris
9f1b092b41
Capi-414: change idempotent checker algorithm create payment (#470) 2020-09-17 17:10:33 +03:00
Sergey Yelin
3ff33850a7
black lists (#490)
* Revert "Revert "CAPI-278: api keys blacklist (#235)" (#237)"

This reverts commit b482abaf0f.

* Add back blacklists
2020-09-15 08:40:30 +03:00
ndiezel0
5ab42aeff7
CAPI-424: Change config (#486) 2020-07-14 16:38:52 +03:00
Boris
984497405b
Delete jwk password, update lechiffre (#457) 2020-01-23 18:55:30 +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
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
Sergey Yelin
fca18020b1
Add gracefull_shutdown_timeout to sys.config (#419)
* Add gracefull_shutdown_timeout to sys.config

* Typo in config option
2019-09-12 14:55:11 +03:00
Andrey Fadeev
a981947b56
Update scoper (#404)
And add scoper to config example
2019-08-09 16:10:32 +03:00
Andrey Fadeev
0b4fe30a99
Add transport options to services settings in v2 (#391) 2019-07-25 16:55:15 +03:00
Alexey
352eb27f8e
CAPI-365: Update build image, set mild validation for responses (#364) 2019-07-08 12:47:25 +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
Evgeny Levenets
99d6f97d16
CAPI-320: add woody retries to capi_woody_client (#297) 2018-11-26 11:46:01 +03:00
Alexey
17776cd5c1
CAPI-304: Add BinBase service url to config (#273) 2018-10-04 13:55:14 +03:00
Артем
891fb7903e
CAPI-301: Deadline to request header (#268) 2018-09-28 14:15:43 +03:00
Evgeny Levenets
b482abaf0f
Revert "CAPI-278: api keys blacklist (#235)" (#237)
This reverts commit 9f1f4af840.
2018-07-31 15:16:59 +03:00
Evgeny Levenets
9f1f4af840
CAPI-278: api keys blacklist (#235) 2018-07-25 20:09:03 +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
Evgeny Levenets
e7a3cdc10e
fix GooglePay routing (#224) 2018-05-31 17:17:43 +03:00
Andrew Mayorov
a9019e34c1
Employ dmt_client here (#216) 2018-05-17 14:10:30 +03:00
Natalia Pulina
0dd38809d4 CAPI-260: CreatePaymentResource fixed with handling apple pay token (#193)
* CAPI-260: CreatePaymentResource fixed with handling apple pay token (#186)

* CDS-55: Adapt CreatePaymentResource to new cds protocol (#192)

* CDS-55: encode/decode bank card fixed (#201)

* CDS-55: Support tokenized bank card for GetInvoicePaymentMethods (#203)

* CAPI-268: Support of new merch_start protocol + tests fix (#200)

* sys.config fix

* sys.config fix again

* Supply token provider properly (#206)

* switch to master swag & damsel

rbkmoney/swag@82f2bb8
rbkmoney/damsel@d9b9706
2018-05-08 16:26:49 +03:00
Petr Kozorezov
f7ef72654d
add "health" handle (#187)
* add "health" handle

* apply review comments
2018-04-13 15:35:02 +03:00
Natalia Pulina
247689c5ce
CAPI-192: new tests, real_SUITE fixed with mocked services (#111) 2017-10-31 13:15:56 +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
Evgeny Levenets
0dfaacb265 CAPI-155: add reports support (#84) 2017-08-15 15:34:27 +03:00
Anton Belyaev
fa9b96eab5 CAPI-151: Introduce invoice templates 2017-07-27 17:42:08 +03:00
pulitta
699d02f64e CAPI-146: Remove callback handlers (#65)
* CAPI-146: Remove callback handlers

* CAPI-146: Clean code from unused functions and configs from unused files/urls
2017-06-15 18:15:00 +03:00
Anton Belyaev
0d98eca7d9 CAPI-137: introduce capi access log (#51) 2017-05-12 16:28:38 +04:00
Anton Belyaev
b165e7b029 CAPI-124: fix headers for ASCII kitty replies (#48) 2017-05-04 01:42:15 +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
Artem Ocheredko
4c85e3b84e CAPI-95/HOOK-1 Payments extended search, Webhooks (#42)
* HOOK-1: Implement webhook management

* CAPI-95 Add new payments/invoices search with custom api_clientP

* CAPI-95 Move to the newest dependencies
2017-04-27 19:53:03 +04:00
Anton Belyaev
6ee33a454b CAPI-70: add swagger validation pool config to sys.config 2017-04-19 18:31:10 +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