gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ansible-taler-exchange] branch master updated: escape required


From: Admin
Subject: [ansible-taler-exchange] branch master updated: escape required
Date: Mon, 17 Feb 2025 19:58:26 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository ansible-taler-exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 9d29b0b  escape required
9d29b0b is described below

commit 9d29b0bbc333f71b8b74613e1a84af8d2b0853eb
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Feb 17 19:58:23 2025 +0100

    escape required
---
 playbooks/test-public.yml                                           | 4 +++-
 playbooks/tops-public.yml                                           | 4 +++-
 roles/challenger/templates/etc/challenger/challenger-email.conf.j2  | 3 +++
 roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 | 3 +++
 roles/challenger/templates/etc/challenger/challenger-sms.conf.j2    | 4 ++++
 5 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/playbooks/test-public.yml b/playbooks/test-public.yml
index fb41a05..9ce8b54 100644
--- a/playbooks/test-public.yml
+++ b/playbooks/test-public.yml
@@ -48,12 +48,14 @@ KYCAID_TEMPLATE_INDIVIDUAL: tmpl_xxx
 # Template to use for identification of businesses with KYCAID
 KYCAID_TEMPLATE_BUSINESS: tmpl_xxx
 # Regex specifying allowed phone numbers for the SMS check
-EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX: \+41[0-9]+
+EXCHANGE_AML_PROGRAM_TOPS_SMS_HINT: "Swiss number required"
+EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX: "\\+41[0-9]+"
 # Limit to lift for withdraw upon SMS registration
 EXCHANGE_AML_PROGRAM_TOPS_SMS_WITHDRAW_THRESHOLD: CHF:200
 # Limit to lift for merge upon SMS registration
 EXCHANGE_AML_PROGRAM_TOPS_SMS_MERGE_THRESHOLD: CHF:0
 # Regex specifying allowed country names for the postal address check
+EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_HINT: "Swiss address required"
 EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_REGEX: "CH|Ch|ch"
 # Tool to use for sanction list checking
 EXCHANGE_SANCTION_HELPER: taler-exchange-helper-sanctions-dummy
diff --git a/playbooks/tops-public.yml b/playbooks/tops-public.yml
index f96495f..6b14f98 100644
--- a/playbooks/tops-public.yml
+++ b/playbooks/tops-public.yml
@@ -52,12 +52,14 @@ KYCAID_TEMPLATE_INDIVIDUAL: tmpl_xxx
 # Template to use for identification of businesses with KYCAID
 KYCAID_TEMPLATE_BUSINESS: tmpl_xxx
 # Regex specifying allowed phone numbers for the SMS check
-EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX: \+41[0-9]+
+EXCHANGE_AML_PROGRAM_TOPS_SMS_HINT: "Swiss number required"
+EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX: "\\+41[0-9]+"
 # Limit to lift for withdraw upon SMS registration
 EXCHANGE_AML_PROGRAM_TOPS_SMS_WITHDRAW_THRESHOLD: CHF:200
 # Limit to lift for merge upon SMS registration
 EXCHANGE_AML_PROGRAM_TOPS_SMS_MERGE_THRESHOLD: CHF:0
 # Regex specifying allowed country names for the postal address check
+EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_HINT: "Swiss address required"
 EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_REGEX: "CH|Ch|ch"
 # Tool to use for sanction list checking
 EXCHANGE_SANCTION_HELPER: taler-exchange-helper-sanctions-dummy
diff --git a/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 
b/roles/challenger/templates/etc/challenger/challenger-email.conf.j2
index 15b2978..9346fc5 100644
--- a/roles/challenger/templates/etc/challenger/challenger-email.conf.j2
+++ b/roles/challenger/templates/etc/challenger/challenger-email.conf.j2
@@ -21,6 +21,9 @@ AUTH_COMMAND = challenger-send-email.sh
 #
 ADDRESS_TYPE = email
 
+# What addresses are allowed.
+ADDRESS_RESTRICTIONS = {"email":{"hint":"valid e-mail address 
required","regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"}
+
 [challengerdb-postgres]
 #The connection string the plugin has to use for connecting to the database
 CONFIG = postgres:///challenger-email
diff --git 
a/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 
b/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2
index d2d54cb..83f6b08 100644
--- a/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2
+++ b/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2
@@ -21,6 +21,9 @@ AUTH_COMMAND = challenger-send-post.sh
 #
 ADDRESS_TYPE = address
 
+# What addresses are allowed.
+ADDRESS_RESTRICTIONS = {"zip":{"hint":"numeric zip code 
required","regex":"^[0-9]+$"}, "country":{"hint":"{{ 
EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_HINT }}","regex":"^{{ 
EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_REGEX }}$"}}
+
 [challengerdb-postgres]
 #The connection string the plugin has to use for connecting to the database
 CONFIG = postgres:///challenger-postal
diff --git a/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2 
b/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2
index d76fcb7..b9755a9 100644
--- a/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2
+++ b/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2
@@ -21,6 +21,10 @@ AUTH_COMMAND = challenger-send-sms.sh
 #
 ADDRESS_TYPE = phone
 
+# Limit acceptable phone numbers.
+ADDRESS_RESTRICTIONS = {"phone":{"hint":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_HINT 
}}","regex":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX }}"}}
+
+
 [challengerdb-postgres]
 #The connection string the plugin has to use for connecting to the database
 CONFIG = postgres:///challenger-sms

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]