diff --git a/platform/src/main/resources/config/anchor-config-default-values.yaml b/platform/src/main/resources/config/anchor-config-default-values.yaml index 3b5aa60ac9..3b1542b439 100644 --- a/platform/src/main/resources/config/anchor-config-default-values.yaml +++ b/platform/src/main/resources/config/anchor-config-default-values.yaml @@ -133,23 +133,39 @@ payment_observer: # The initial backoff (cool-down) time (in seconds) before reconnecting to the event publisher max_event_backoff_time: 300 - event_processor: # The context path of the event processing server context_path: / # The listening port of the event processing server port: 8084 - # The queue where the event processor will - queue: - type: kafka - kafka: - bootstrap_server: localhost:29092 - event_type_to_topic: - all: dev_ap_event_single_queue - quote_created: ap_event_quote_created - transaction_created: ap_event_transaction_created - transaction_status_updated: ap_event_transaction_status_changed - transaction_error: ap_event_transaction_error + # The configuration of the status callback to the client domain + client_status_callback: + enabled: true + # The configuration of the event delivery to the anchor business server + callback_api_request: + enabled: true + +# The list of clients for the Anchor server to safely communicate with the outside client domains. +# Each item in the list may contain the following fields: +# - domain: the domain of the client +# - type: the type of the client. The supported values are `custodial` and `non-custodial` +# - public_key: the public key of the client. This must match the public key of the TOML file of the client domain +# - url: the URL of the client's callback API endpoint +# +# Examples: +# - domain: lobstr.com +# public_key: GBI2IWJGR4UQPBIKPP6WG76X5PHSD2QTEBGIP6AZ3ZXWV46ZUSGNEGN2 +# callback_url: https://callback.lobstr.com/api/v1/anchor/callback +# - domain: mgi.com +# public_key: GA22WORKYRXB6AW7XR5GIOAOQUY4KKCENEAI34FN3KJNWHKDZTZSVLTU +# callback_url: https://callback.mgi.com/api/v2/anchor/callback +clients: +# - domain: domain1.com +# public_key: +# callback_url: +# - domain: domain2.com +# public_key: +# callback_url: ## @param: languages ## @supported_values: en @@ -266,12 +282,15 @@ sep10: # client_attribution_required: false ## @param: client_attribution_allow_list - ## Set the white list of the client domain. The domains are comma-separated. - # + ## Set the white list of the client domain. The domains are comma-separated. If a domain is defined in the + # `client_attribution` section of the configuration, the public_key defined in the client_attribution configuration + # mush match the `SIGNING_KEY` of the client domain's TOML file. client_attribution_allow_list: ## @param: client_attribution_deny_list - ## Set the black list of the client domain. The domains are comma-separated. - # + ## Set the black list of the client domain. The domains are comma-separated and must be defined in the + # `client_attribution` section of the configuration. The domains are comma-separated. If a domain is defined in the + # # `client_attribution` section of the configuration, the public_key defined in the client_attribution configuration + # # mush match the `SIGNING_KEY` of the client domain's TOML file. client_attribution_deny_list: ## @param: auth_timeout ## @type: integer diff --git a/platform/src/main/resources/config/anchor-config-schema-v1.yaml b/platform/src/main/resources/config/anchor-config-schema-v1.yaml index 0ce8dd33e1..4a535a9241 100644 --- a/platform/src/main/resources/config/anchor-config-schema-v1.yaml +++ b/platform/src/main/resources/config/anchor-config-schema-v1.yaml @@ -9,6 +9,7 @@ callback_api.auth.jwt.http_header: callback_api.auth.type: callback_api.base_url: callback_api.check_certificate: +clients: data.database: data.ddl_auto: data.flyway_baseline_on_migrate: @@ -18,15 +19,10 @@ data.initial_connection_pool_size: data.max_active_connections: data.server: data.type: +event_processor.callback_api_request.enabled: +event_processor.client_status_callback.enabled: event_processor.context_path: event_processor.port: -event_processor.queue.kafka.bootstrap_server: -event_processor.queue.kafka.event_type_to_topic.all: -event_processor.queue.kafka.event_type_to_topic.quote_created: -event_processor.queue.kafka.event_type_to_topic.transaction_created: -event_processor.queue.kafka.event_type_to_topic.transaction_error: -event_processor.queue.kafka.event_type_to_topic.transaction_status_updated: -event_processor.queue.type: events.enabled: events.event_type_to_queue.quote_created: events.event_type_to_queue.transaction_created: