From 4f8fc31079f863f0e0c3878edf906179a58cf88b Mon Sep 17 00:00:00 2001 From: Duzzann Date: Fri, 10 Oct 2025 14:32:05 +0200 Subject: [PATCH 1/3] fix: rename PLATFORM_WALLET_PASSWORD to PLATFORM_WALLET_KEY Signed-off-by: Duzzann --- .env.demo | 2 +- .env.sample | 2 +- apps/agent-service/src/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.demo b/.env.demo index 798d80260..30d82f675 100644 --- a/.env.demo +++ b/.env.demo @@ -50,7 +50,7 @@ PUBLIC_PLATFORM_SUPPORT_EMAIL=support@blockster.global AFJ_VERSION=ghcr.io/credebl/credo-controller:latest PLATFORM_WALLET_NAME=platform-admin -PLATFORM_WALLET_PASSWORD='U2FsdGVkX19l6w/PpuicnGBYThBHolzF27oN0JwfWkc=' +PLATFORM_WALLET_KEY='U2FsdGVkX19l6w/PpuicnGBYThBHolzF27oN0JwfWkc=' PLATFORM_SEED=000000000000000000000000Steward1 PLATFORM_ID=1 diff --git a/.env.sample b/.env.sample index 4da82816f..5e18d019a 100644 --- a/.env.sample +++ b/.env.sample @@ -91,7 +91,7 @@ AFJ_VERSION=afj-0.4.1:latest FIDO_API_ENDPOINT=http://localhost:8000 # Host:port of your FIDO (WebAuthn) Server PLATFORM_WALLET_NAME=platform-admin -PLATFORM_WALLET_PASSWORD= // Please provide encrypt password using crypto-js +PLATFORM_WALLET_KEY= // Please provide encrypt password using crypto-js PLATFORM_SEED= // The seed should consist of 32 characters. PLATFORM_ID= diff --git a/apps/agent-service/src/main.ts b/apps/agent-service/src/main.ts index 292253c1c..e7c1791ba 100644 --- a/apps/agent-service/src/main.ts +++ b/apps/agent-service/src/main.ts @@ -29,7 +29,7 @@ async function bootstrap(): Promise { const agentSpinupPayload: IAgentSpinupDto = { walletName: process.env.PLATFORM_WALLET_NAME, - walletPassword: process.env.PLATFORM_WALLET_PASSWORD, + walletPassword: process.env.PLATFORM_WALLET_KEY, seed: process.env.PLATFORM_SEED, orgName: `${CommonConstants.PLATFORM_ADMIN_ORG}`, platformAdminEmail: process.env.PLATFORM_ADMIN_EMAIL, From b3f97128663aa7257067b2b46d8e299e9d267921 Mon Sep 17 00:00:00 2001 From: Duzzann Date: Fri, 10 Oct 2025 14:56:00 +0200 Subject: [PATCH 2/3] fix: update comment in .env.sample to PLATFORM_WALLET_KEY Signed-off-by: Duzzann --- .env.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 5e18d019a..f7e3e7dde 100644 --- a/.env.sample +++ b/.env.sample @@ -91,7 +91,7 @@ AFJ_VERSION=afj-0.4.1:latest FIDO_API_ENDPOINT=http://localhost:8000 # Host:port of your FIDO (WebAuthn) Server PLATFORM_WALLET_NAME=platform-admin -PLATFORM_WALLET_KEY= // Please provide encrypt password using crypto-js +PLATFORM_WALLET_KEY= // Please provide encrypt key using crypto-js PLATFORM_SEED= // The seed should consist of 32 characters. PLATFORM_ID= From 70a48f2208007b3573fae20fb49318c61fcd6f4a Mon Sep 17 00:00:00 2001 From: Duzzann Date: Fri, 10 Oct 2025 16:57:14 +0200 Subject: [PATCH 3/3] fix: update env demo and agent service Signed-off-by: Duzzann --- .env.demo | 2 +- apps/agent-service/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.demo b/.env.demo index 30d82f675..35bca5820 100644 --- a/.env.demo +++ b/.env.demo @@ -50,7 +50,7 @@ PUBLIC_PLATFORM_SUPPORT_EMAIL=support@blockster.global AFJ_VERSION=ghcr.io/credebl/credo-controller:latest PLATFORM_WALLET_NAME=platform-admin -PLATFORM_WALLET_KEY='U2FsdGVkX19l6w/PpuicnGBYThBHolzF27oN0JwfWkc=' +PLATFORM_WALLET_KEY='U2FsdGVkX19l6w/PpuicnGBYThBHolzF27oN0JwfWkc=' PLATFORM_SEED=000000000000000000000000Steward1 PLATFORM_ID=1 diff --git a/apps/agent-service/src/main.ts b/apps/agent-service/src/main.ts index e7c1791ba..7304910a4 100644 --- a/apps/agent-service/src/main.ts +++ b/apps/agent-service/src/main.ts @@ -29,7 +29,7 @@ async function bootstrap(): Promise { const agentSpinupPayload: IAgentSpinupDto = { walletName: process.env.PLATFORM_WALLET_NAME, - walletPassword: process.env.PLATFORM_WALLET_KEY, + walletPassword: process.env.PLATFORM_WALLET_KEY, seed: process.env.PLATFORM_SEED, orgName: `${CommonConstants.PLATFORM_ADMIN_ORG}`, platformAdminEmail: process.env.PLATFORM_ADMIN_EMAIL,