summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-09-17 16:45:25 +0200
committerms <ms@taler.net>2021-09-17 16:45:25 +0200
commit77ccb623cc37f0e2e386c36255bf5096505ae17f (patch)
tree4d11de0eee84eee0c03446774ece631767145dde
parentd62c574bea9f6738f8db21c6dde7253a25be684c (diff)
downloaddeployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.tar.gz
deployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.tar.bz2
deployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.zip
api token != password
-rwxr-xr-xbin/taler-deployment6
-rwxr-xr-xbin/taler-deployment-prepare-with-eufin6
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