Commit Graph

566 Commits

Author SHA1 Message Date
Артем
3fab8903b2
FF-198: Add p2p template schema (#237)
* added p2p template schema

* fixed
2020-06-24 00:04:15 +03:00
Roman Pushkov
fa1cfaa48a
MSPF-487: graceful shutdown (#228)
* add graceful shutdown tests

* add drainer

* add drainer to tree

* update

* update tests

* update tests

* add drainer as dep

* abstract away drainer

* cleanup

* remove graceful shutdown tests

* further cleanup
2020-06-23 19:21:04 +03:00
Артем
8c924ada6b
FF-194: Add contact info (#236)
* updated swag

* added contact info

* fixed
2020-06-23 15:26:35 +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
Артем
ff4efa6cff
FF-190: Wallet schema (#233)
* added wallet schema

* started to add tests

* added tests
2020-06-22 17:52:48 +03:00
Roman Pushkov
183c8ecad4
FF-191: destinations in thrift (#235)
* update proto

* add timestamped event to destination codec

* add handler

* add destination version

* change clause order in instrument

* add destination machinery schema

* add schema tests

* fix types

* add tests

* add backwards compatibility
2020-06-19 10:50:02 +03:00
Alexey
151b86d9ce
FF-193: Thrift event format for source (#232) 2020-06-18 11:52:51 +03:00
Boris
f82a838ffe
MSPF-562: Add bank card category (#231) 2020-06-16 17:05:24 +03:00
Sergey Yelin
5751b2005c
P2C-4: fix crash (#230)
* Add provider selection

* P2C-4: Add routing

* Fix test

* Withdrawal session is actually list

* Fixes

* Typo in spec

* Fix another typo in spec

* Hide route session from withdrawal

* Simplify session_processing_status/1

* Match sessions and transfers

In current design withdrawal has one session with corresponding transfer
per route. So there is no need to have explicit counter.

* Rework routing, move it to own module

* Use counter for sessions and transaction cound

* Recalculate provider on route_change event

* Add quote test for routing

* Fix

* Separate ff_withdrawal and ff_withdrawal_route_utils

* choose_provider -> filter_providers

* Rename routes() to more sutable attempts()

* Don not record transient error

* Remove unreachable error handling here

* Use route() as for attempts

* Review fixes

* Lazy init for attempts

* Fix crash on marshalling withdrawal without attempts

* Fix crash on "new" withdrawal id format (which is actually session_id)

* Make session_id optional

* Fix type

* typo

* Fix test
2020-06-11 16:28:28 +03:00
Andrey Fadeev
42832028b4
Update machinery to rbkmoney/machinery@032ee30 (#229) 2020-06-11 15:47:13 +03:00
Sergey Yelin
cba1c26a68
P2C-4: cascade routing (#225)
* Add provider selection

* P2C-4: Add routing

* Fix test

* Withdrawal session is actually list

* Fixes

* Typo in spec

* Fix another typo in spec

* Hide route session from withdrawal

* Simplify session_processing_status/1

* Match sessions and transfers

In current design withdrawal has one session with corresponding transfer
per route. So there is no need to have explicit counter.

* Rework routing, move it to own module

* Use counter for sessions and transaction cound

* Recalculate provider on route_change event

* Add quote test for routing

* Fix

* Separate ff_withdrawal and ff_withdrawal_route_utils

* choose_provider -> filter_providers

* Rename routes() to more sutable attempts()

* Don not record transient error

* Remove unreachable error handling here

* Use route() as for attempts

* Review fixes

* Lazy init for attempts

* Fix crash on marshalling withdrawal without attempts
2020-06-10 13:31:53 +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
Andrey Fadeev
9198b56f25
Add repair response processing (#227)
* Add repair response processing
* Update bender
2020-06-04 10:47:43 +03:00
Артем
e558a129e0
FF-159: New states (#204)
* WIP

* fixed compile errors

* fixed dialyzer and tests

* improved types

* added migration for create at

* added meta

* fixed

* fixed codecs and handlers

* fixed tests

* reverted version delete

* fixed tests

* minor

* minor

* added migration to session identity

* added metadata migration

* fixed

* added wapi support for metadata

* fixed

* fixed

* added some fixes

* minor

* fixed

* updated proto
2020-06-02 16:18:39 +03:00
Sergey Yelin
f1b17cb6f8
Add missing {error,exists} handler for wallet (#224)
* Add missing {error,exists} handler for wallet

* Return error in case of exisitng wallet

* typo

* revert

* Adjust creation status

* Remove unneded
2020-06-02 10:23:40 +03:00
Sergey Yelin
a4b46f89f8
Fix datetime formatting (#221)
* Fix datetime formatting

* Fix lint errors
2020-05-25 14:49:06 +03:00
Andrey Fadeev
fc16ed751e
Update build-utils (#220) 2020-05-25 12:47:09 +03:00
Andrey Fadeev
8f577db5e6
FF-168 Update fistful-proto (#219) 2020-05-22 18:02:17 +03:00
Sergey Yelin
2b05c52f60
MSPF-532: Remove rfc3339 (#217)
* MSPF-532: Remove rfc3339

* Review fixes

* Fix error reporting
2020-05-19 21:55:01 +03:00
Sergey Yelin
82d8e54fa6
Add missing permission for GetWithdrawalByExternalID (#218) 2020-05-19 15:43:28 +03:00
Alexey
d4155d830f
FF-182: Change resource_unavailable woody error response code to 504 (#214) 2020-05-15 16:19:53 +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
Sergey Yelin
0be5b070a6
Add missing IDExist exception to identity creation (#215) 2020-05-13 13:34:37 +03:00
Sergey Yelin
6e0f8fec06
DC-119: Update damsel (#213) 2020-05-09 10:29:17 +03:00
Boris
dd6f54aebe
FF-180: fix wrong schema userInteraction.request.form return map instead of list (#210) 2020-04-28 10:56:53 +03:00
Andrey Fadeev
4291900035
Fix add_events repair scenario action decoding (#209)
Type `machinery:result/2` has field `action`, not `actions`
2020-04-27 13:23:36 +03:00
Andrey Fadeev
bdea82ae0a
Update woody and clients (#184) 2020-04-27 11:09:57 +03:00
Roman Pushkov
ed49ec3aef
FF-178: remove payment system from destination (#208)
* update swag

* remove payment system handling

* hard delete

* remove one more payment system field

* remove payment system field from tests

* restore payment system in sender and receiver

* update swag
2020-04-22 19:31:35 +03:00
Alexey
0d7150a39a
FF-172: Screen for pans in destination using swagger_validator callback (#206) 2020-04-14 12:07:24 +03:00
Alexey
e8a3bad7ed
FF-172: Temporary fix for PANs in destination names (#205) 2020-03-31 11:02:37 +03:00
Артем
86efb7c632
FF-165: Fix - migrate in collapse (#203) 2020-03-27 11:10:52 +03:00
Артем
bf61ddb451
FF-166: Fix - Pass exp date to adapter (#202)
* added exp date and card holder name

* minor

* fixed
2020-03-25 12:59:36 +03:00
Артем
7b61b96a95
FF-165: Add migrate params (#193)
* added migrate params

* fixed

* renamed

* fixed

* fixed test
2020-03-24 17:13:49 +03:00
Артем
e629fd713f
FF-166: Fix - Migrate old session (#201)
Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-03-24 10:25:42 +03:00
Andrey Fadeev
f4a5a6c1c1
FF-164 Update damsel (#200)
* Update damsel
* Remove binbase port publishing in test compose file
2020-03-23 23:39:39 +03:00
Артем
3a26a7a9dc
FF-166: Fix - add migration to session resource (#199)
* fixed

* minor

* fixed

* Try to save logs from services

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-03-21 10:10:20 +03:00
Артем
22edaa0b4f
FF-166: Auth data (#198)
* added auth data to resources

* updated swag

* added auth data

* fixed linter

* added migration

* fixed

* fixed

* fixed
2020-03-19 21:24:12 +03:00
Sergey Yelin
08e1437565
FF-161: Add mapping for account limit exceeded error (#197)
* FF-161: Add mapping for account limit exceeded error

* Fix test
2020-03-18 15:33:18 +03:00
Andrey Fadeev
ab17a30d18
FF-77 Add status change event after adjustment end (#181) 2020-03-17 11:35:44 +03:00
ndiezel0
3594a85f68
Revert "CDS-102: Upgrade cds_proto (#195)" (#196)
This reverts commit 527f9a56c4.
2020-03-16 13:30:19 +03:00
ndiezel0
527f9a56c4
CDS-102: Upgrade cds_proto (#195) 2020-03-12 19:29:37 +03:00
Артем
536ef5f051
FF-163: FIX p2p tool condition test (#194)
* fixed

* remixed

* fixed linter

* minor
2020-03-12 15:22:51 +03:00
Andrey Fadeev
753c35c67b
FF-164 Add USDT support (#192) 2020-03-11 14:10:25 +03:00
Andrey Fadeev
2004a065a1
FF-73 Fix crypto destination creating (#191) 2020-03-06 18:19:58 +03:00
Артем
1e1963773d
FF-163 - Fix Add trx event apply (#190)
* added trx event apply

* added assert and test data
2020-03-04 19:15:54 +03:00
Sergey Yelin
53d84a7cf1
FF-162: Fix crash on partial request (#189)
* FF-162: Fix crash on partial request

* Remove warning
2020-03-04 13:12:35 +03:00
Sergey Yelin
49fb9c0e4e
FF-146: Add externalId to withdrawals' output (#188)
* FF-146: Add externalId to withdrawals' output

* FF-146: Fix field name
2020-03-04 10:06:58 +03:00
Артем
ce032197ed
FF-155: Wapi destination thrift (#175)
* 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

* added destination backend

* added tests

* updated proto

* fixed

* fixed

* updated proto

* fixed

* fixed

* minor

* fixed

* fixed identity createAt

* fixed

* nano

Co-authored-by: Boris <bpozdnyakov@gmail.com>
Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-03-03 14:49:33 +03:00
Артем
52b9849119
PROX-389: Add transfer id and session id to p2p adapter structs (#187)
* added transfer id and session id

* fixed

* fixed test

* fixed2
2020-03-03 12:24:57 +03:00
Артем
e17fbfe684
FF-73: FIX - marshal (#186) 2020-03-02 15:38:04 +03:00