mirror of
https://github.com/valitydev/helmsdeep.git
synced 2024-11-06 08:55:21 +00:00
0cd257f642
* dark-api fix KK url * Enlarge domainconfig init with providers, payouts, payment_routing * add reporter enable wapi-* fix fistfull config for identities create * add create account in settlement * fix wallet_contract * Service urls now requires own place in config * fix wapi-pcidss config * fix wapi for creation destination * add environment for devstand * fix wapi endpoint in fistful-magista * darkapi bump * bump dashboard * bump KK version * add roles to internal realm * bump questionary-proxy * reduce default_ttl * add wapi port * group ingress tls secrets for api and iddqd * reduce cert number by splitting tls section in papi * change domain inliner to use vars * refactor ingress domain logic * refactor trigger name * Update erlang services (#204) * Update wapi-pcidss to latest * Update wapi-v0 to latest * Update hellgate * Update fistful * Remove legacy capi services * Add party-management * Add limiter * Fix files for config output for limiter and party-management * Update capi-v2 to latest * Update dominant * Update kds * Update cds * Update bender * Convert template vars to values * Update machinegun * Add token-keeper * Add token-keeper * ED-159: shamway fix * ED-159: Add bouncer and bouncer-policies * Update config/bouncer-policies/values.yaml.gotmpl Co-authored-by: vilorij <vilorij@ya.ru> * Code review fixes * Update bouncer* * Add keys * Move to new way of ingress templating * drop doubled parameter * typofix in dominant host * devstand change * typofix in bouncers * disable LE and tls in devstand * Fix bouncer config * Fix binapi config * fix papi shebang * typofix add probes port * fix bouncer-policies port * disable KK tls if disabled in Values * Fix path to party service in mg * capi-v1 is back for test transaction * ingress secret typofix * capi-v1 in helmfile * typofix in domain address * enable idkfa * fix ttl * bump deps * Add links to provider and rulesets Co-authored-by: r.shaidullin <ndiezel0@gmail.com> Co-authored-by: vilorij <vilorij@ya.ru> Co-authored-by: Dmitry Skokov <d.skokov@rbkmoney.com> * Update devstand.rbk.yaml * move prometheus to helm-infra * fix test-transaction stateless values * Add comment to default.values Co-authored-by: Dmitry Skokov <d.skokov@rbkmoney.com> Co-authored-by: Sergey Yelin <elinsn@gmail.com> Co-authored-by: ilyatrub <ilyatrub@gmail.com> Co-authored-by: Sergey Yelin <s.elin@rbkmoney.com> Co-authored-by: r.shaidullin <ndiezel0@gmail.com>
151 lines
5.9 KiB
Plaintext
151 lines
5.9 KiB
Plaintext
[
|
|
{kernel, [
|
|
{logger_level, info},
|
|
{logger, [
|
|
{handler, default, logger_std_h, #{
|
|
level => debug,
|
|
config => #{
|
|
type => standard_io,
|
|
sync_mode_qlen => 500,
|
|
drop_mode_qlen => 500,
|
|
flush_qlen => 2000
|
|
},
|
|
filters => [{access_log, {fun logger_filters:domain/2, {stop, equal, [cowboy_access_log]}}}],
|
|
formatter => {logger_logstash_formatter, #{
|
|
message_redaction_regex_list => [
|
|
",?'(payout_key|secret_key)'='[0-9a-zA-Z]+',?"
|
|
",?\{\"key\":\"(payout_key|secret_key)\",\"value\":\"[0-9a-zA-Z]+\"\},?",
|
|
",?Value\{bin='(payout_key|secret_key)'\}=Value\{bin='[0-9a-zA-Z]+'\},?"
|
|
]
|
|
}}
|
|
}},
|
|
{handler, access_logger, logger_std_h, #{
|
|
level => info,
|
|
config => #{
|
|
type => standard_io,
|
|
sync_mode_qlen => 20,
|
|
burst_limit_enable => true,
|
|
burst_limit_max_count => 600,
|
|
burst_limit_window_time => 1000
|
|
},
|
|
filters => [{access_log, {fun logger_filters:domain/2, {stop, not_equal, [cowboy_access_log]}}}],
|
|
formatter => {logger_logstash_formatter, #{
|
|
message_redaction_regex_list => [
|
|
",?'(payout_key|secret_key)'='[0-9a-zA-Z]+',?"
|
|
",?\{\"key\":\"(payout_key|secret_key)\",\"value\":\"[0-9a-zA-Z]+\"\},?",
|
|
",?Value\{bin='(payout_key|secret_key)'\}=Value\{bin='[0-9a-zA-Z]+'\},?"
|
|
]
|
|
}}
|
|
}}
|
|
]}
|
|
]},
|
|
|
|
{scoper, [
|
|
{storage, scoper_storage_logger}
|
|
]},
|
|
|
|
{dmt_client, [
|
|
{max_cache_size, #{
|
|
elements => 80,
|
|
memory => 209715200 % 200Mb
|
|
}},
|
|
{cache_update_interval, 5000}, % milliseconds
|
|
{cache_server_call_timeout, 30000}, % milliseconds
|
|
{woody_event_handlers, [
|
|
{scoper_woody_event_handler, #{
|
|
event_handler_opts => #{
|
|
formatter_opts => #{
|
|
max_length => 1000,
|
|
max_printable_string_length => 80
|
|
}
|
|
}
|
|
}}
|
|
]},
|
|
{service_urls, #{
|
|
'Repository' => <<"http://dominant:8022/v1/domain/repository">>,
|
|
'RepositoryClient' => <<"http://dominant:8022/v1/domain/repository_client">>
|
|
}}
|
|
]},
|
|
|
|
{wapi, [
|
|
{ip , "::" },
|
|
{port , 8080 },
|
|
{realm , <<"external">> },
|
|
{public_endpoint , <<"http://wapi">> },
|
|
{transport , thrift },
|
|
{access_conf, #{
|
|
jwt => #{
|
|
keyset => #{
|
|
keycloak => {pem_file, "/var/lib/wapi/keys/keycloak/keycloak.pubkey.pem"},
|
|
wapi => {pem_file, "/var/lib/wapi/keys/wapi.privkey.pem"}
|
|
}
|
|
}
|
|
}},
|
|
{signee, wapi},
|
|
{oops_bodies, #{
|
|
500 => "/var/lib/wapi/oops-bodies/oopsBody1",
|
|
501 => "/var/lib/wapi/oops-bodies/oopsBody1",
|
|
502 => "/var/lib/wapi/oops-bodies/oopsBody1",
|
|
503 => "/var/lib/wapi/oops-bodies/oopsBody2",
|
|
504 => "/var/lib/wapi/oops-bodies/oopsBody2"
|
|
}},
|
|
{health_check, #{
|
|
disk => {erl_health, disk , ["/", 99]},
|
|
memory => {erl_health, cg_memory, [70]},
|
|
service => {erl_health, service , [<<"wapi-v0">>]}
|
|
}},
|
|
{file_storage_url_lifetime, 60}, % seconds
|
|
{lechiffre_opts, #{
|
|
decryption_sources => [
|
|
{json, {file, <<"/var/lib/wapi/keys/token_encryption_key1.jwk">>}}
|
|
]
|
|
}},
|
|
{swagger_handler_opts, #{
|
|
validation_opts => #{
|
|
custom_validator => wapi_swagger_validator
|
|
}
|
|
}}
|
|
]},
|
|
|
|
{wapi_woody_client, [
|
|
{service_urls, #{
|
|
webhook_manager => <<"http://wallets-hooker:8022/wallets-hooker/v1/hook">>,
|
|
cds_storage => <<"http://cds:8022/v2/storage">>,
|
|
identdoc_storage => <<"http://cds:8022/v1/identity_document_storage">>,
|
|
fistful_stat => <<"http://fistful-magista:8022/stat">>,
|
|
fistful_report => <<"http://fistful-reporter:8022/fistful/reports">>,
|
|
file_storage => <<"http://file-storage:8022/file_storage">>,
|
|
fistful_wallet => <<"http://fistful:8022/v1/wallet">>,
|
|
fistful_identity => <<"http://fistful:8022/v1/identity">>,
|
|
fistful_destination => <<"http://fistful:8022/v1/destination">>,
|
|
fistful_withdrawal => <<"http://fistful:8022/v1/withdrawal">>,
|
|
fistful_provider => <<"http://fistful:8022/v1/provider">>,
|
|
fistful_w2w_transfer => <<"http://fistful:8022/v1/w2w_transfer">>,
|
|
fistful_p2p_template => <<"http://fistful:8022/v1/p2p_template">>,
|
|
fistful_p2p_transfer => <<"http://fistful:8022/v1/p2p_transfer">>,
|
|
fistful_p2p_session => <<"http://fistful:8022/v1/p2p_transfer/session">>
|
|
}},
|
|
{api_deadlines, #{
|
|
wallet => 30000 % millisec. fuck the party.
|
|
}}
|
|
]},
|
|
|
|
{bender_client, [
|
|
{services, #{
|
|
'Bender' => <<"http://bender:8022/v1/bender">>,
|
|
'Generator' => <<"http://bender:8022/v1/generator">>
|
|
}},
|
|
{deadline, 30000}
|
|
]},
|
|
|
|
{os_mon, [
|
|
{disksup_posix_only, true}
|
|
]},
|
|
%% TODO
|
|
{snowflake, [{machine_id, 1}]},
|
|
|
|
{prometheus, [
|
|
{collectors, [default]}
|
|
]}
|
|
].
|