Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/rafiki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://github.com/interledger/rafiki

type: application
version: 3.1.1
appVersion: "v2.3.0-beta"
appVersion: "v2.4.0-beta"

dependencies:
- name: common
Expand Down
32 changes: 32 additions & 0 deletions charts/rafiki/tests/configmap.backend_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,35 @@ tests:
path: data.POS_WEBHOOK_SERVICE_URL
value: 'http://pos-service.example.com:4008/webhook'

- it: ENABLE_PARTIAL_PAYMENT_DECISION should be "false" by default
template: configMap.backend.yaml
asserts:
- equal:
path: data.ENABLE_PARTIAL_PAYMENT_DECISION
value: "false"

- it: ENABLE_PARTIAL_PAYMENT_DECISION can be enabled
template: configMap.backend.yaml
set:
config:
backend:
ilpDataExchange:
partialPaymentDecision:
enabled: "true"
asserts:
- equal:
path: data.ENABLE_PARTIAL_PAYMENT_DECISION
value: "true"

- it: PARTIAL_PAYMENT_DECISION_MAX_WAIT_MS can be set
template: configMap.backend.yaml
set:
config:
backend:
ilpDataExchange:
partialPaymentDecision:
maxWaitMs: 3000
asserts:
- equal:
path: data.PARTIAL_PAYMENT_DECISION_MAX_WAIT_MS
value: "3000"
22 changes: 21 additions & 1 deletion charts/rafiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@ config:
# The accepted ILP rate fluctuation.
slippage: 0.01

ilpDataExchange:
# Base64 secret for storing data payloads exchanged between ASEs during ILP payments with additional data.
dbEncryptionSecret:
value: ""
secretKeyRef:
key: DB_ENCRYPTION_SECRET
Comment on lines +220 to +223

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is optional, depending on whether ASEs want to use the data exchange feature

partialPaymentDecision:
# Enables partial payment decisions (webhooks) when receiving additional data during ILP payments.
# Maps to ENABLE_PARTIAL_PAYMENT_DECISION.
enabled: "false"
# The maximum time in milliseconds that the ILP connector will wait for the receiver to action the partial payment.
# Maps to PARTIAL_PAYMENT_DECISION_MAX_WAIT_MS.
maxWaitMs: 5000

key:
# Your Rafiki instance’s client key ID. Make this a unique identifier for your
# Rafiki instance.
Expand Down Expand Up @@ -846,7 +860,11 @@ configMaps:
valueRef: config.backend.walletAddressNotFoundPollingEnabled
- key: ENABLE_ILP_TIMING_TELEMETRY
valueRef: config.backend.telemetry.enableIlpTimingTelemetry

- key: ENABLE_PARTIAL_PAYMENT_DECISION
valueRef: config.backend.ilpDataExchange.partialPaymentDecision.enabled
- key: PARTIAL_PAYMENT_DECISION_MAX_WAIT_MS
valueRef: config.backend.ilpDataExchange.partialPaymentDecision.maxWaitMs
Comment on lines +863 to +866

# See templates/configMap.backend.yaml on how we patch WALLET_ADDRESS_URL
# to automatically have the /.well-known/pay suffix

Expand Down Expand Up @@ -990,6 +1008,8 @@ secretsMaps:
valueRef: config.backend.ilp.streamSecret.value
- key: ADMIN_API_SECRET
valueRef: config.backend.admin.apiSecret.value
- key: DB_ENCRYPTION_SECRET
valueRef: config.backend.ilpDataExchange.dbEncryptionSecret.value

cards:
name: cards
Expand Down
Loading