gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: move secrets to config file.


From: gnunet
Subject: [taler-deployment] branch master updated: move secrets to config file. DB TBD
Date: Tue, 18 Oct 2022 15:02:39 +0200

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

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 9ecd95a  move secrets to config file.  DB TBD
9ecd95a is described below

commit 9ecd95a941a240e62efbe0582f03b040bc161645
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 18 15:01:48 2022 +0200

    move secrets to config file.  DB TBD
---
 docker/hybrid/config/deployment.conf     | 5 +++++
 docker/hybrid/images/exchange/startup.sh | 4 ++--
 docker/hybrid/images/libeufin/startup.sh | 8 ++++----
 docker/hybrid/images/merchant/startup.sh | 2 +-
 4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/docker/hybrid/config/deployment.conf 
b/docker/hybrid/config/deployment.conf
index 4475587..427ffb5 100644
--- a/docker/hybrid/config/deployment.conf
+++ b/docker/hybrid/config/deployment.conf
@@ -1,2 +1,7 @@
 [taler-deployment]
 currency = EUR
+merchant-apikey = secret
+exchange-nexus-username = exchange-at-nexus
+exchange-nexus-password = secret-at-nexus
+exchange-sandbox-username = exchange-at-sandbox
+exchange-sandbox-password = secret-at-sandbox
diff --git a/docker/hybrid/images/exchange/startup.sh 
b/docker/hybrid/images/exchange/startup.sh
index 1c6ea9f..a586c7c 100644
--- a/docker/hybrid/images/exchange/startup.sh
+++ b/docker/hybrid/images/exchange/startup.sh
@@ -7,8 +7,8 @@ export LD_LIBRARY_PATH=/usr/local/lib
 CURRENCY=`taler-config -c /config/deployment.conf -s taler-deployment -o 
currency`
 EXCHANGE_URL="http://exchange/";
 
-EXCHANGE_NEXUS_USERNAME=exchange-at-nexus
-EXCHANGE_NEXUS_PASSWORD=x
+EXCHANGE_NEXUS_USERNAME=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-nexus-username`
+EXCHANGE_NEXUS_PASSWORD=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-nexus-password`
 EXCHANGE_IBAN=DE159593
 TALER_FACADE_NAME=taler-facade
 
diff --git a/docker/hybrid/images/libeufin/startup.sh 
b/docker/hybrid/images/libeufin/startup.sh
index 417efa1..5e8b447 100644
--- a/docker/hybrid/images/libeufin/startup.sh
+++ b/docker/hybrid/images/libeufin/startup.sh
@@ -56,8 +56,8 @@ libeufin-sandbox serve --no-localhost-only --port 
$SANDBOX_PORT &
 echo DONE
 is_serving ${LIBEUFIN_SANDBOX_URL} Sandbox
 
-EXCHANGE_SANDBOX_USERNAME=exchange-at-sandbox
-EXCHANGE_SANDBOX_PASSWORD=x
+EXCHANGE_SANDBOX_USERNAME=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-sandbox-username`
+EXCHANGE_SANDBOX_PASSWORD=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-sandbox-password`
 echo -n "Register the Exchange at Sandbox..."
 register_sandbox_account $EXCHANGE_SANDBOX_USERNAME $EXCHANGE_SANDBOX_PASSWORD 
$EXCHANGE_IBAN "Exchange Company"
 echo DONE
@@ -75,8 +75,8 @@ libeufin-cli sandbox \
   --bank-account $EXCHANGE_SANDBOX_USERNAME
 echo DONE
 ## NEXUS SETUP
-EXCHANGE_NEXUS_USERNAME=exchange-at-nexus
-EXCHANGE_NEXUS_PASSWORD=x
+EXCHANGE_NEXUS_USERNAME=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-nexus-username`
+EXCHANGE_NEXUS_PASSWORD=`taler-config -c /config/deployment.conf -s 
taler-deployment -o exchange-nexus-password`
 export LIBEUFIN_NEXUS_DB_CONNECTION="jdbc:sqlite:/data/nexus.sqlite3"
 echo -n "Creating Nexus superuser..."
 libeufin-nexus superuser $EXCHANGE_NEXUS_USERNAME --password 
$EXCHANGE_NEXUS_PASSWORD
diff --git a/docker/hybrid/images/merchant/startup.sh 
b/docker/hybrid/images/merchant/startup.sh
index 83c4db0..0014a21 100644
--- a/docker/hybrid/images/merchant/startup.sh
+++ b/docker/hybrid/images/merchant/startup.sh
@@ -5,6 +5,7 @@ export LD_LIBRARY_PATH=/usr/local/lib
 
 # Values from config file mounted at run time:
 CURRENCY=`taler-config -c /config/deployment.conf -s taler-deployment -o 
currency`
+BACKEND_APIKEY=`taler-config -c /config/deployment.conf -s taler-deployment -o 
merchant-apikey`
 EXCHANGE_URL="http://exchange/";
 
 while ! pg_isready -h talerdb -d taler; do
@@ -37,7 +38,6 @@ for n in `seq 1 30`
   fi
 echo Echange reachable.
 
-BACKEND_APIKEY=secret
 EXCHANGE_MASTER_PUB=$(curl -s ${EXCHANGE_URL}keys | jq -r .master_public_key)
 echo Found Exchange Pub: $EXCHANGE_MASTER_PUB
 sed -i "s;__EXCHANGE_URL__;${EXCHANGE_URL};" /config/taler.conf

-- 
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]