fistful-server/config/sys.config

168 lines
4.7 KiB
Plaintext
Raw Permalink Normal View History

2018-06-13 13:43:48 +00:00
[
2019-06-27 15:58:45 +00:00
{kernel, [
{log_level, info},
{logger, [
{handler, default, logger_std_h, #{
level => debug,
config => #{
type => {file, "/var/log/fistful-server/console.json"},
sync_mode_qlen => 20
},
formatter => {logger_logstash_formatter, #{}}
}}
2018-06-13 13:43:48 +00:00
]}
]},
{scoper, [
2019-06-27 15:58:45 +00:00
{storage, scoper_storage_logger}
2018-06-13 13:43:48 +00:00
]},
2018-07-05 10:57:59 +00:00
{dmt_client, [
% milliseconds
{cache_update_interval, 5000},
2018-07-05 10:57:59 +00:00
{max_cache_size, #{
2020-01-27 13:40:48 +00:00
elements => 20,
% 50Mb
memory => 52428800
2018-07-05 10:57:59 +00:00
}},
2020-01-27 13:40:48 +00:00
{woody_event_handlers, [
{scoper_woody_event_handler, #{
event_handler_opts => #{
formatter_opts => #{
max_length => 1000
}
}
}}
]},
2018-07-05 10:57:59 +00:00
{service_urls, #{
'Repository' => <<"http://dominant:8022/v1/domain/repository">>,
2018-07-05 10:57:59 +00:00
'RepositoryClient' => <<"http://dominant:8022/v1/domain/repository_client">>
}}
]},
{party_client, [
{services, #{
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 09:44:34 +00:00
party_management => "http://party_management:8022/v1/processing/partymgmt"
}},
{woody, #{
% disabled | safe | aggressive
cache_mode => safe,
options => #{
woody_client => #{
event_handler =>
{scoper_woody_event_handler, #{
event_handler_opts => #{
formatter_opts => #{
max_length => 1000
}
2020-01-27 13:40:48 +00:00
}
}}
}
}
}}
]},
2018-06-13 13:43:48 +00:00
{fistful, [
{provider, #{
2018-06-13 13:43:48 +00:00
<<"ncoeps">> => #{
payment_institution_id => 100,
contract_template_id => 10000,
contractor_level => full
},
<<"test">> => #{
payment_institution_id => 1,
contract_template_id => 1,
contractor_level => full
2018-06-13 13:43:48 +00:00
}
2018-07-05 10:57:59 +00:00
}},
{services, #{
'eventsink' => "http://machinegun:8022/v1/event_sink",
'automaton' => "http://machinegun:8022/v1/automaton",
'accounter' => "http://shumway:8022/shumpune"
2018-07-06 13:49:30 +00:00
}}
]},
{ff_transfer, [
%% 4h
{max_session_poll_timeout, 14400},
{withdrawal, #{
2020-07-16 13:45:18 +00:00
default_transient_errors => [
<<"authorization_failed:temporarily_unavailable">>
],
party_transient_errors => #{
<<"ExamplePartyID">> => [
<<"account_limit_exceeded:amount">>,
<<"authorization_failed:destination_rejected">>
]
}
}}
2018-07-08 16:58:55 +00:00
]},
2018-07-05 10:57:59 +00:00
{ff_server, [
2018-06-13 13:43:48 +00:00
{ip, "::"},
{port, 8022},
2020-01-27 13:40:48 +00:00
{default_woody_handling_timeout, 30000},
2018-07-06 13:49:30 +00:00
{net_opts, [
% Bump keepalive timeout up to a minute
{timeout, 60000}
]},
{scoper_event_handler_options, #{
event_handler_opts => #{
formatter_opts => #{
max_length => 1000,
max_printable_string_length => 80
}
}
}},
{health_check, #{
disk => {erl_health, disk, ["/", 99]},
memory => {erl_health, cg_memory, [99]},
service => {erl_health, service, [<<"fistful-server">>]}
}},
2018-11-02 11:21:59 +00:00
{eventsink, #{
identity => #{
namespace => 'ff/identity'
2018-11-02 11:21:59 +00:00
},
wallet => #{
namespace => 'ff/wallet_v2'
2018-11-02 11:21:59 +00:00
},
withdrawal => #{
namespace => 'ff/withdrawal_v2'
2018-11-09 11:38:05 +00:00
},
deposit => #{
namespace => 'ff/deposit_v1'
2018-11-09 11:38:05 +00:00
},
destination => #{
namespace => 'ff/destination_v2'
2018-11-09 11:38:05 +00:00
},
source => #{
namespace => 'ff/source_v1'
2018-11-15 11:32:50 +00:00
},
withdrawal_session => #{
namespace => 'ff/withdrawal/session_v2'
2020-02-07 10:34:23 +00:00
},
w2w_transfer => #{
namespace => 'ff/w2w_transfer_v1'
2018-11-02 11:21:59 +00:00
}
}}
]},
{how_are_you, [
{metrics_publishers, [
% {hay_statsd_publisher, #{
% key_prefix => <<"fistful-server.">>,
% host => "localhost",
% port => 8125
% }}
]}
]},
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 10:44:52 +00:00
{snowflake, [
% {machine_id, 42}
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 10:44:52 +00:00
]},
{prometheus, [
{collectors, [default]}
2018-06-13 13:43:48 +00:00
]}
].