Commit Graph

54 Commits

Author SHA1 Message Date
Артем
32cc17e061
TD-170: Add CI/CD (#4)
* added base ci cd files

* removed cds, kds, identdocstore, improved make, added compose

* fixed format

* fixed dialyzer

* added compose run

* changed to project_plugins

* fixed prometheus

* fixed lock

* fixed format

* removed deps

* added test fixes

* fixed lint

* fixed and removed old cfg

* removed unused app

* added requested changes

* fixed yamllint

* fixed

* removed expose

* updated party healthcheck

* updated compose

* removed version

* mb port?

* Revert "mb port?"

This reverts commit bf42f1c536.

* fixed
2022-03-02 11:20:07 +03:00
Boris
f6155acb04
[FF-235] delete identify: challenge, identity class (#410) 2021-11-26 10:34:34 +03:00
Boris
fcb6a8fba0
[ED-279]: delete p2p (#404) 2021-10-20 14:09:21 +03:00
George Belyakov
04292c3bc3
ED-131: flexible dicts (#394)
* payment_system marshal/unmarshal in ff_codec

* payment_system in ff_resource/ff_withdrawal

* implement payment_system, part 1

* bump damsel (+ BinData)

* fix dialyzer

* implement payment_system, part2 (not work version, only for save)

* implement payment_system, part3

* fix compilation error

* fix dialyzer

* fix payment_system_deprecated decoding/error-return issue

* fix ff_bin_data typing, fix useless code in ff_codec

* fix varset issue in withdrawal

* fix create_resource issue

* fix review issues with marshalling/unmarshalling and PaymentInstitution/PaymentSystemSelector typing

* implement payment_system additional rework

* fix complete_resource cases issue

* rework create_resource func, part1, save varesion, not working

* rework types in ff_resource

* rework withdrawals/resource do-unwraps, fix errors

* fix payment_system optionality in withdrawal adapter marshalling

* fix review issues (more compact and proper resource_create)

* fix ff_routing_rule RoutingRuleTag optionality issue

* add party-management image to test env, cbange party management calls from hellgate to party-management

* fix issue with wrong BankCard field "iso_country_code" which right name is "issuer_country"

* fix payment_system eunit issue in withdrawal session machinery schema

* add payment system to ct

* docker-compose party-management image update

* try to fix issuer_country issue

* iso_country_code/issuer_country issue fixed.

* add dummy payment system selector to payment institution #2

* fix dialyzer

* nano

* nano

* nano

* remove hellgate

* nano

* refactoring

* add BinDataCondition to payment_system selector in ct
2021-09-03 12:44:34 +03:00
Yaroslav Rogov
d4ede853a0
Ed 226/feat/monitoring (#398)
* ED-226/feat: Add the rest of monitoring tools

- how_are_you for metrics
- config for erlang_health
- prometheus routes

* ED-226/fix: Fix route concat

* ED-226/refactor: Fix formatting to erlfmt v0.12

* ED-226/fix: Fix spec

* ED-226/deps: Add woody_api_hay

* ED-226/refactor: Fix formatting

* ED-226/fmt: Partially return author format of */sys.config

* ED-226/fmt: sys.config formatting fixes
2021-08-24 15:58:11 +03:00
Yaroslav Rogov
f9d8f68a6b
Revert "ED-226/feat: Add the rest of monitoring tools (#395)" (#397)
This reverts commit 0ab1c9b8d7.
2021-08-23 18:29:04 +03:00
Yaroslav Rogov
0ab1c9b8d7
ED-226/feat: Add the rest of monitoring tools (#395)
* ED-226/feat: Add the rest of monitoring tools

- how_are_you for metrics
- config for erlang_health
- prometheus routes

* ED-226/fix: Fix route concat

* ED-226/refactor: Fix formatting to erlfmt v0.12

* ED-226/fix: Fix spec
2021-08-23 15:03:01 +03:00
dinama
534a71055e
ED-129: drop wapi code (#388) 2021-04-15 10:26:11 +03:00
dinama
7a1257a427
FF-237: update lechiffre (part1) (#344)
* update lechiffre

* drop support base64 resource tokens

* naive idempotent support

* quoteToken code refactoring

* fix metadata error p2p_transfer

Co-authored-by: Артем <WWW_cool@inbox.ru>
2020-12-15 18:46:07 +03:00
dinama
c229d491ba
FF-219: wapi getP2PTransferEvents via thrift backend (#322) (#336) 2020-11-19 22:51:23 +03:00
Toporkov Igor
01fb6d846d
fix: Revert everything & add erts (#335)
* Revert everything back to prometheus_metrics

* Include erts
2020-11-12 17:36:13 +03:00
dinama
a64579afc3
+fix p2p_session service url (#333)
* fix service url

* fix authData on Sender thrift

* drop get_default_termset on wapi_thift_SUITE

* rename service w2w_transfer to fistful_w2w_transfer

* rename service p2p_transfer to fistful_p2p_transfer

* rename service p2p_session to fistful_p2p_session

* sys.config service url examples
2020-11-09 16:06:36 +03:00
Toporkov Igor
57fe94e621
MSPF-579: Prometheus metrics (#325)
* Add prometheus to deps, update lockfile

* Update build images

* Add metrics route

* Provide sample prometheus config

* Update build_utils

* Inmplement map_error from new codegen

* Revert "Inmplement map_error from new codegen"

This reverts commit 9698ede3b386cca48623eb58c9ab4ca7ebfe5e4b.

* Revert "Update build images"

This reverts commit 1e19757b63d0acabf614a56874e985d2d900551f.

* Revert "Update build_utils"

This reverts commit 226b7ac3ab47af3064b50c3ec263cb6bc1f5732c.
2020-10-26 17:08:29 +03:00
Toporkov Igor
ca01722c40
MSPF-567: update bender client lib (#280)
* Upgrade bender

* Update bender_client

* Update bender_client

* Handle bender returning both binary and integer ID

* Resolve missed  merge conflict

* Configure url for generator

* Fix pattern matching in externalID tests

* Fix wrong order of operands on external_id_conflict

* Hide IntegerId from fistful

* Fix wrong error matching
2020-08-18 18:37:11 +03:00
Alexey
31e8e92258
P2C-9: Error mapping (#242) 2020-07-16 16:45:18 +03:00
ndiezel0
e8584b1f71
CAPI-424: Change config (#255) 2020-07-14 16:38:48 +03:00
Артем
4826c5db66
FF-175: P2P templates (#223)
* started p2p templates

* fixed

* fixed validation p2p template creation

* refactored

* added eventsink

* added p2p template handler

* added p2p template tests

* added p2p template create and get api

* updated swag

* updated proto, fixed tests, fixed dyalizer

* added block, create p2p methods

* fixed

* added auth to p2p template ops [WIP]

* added tests

* fixed

* minor

* fixed tests

* added requested changes

* added tests

* fixed

* fixed

* fixed

* minor

* fixed linter

* updated proto

* added part of requested changes

* added part of fixes

* fixed

* fixed

* added requested changes

* fixed

* fixed

* added quote test

* fixed

* fixed test

* updated swag

* added template quote

* fixed

* fixed

* fixed
2020-06-23 00:25:34 +03:00
Andrey Fadeev
b5dbcabaf0
FF-168 Thrift encoding for p2p events (#226)
Co-authored-by: Igor Toporkov <i.toporkov@rbkmoney.com>
2020-06-08 17:14:00 +03:00
Toporkov Igor
df471b4064
FF-143: Uac authorization (#165)
* Add uac dependency

* use uac to issue tokens

* Configure uac

* Authorize operations with uac

* Issue tokens with uac in tests

* wip: furthemore migrate to uac

* Remove unreachable case

* Adjust wapi config in tests

* Don't start old authorizer

* Fix auth context creation in tests

* Fix all definitions of create_auth_ctx

* Revert "Don't start old authorizer"

This reverts commit 2636fcfa48e798a8fb07534e512ea5b494f57b19.

* Fix old config naming

* Deduplicate unique id generation

* Provide dummy snowflake config

* Use macro for signee

* Authorize operation withc UAC (#140)

* Verify tokens with uac

* Implement dummy authorization

* Return quote verification

* Restore authorizer code order

* Restore signer code order

* Update commentaries

* Provide operation access lists

* Give party read/write permissions to the test tokens

* Introduce more resources, standardize CreateWithdrawal authoriation

* Download file with read access

* Authorize withdrawals with dedicated permission

* Fix permissions in tests

* Upgrade uac

* Remove redundant auth related modules

* Use uac issue

* Update tests

* Fix opaque type usage

* Add domain_name to uac config

* Remove signee from test config

* Rollback to old roles

* Upgrade uac

* Fix for wapi wallet tests

* Use macro for domain

* Remove domain name from configs

* Use uac utils functions

* Make operation access less strict

* Remove unused signee option

* Replace get_party_id with uac function

* Create ACL migration layer

* Reimplement operation access

* Fix style

* Remove reintroduced auth code

* Upgrade uac

* Remove redundant verification option

* Suppress opaque introspection dialyzer warning

* Fix nested resources ACLs

* Issue test quota without resource access

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Adapt new p2p code

* Rename refactor and move role mapping

* Refactor roles mapping

* Use uac dev branch

* Fix merge incompatibilities

* Fix even more incompatibilities

* Bump uac and adjust code to it

* Add operation access for new ops

* Upgrade uac

* Issue tokens the new way

* Fix merge artifacts

* Create simple resource hierarchy for new operations

* Fix authorization by bearer

* Fix missed merge issues

* Apply suggestions from code review

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Verify partyID in p2p continuation tokens, add signee to wapi config

* Remove OperationID from log message where it is already present in meta

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Add signee to app config

* Test if unauthorized user still can create withdrawal using grants

* Do withdrawal specific authorization inside create_withdrawal

* Test wapi_SUITE default with both tokens, specify domain when issuing tokens

* Upgrade uac

* Specify which domains to decode

* Throw withdrawal authorization errors

* Split too long lines

* Simplify grant authorization

* Do not handle 'missing' errors, handle wallet notfound

* Rework error mapping slightly

* Add resource to insufficient_access/claim error

* Try bumping cowboy_cors to fix CI dialyzer error

* Use fork-master version of cowboy_cors

Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>
2020-05-14 13:44:52 +03:00
Артем
5d659b86f9
FF-160: Add w2w transfer (#178)
* initial

* [WIP] w2w transfer + updated proto

* added limit check, validations, revert

* removed reverts< worked test for transfer & adjastment

* minor

* added eventsink handles

* added fixes

* minors

* added wapi handle

* added migration, added wapi test

* fixed, updated swag

* fixed

* fixed codec

* Fix tests

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-02-26 12:41:01 +03:00
Boris
2b335fa3d4
FF-73: call wallets from wapi using thrift API (#75)
* fix test

* FF-73: init

* FF-73

* FF-73: wapi cut off utils

* FF-73: cut off wallet from wapi_ff_backend

* FF-73: encode to marshal

* impl thrift changes

* FF-73: add test

* idempotense wallet

* uncomment options

* fix bugs

* del junk

* del maybe_marshal

* little change

* Remove races in tests

* refactored, added wallet mock tests

* Fix missed variable

* fixed, added thrift handler

* merge master

* daylizer fix

* FF-94: Wapi identity thrift (#88)

* added identity create and get methods

* added identity challenges back, get events back

* added tests

* nano

* added some fixed

* fixed tests

* fixed tests

* refactored

* refactored

* added new suite, some fixes

* added more tests

* fixed types

* minor

* fixed tests

* fixed linter

* updated proto

* fixed

* updated proto

* fixed

* fixed

* nano

Co-authored-by: Артем <WWW_cool@inbox.ru>
Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-02-14 18:54:55 +03:00
Артем
ec925d3f2b
Epic: P2P (#152) 2020-02-07 13:34:23 +03:00
ndiezel0
5695f49453
MG-175: Add scoper_event_handler_options uses and examples (#174) 2020-02-03 12:21:32 +03:00
Boris
97bbea6c9b
FF-136: add encrypted token (#169) 2020-01-29 18:07:07 +03:00
Rustem Shaydullin
52d0997f38 MG-175: Upgrade woody 2020-01-27 16:40:48 +03:00
Alexey
2bc256464b
FF-128: Bender integration part 1 (#138) 2019-11-15 16:13:20 +03:00
Sergey Yelin
eaf68723c7
FF-116: Switch to shumpune proto (#126)
* Switch to shumpune proto

* Affected -> Clock

* Added shumpune_proto

* Add coverage config

* Add extra parameter with type clock() to ff_transaction:balance/1

* Update hellgate and dominant

* Add clock marshaling rules

* Upgrade fistful-proto

* Fix dialyzer errors

* Code review fixes

* Move currency reference creartion to ff_currency.

* Use standard function for conversion

* Revert "Use standard function for conversion"

This reverts commit 9ac5a94c55476400f425703192d48e8211b1b1dc.

* Use standard function - 2

* Replace clock records with ff_clock module

* Fix clock type

* More review fixes

* Revert "More review fixes"

This reverts commit a75707eace1fdc41668755d62d0130054beda7aa.

* More review fixes

* Add NOTE to deposite test

* Move clock selection to ff_postings_transfer

* Fix spec for clock/1
2019-10-14 14:16:30 +03:00
Andrey Fadeev
89f1d570a7
FF-77 Use party_client for PartyManagement calls (#127)
* Rename ff_ctx to ff_entity_context
* Add runtime context and pass it through all woody handlers
* Add party_client usage
2019-10-07 11:45:00 +03:00
Andrey Fadeev
9e899397e7
FF-77 Another try to rewrite transfers (#123)
* Extract deposit from ff_transfer
* Extract withdrawal from ff_transfer
* Remove ff_transfer
* Add deposit revert
* Add adjustments
2019-09-24 17:06:17 +03:00
Andrew Mayorov
f849b9d4b0
Fix one more place w/ healthcheck setup (#115) 2019-08-22 17:33:39 +03:00
Sergey Yelin
0721abeb78
Upgrade Erlang and deps 2019-06-27 18:58:45 +03:00
Артем
bb73cc2edd
FF-69: Internal ExpiresAt (#67) 2019-02-26 15:38:19 +03:00
Артем
0f506bd4e8
Mock test on WAPI (#65) 2019-02-21 17:34:37 +03:00
Evgeny Levenets
27bea54b03
DC-104: withdrawals routing (#54)
* DC-104: withdrawals routing

shittycode typhoon

* linter fix

* renaming

* remove default IdentityID

* postmerge fix

* better identity IDs in tests
2019-02-04 13:09:42 +03:00
Alexey
487cfaf843
DC-111: Add subagent account (#56) 2019-02-01 12:08:46 +03:00
Артем
4aeeaefd48
FF-43: Reporter (#53) 2019-01-22 15:48:28 +03:00
Andrew Mayorov
6001bfd993
Bound session poll timeouts during withdrawal processing (#50) 2019-01-17 11:52:58 +03:00
Артем
cf18e94465
FF-23: Woody retries (#44) 2018-12-13 11:29:18 +03:00
Andrey Fadeev
6d30750423
FF-30 Add currency selector to provider fee (#45)
Add missed currency to provider settings
2018-12-03 19:35:26 +03:00
Артем
cbf1e08674
CAPI-317: Fistful stat (#37) 2018-11-21 12:19:40 +03:00
Артем
6b46a23076
FF-20: Session eventsink (#35) 2018-11-15 14:32:50 +03:00
Артем
f1901a79cc
FF-19: Destination eventsink (#34) 2018-11-09 14:38:05 +03:00
Артем
58c1dbe319
HG-384: New eventsinks (#23) 2018-11-02 17:21:59 +06:00
Andrey Fadeev
720a2e6549
FF-7 Add lazy account reading (#24)
Use a system account only if it was used in the cashflow.
Use a separate account for each currency
2018-10-25 19:51:09 +03:00
Andrey Fadeev
8f1383a4f0
FF-7 Add cash flow and fee (#20) 2018-10-19 13:34:47 +03:00
Anton Belyaev
9f27ef35ef
FF-2: add deposit api and refactor ff_withdrawal (#14)
* FF-2: refactor ff_withdrawal
- introduce ff_transfer_machine and new ff_transfer as an underlying process
  for any withdrawal, deposit and transfer between wallets.
- rename apps/ff_withdraw -> apps/ff_transfer and make corresponding updates
  including sys.config.
- rename fistful/src/ff_transfer.erl -> fistful/src/ff_postings_transfer.erl
* Introduce ff_instrument as an underlying abstruction for ff_destination and ff_source.
* Add ff_deposit
* Add ff_source
* Add FistfulAdmin thrift service
* Add transfer migration code
2018-10-05 14:19:46 +03:00
Anton Belyaev
f74a1114e3
Add multiple withdrawal adapters support (#12)
* Remove wallet specifics from the transfer
* Add support for multiple withdrawal adapters;
* Switch tests to proxy-mocketbank
* Bump swag to rbkmoney/swag-wallets@745b5ad
2018-09-25 14:25:00 +03:00
Anton Belyaev
8d040b6868
CAPI-292: add seadlines support to wapi (#11) 2018-09-04 19:48:19 +03:00
Anton Belyaev
5834dd48d1
Fix integration issues (#6) 2018-07-08 19:58:55 +03:00
Anton Belyaev
c79954c062
Add implicit woody context (#4) 2018-07-06 18:11:59 +03:00