gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: api token != password


From: gnunet
Subject: [taler-deployment] branch master updated: api token != password
Date: Fri, 17 Sep 2021 16:45:28 +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 77ccb62  api token != password
77ccb62 is described below

commit 77ccb623cc37f0e2e386c36255bf5096505ae17f
Author: ms <ms@taler.net>
AuthorDate: Fri Sep 17 16:45:25 2021 +0200

    api token != password
---
 bin/taler-deployment                    | 6 +++++-
 bin/taler-deployment-prepare-with-eufin | 6 +++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index 4f111df..eb7fc15 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -104,6 +104,10 @@ currmap = {
 def generate_apitoken():
     return "secret-token:" + ''.join(random.choices(ascii_letters + 
ascii_uppercase, k=10))
 
+def generate_password():
+    return ''.join(random.choices(ascii_letters + ascii_uppercase, k=10))
+
+
 def update_checkout(r: Repo, p: Path):
     """Clean the repository's working directory and
     update it to the match the latest version of the upstream branch
@@ -705,7 +709,7 @@ def bootstrap() -> None:
     sandbox_admin_password_file = Path.home() / "libeufin_admin_password"
     if not sandbox_admin_password_file.is_file():
         with sandbox_admin_password_file.open("w") as f:
-            f.write(generate_apitoken())
+            f.write(generate_password())
             print(f"Libeufin Sandbox admin password file 
'{sandbox_admin_password_file}' created.")
 
     with (home / "activate").open("w") as f:
diff --git a/bin/taler-deployment-prepare-with-eufin 
b/bin/taler-deployment-prepare-with-eufin
index e5e6fe3..1830312 100755
--- a/bin/taler-deployment-prepare-with-eufin
+++ b/bin/taler-deployment-prepare-with-eufin
@@ -168,7 +168,8 @@ sleep 5
 ##
 ## Step 4:  Set up euFin
 ##
-
+export LIBEUFIN_SANDBOX_USERNAME="admin"
+export LIBEUFIN_SANDBOX_PASSWORD=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD}
 # $1 = ebics user id, $2 = ebics partner, $3 = bank connection name
 # $4 = bank account name local to Nexus, $5 = bank account name as known
 # by Sandbox
@@ -220,8 +221,7 @@ function prepare_sandbox_account() {
 NEXUS_URL="http://localhost:5222/";
 SANDBOX_URL="http://localhost:5111/";
 
-# Deleting old data:
-
+libeufin-sandbox superuser admin 
--password=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD}
 taler-deployment-arm -i libeufin-nexus
 taler-deployment-arm -i libeufin-sandbox
 

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