ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

commit 6901ca79698826c1fa84764570af0752ca002074
parent a8c76caa754b7ac4bd7d643ab8db49faa42b6623
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  8 Apr 2025 12:10:46 +0200

expiration time from challenger, not from context

Diffstat:
Mroles/challenger/templates/etc/challenger/challenger-email.conf.j2 | 6++++++
Mroles/challenger/templates/etc/challenger/challenger-postal.conf.j2 | 6++++++
Mroles/exchange/files/etc/taler-exchange/conf.d/kyc-rules.conf | 7+------
3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 @@ -14,6 +14,12 @@ UNIXPATH_MODE = 666 # Example commands are challenger-send-{sms,email,post}.sh AUTH_COMMAND = /usr/bin/challenger-send-email.sh +# How long is an individual validation request valid? +VALIDATION_DURATION = 7d + +# How long is an validation valid? +VALIDATION_EXPIRATION = 3650d + # Name of a file with the message to send with the challenge. MESSAGE_TEMPLATE_FILE = /etc/challenger/email-message-template.txt diff --git a/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 @@ -18,6 +18,12 @@ AUTH_COMMAND = /usr/bin/challenger-send-post.sh # BASE_URL = https://example.com/ BASE_URL = https://postal.challenger.{{ DOMAIN_NAME }}/ +# How long is an individual validation request valid? +VALIDATION_DURATION = 45d + +# How long is an validation valid? +VALIDATION_EXPIRATION = 3650d + # Name of a file with the message to send with the challenge. MESSAGE_TEMPLATE_FILE = /etc/challenger/postal-message-template.txt diff --git a/roles/exchange/files/etc/taler-exchange/conf.d/kyc-rules.conf b/roles/exchange/files/etc/taler-exchange/conf.d/kyc-rules.conf @@ -139,21 +139,16 @@ CONTEXT = {} CHECK_NAME = sms-registration PROGRAM = tops-sms-check VOLUNTARY = YES -# 63072000000000 is 2 years (in microseconds) -CONTEXT = {"expiration_time":{"d_us": 63072000000000}} [kyc-measure-postal-registration] CHECK_NAME = postal-registration PROGRAM = tops-postal-check VOLUNTARY = YES -# 157680000000000 is 5 years (in microseconds) -CONTEXT = {"expiration_time":{"d_us": 157680000000000}} [kyc-measure-accept-tos] CHECK_NAME = form-accept-tos PROGRAM = check-tos -# 157680000000000 is 5 years (in microseconds) -CONTEXT = {"tos_url":"https://exchange.taler-ops.ch/terms","provider_name":"Taler Operations AG", "expiration_time":{"d_us": 157680000000000}, "successor_measure":"accept-tos"} +CONTEXT = {"tos_url":"https://exchange.taler-ops.ch/terms","provider_name":"Taler Operations AG", "successor_measure":"accept-tos"} VOLUNTARY = NO [kyc-measure-kyx]