Commit Graph

347 Commits

Author SHA1 Message Date
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
Артем
2a23f22725
FF-73: Fix - marshal (#185) 2020-03-02 13:29:35 +03:00
Andrey Fadeev
b7f624d080
Add withdrawal initial route processing to thrift codec (#183) 2020-02-28 14:50:47 +03:00
Andrey Fadeev
29d91c2c86
Fix legacy withdrawal events decoding (#182) 2020-02-27 14:09:36 +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
Andrey Fadeev
8ccb7bb741
Add initial route usage to legacy withdrawal event migration (#180) 2020-02-25 16:13:01 +03:00
Andrey Fadeev
51171f657d
Add event migration to GetEvents request handler (#179) 2020-02-21 16:10:12 +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
Артем
208e9c538d
FF-99 - Fix: Migration failed (#177)
* fixed

* minor
2020-02-12 20:32:33 +03:00
Andrey Fadeev
c7d376321f
FF-77 Deposit and withdrawal adjustment management interfaces (#167) 2020-02-12 15:15:09 +03:00
Артем
8d059b1be7
FF-157: Refactor create functions (#176)
* refactored wip

* updated proto

# Conflicts:
#	apps/ff_server/src/ff_identity_codec.erl
#	apps/ff_server/src/ff_wallet_codec.erl
#	apps/wapi/src/wapi_identity_backend.erl
#	apps/wapi/src/wapi_wallet_backend.erl
#	apps/wapi/test/wapi_thrift_SUITE.erl
#	rebar.lock

* fixed

* updated proto

# Conflicts:
#	apps/wapi/src/wapi_identity_backend.erl
#	rebar.lock

* refactored

* fixed

* fixed
2020-02-10 14:23:17 +03:00
Roman Pushkov
a68a1d1011 FF-99: extract destination tag (#171)
* update destination

* update instrument

* update wallet backend

* add ripple with tag test

* fix matching

* update withdrawal handling

* update codec

* fix unexported test

* add eventsink migration

* remove comment

* fix typo

* update test

* update test

* update test

* tuple to map

* type fix

* typo fix

* fix lint

* fix

* Revert "fix"

This reverts commit 1399e2c4962f69233d71092935c5f82b77359601.

* Revert "fix lint"

This reverts commit 4a74f96492938437e0e1819dd78307eef6f94eab.

* Revert "typo fix"

This reverts commit 8790903ff02c2aa00544479b868f0bf14eba7cb1.

* Revert "type fix"

This reverts commit fca17a2c0ddc6c6e0527883487b136bc5db2e279.

* Revert "tuple to map"

This reverts commit 8a33286ed9ec3021c644b8bd1717cf6121bc8b6a.

* type naming

* separate clause for ripple

* typo

* fix merge

* update swag

* fix merge
2020-02-10 10:58:02 +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
ndiezel0
1f16520b61
Merge pull request #172 from rbkmoney/MG-175/fix/scoper
MG-175: Fix scoper warnings
2020-01-30 13:13:47 +03:00
ndiezel0
8b1f15cd11
Merge branch 'master' into MG-175/fix/scoper 2020-01-30 11:40:12 +03:00
Rustem Shaydullin
3828b8d729 MG-175: Fix scoper warnings 2020-01-29 20:29:34 +03:00
Boris
97bbea6c9b
FF-136: add encrypted token (#169) 2020-01-29 18:07:07 +03:00
ndiezel0
997af1569c
Merge pull request #170 from rbkmoney/MG-175/ft/woody_upgrade
MG-175: Upgrade woody
2020-01-28 13:02:28 +03:00
Rustem Shaydullin
52d0997f38 MG-175: Upgrade woody 2020-01-27 16:40:48 +03:00