anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

test_anastasis_api.conf (5699B)


      1 # This file is in the public domain.
      2 #
      3 [PATHS]
      4 TALER_TEST_HOME = test_anastasis_api_home/
      5 TALER_HOME = ${TALER_TEST_HOME:-${HOME:-${USERPROFILE}}}
      6 TALER_DATA_HOME = ${TALER_TEST_HOME:-${XDG_DATA_HOME:-${TALER_HOME}/.local/share/}/.local/share/}taler/
      7 TALER_CONFIG_HOME = ${TALER_TEST_HOME:-${XDG_CONFIG_HOME:-${TALER_HOME}/.config/}/.config/}taler/
      8 TALER_CACHE_HOME = ${TALER_TEST_HOME:-${XDG_CACHE_HOME:-${TALER_HOME}/.cache/}/.cache/}taler/
      9 # Keep the runtime directory (which holds the secmod UNIX domain sockets)
     10 # per-user: a fixed name under a shared /tmp is created by whoever runs the
     11 # test suite first and is then unusable for everybody else.  Matches the
     12 # convention of exchange-paths.conf.
     13 TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/
     14 
     15 [taler-helper-crypto-rsa]
     16 LOOKAHEAD_SIGN = 12 days
     17 
     18 [taler-helper-crypto-eddsa]
     19 LOOKAHEAD_SIGN = 12 days
     20 DURATION = 7 days
     21 
     22 # The bank is libeufin-bank (see below); this section only survives because
     23 # TALER_TESTING_get_credentials() insists on reading [bank]/HTTP_PORT.
     24 [bank]
     25 HTTP_PORT = 8082
     26 BASE_URL = http://localhost:8082/
     27 
     28 # libeufin-bank is started by taler-unified-setup.sh (option '-b'); WIRE_TYPE
     29 # must agree with the wire method the tests pass to it ('-d iban'), as that is
     30 # what decides the shape of the payto://-URIs of the accounts it registers.
     31 [libeufin-bank]
     32 CURRENCY = EUR
     33 WIRE_TYPE = iban
     34 IBAN_PAYTO_BIC = SANDBOXX
     35 BASE_URL = http://localhost:8082/
     36 DEFAULT_CUSTOMER_DEBT_LIMIT = EUR:200
     37 DEFAULT_ADMIN_DEBT_LIMIT = EUR:2000
     38 REGISTRATION_BONUS_ENABLED = yes
     39 REGISTRATION_BONUS = EUR:100
     40 SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/
     41 SERVE = tcp
     42 PORT = 8082
     43 # a cheap password hash keeps the test fast
     44 PWD_HASH_CONFIG = { "cost": 4 }
     45 # allow HTTP basic authentication, which is what the exchange's wire gateway
     46 # client uses to talk to the bank
     47 PWD_AUTH_COMPAT = yes
     48 
     49 [libeufin-bankdb-postgres]
     50 CONFIG = postgres:///talercheck
     51 
     52 [anastasis]
     53 PORT = 8086
     54 DB = postgres
     55 CURRENCY = EUR
     56 BUSINESS_NAME = "Checker's Test Inc."
     57 UPLOAD_LIMIT_MB = 1
     58 ANNUAL_POLICY_UPLOAD_LIMIT = 64
     59 INSURANCE = EUR:0
     60 PROVIDER_SALT = salty
     61 ANNUAL_FEE = EUR:4.99
     62 TRUTH_UPLOAD_FEE = EUR:0.0
     63 BASE_URL = http://localhost:8086/
     64 
     65 [anastasis-merchant-backend]
     66 PAYMENT_BACKEND_URL = http://localhost:8080/
     67 
     68 [authorization-question]
     69 CURRENCY = EUR
     70 COST = EUR:0
     71 
     72 [authorization-file]
     73 CURRENCY = EUR
     74 COST = EUR:1
     75 # The file method writes the challenge code to a file whose name comes from
     76 # the (client-supplied) truth, so the plugin only accepts names inside this
     77 # directory.  Per-user, like TALER_RUNTIME_DIR, so that concurrent runs by
     78 # different users on one host do not collide.
     79 DIRECTORY = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/anastasis-file-challenges/
     80 
     81 [authorization-email]
     82 CURRENCY = EUR
     83 COST = EUR:0
     84 
     85 [authorization-sms]
     86 CURRENCY = EUR
     87 COST = EUR:0
     88 COMMAND = ./sms_authentication.sh
     89 
     90 [stasis-postgres]
     91 CONFIG = postgres:///anastasischeck
     92 
     93 [merchant]
     94 PORT = 8080
     95 WIRE_TRANSFER_DELAY = 0 s
     96 DB = postgres
     97 
     98 [merchantdb-postgres]
     99 CONFIG = postgres:///talercheck
    100 
    101 [merchant-exchange-default]
    102 MASTER_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG
    103 EXCHANGE_BASE_URL = http://localhost:8081/
    104 CURRENCY = EUR
    105 
    106 [auditor]
    107 PORT = 8083
    108 BASE_URL = "http://localhost:8083/"
    109 TINY_AMOUNT = EUR:0.01
    110 
    111 [exchange]
    112 CURRENCY = EUR
    113 CURRENCY_ROUND_UNIT = EUR:0.01
    114 TINY_AMOUNT = EUR:0.01
    115 DB = postgres
    116 PORT = 8081
    117 SIGNKEY_LEGAL_DURATION = 2 years
    118 MASTER_PUBLIC_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG
    119 BASE_URL = "http://localhost:8081/"
    120 SERVE = tcp
    121 STEFAN_ABS = "EUR:5"
    122 
    123 [exchange-offline]
    124 MASTER_PRIV_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/master.priv
    125 
    126 SECM_TOFU_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/secm_tofus.pub
    127 
    128 [taler-exchange-secmod-eddsa]
    129 KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-eddsa/keys
    130 
    131 [taler-exchange-secmod-rsa]
    132 KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-rsa/keys
    133 
    134 [taler-exchange-secmod-cs]
    135 KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-cs/keys
    136 
    137 
    138 [exchangedb-postgres]
    139 CONFIG = "postgres:///talercheck"
    140 
    141 # 'exchange' is one of the accounts taler-unified-setup.sh registers at
    142 # libeufin-bank; the IBAN is the one it hard-codes for that account.
    143 [exchange-account-exchange]
    144 PAYTO_URI = "payto://iban/SANDBOXX/DE989651?receiver-name=Exchange+Company"
    145 ENABLE_DEBIT = YES
    146 ENABLE_CREDIT = YES
    147 
    148 [exchange-accountcredentials-exchange]
    149 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/"
    150 WIRE_GATEWAY_AUTH_METHOD = basic
    151 USERNAME = exchange
    152 PASSWORD = password
    153 
    154 [admin-accountcredentials-exchange]
    155 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/"
    156 WIRE_GATEWAY_AUTH_METHOD = basic
    157 USERNAME = admin
    158 # the password taler-unified-setup.sh gives the bank's admin account
    159 PASSWORD = secret-password
    160 
    161 [coin_eur_ct_1]
    162 value = EUR:0.01
    163 duration_withdraw = 7 days
    164 duration_spend = 2 years
    165 duration_legal = 3 years
    166 fee_withdraw = EUR:0.00
    167 fee_deposit = EUR:0.00
    168 fee_refresh = EUR:0.01
    169 fee_refund = EUR:0.01
    170 rsa_keysize = 1024
    171 CIPHER = RSA
    172 
    173 [coin_eur_ct_10]
    174 value = EUR:0.10
    175 duration_withdraw = 7 days
    176 duration_spend = 2 years
    177 duration_legal = 3 years
    178 fee_withdraw = EUR:0.01
    179 fee_deposit = EUR:0.01
    180 fee_refresh = EUR:0.03
    181 fee_refund = EUR:0.01
    182 rsa_keysize = 1024
    183 CIPHER = RSA
    184 
    185 [coin_eur_1]
    186 value = EUR:1
    187 duration_withdraw = 7 days
    188 duration_spend = 2 years
    189 duration_legal = 3 years
    190 fee_withdraw = EUR:0.01
    191 fee_deposit = EUR:0.01
    192 fee_refresh = EUR:0.03
    193 fee_refund = EUR:0.01
    194 rsa_keysize = 1024
    195 CIPHER = RSA
    196 
    197 [coin_eur_5]
    198 value = EUR:5
    199 duration_withdraw = 7 days
    200 duration_spend = 2 years
    201 duration_legal = 3 years
    202 fee_withdraw = EUR:0.01
    203 fee_deposit = EUR:0.01
    204 fee_refresh = EUR:0.03
    205 fee_refund = EUR:0.01
    206 rsa_keysize = 1024
    207 CIPHER = RSA