Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions deployment/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ else
initialize_mpc_config "$MPC_NODE_CONFIG_FILE" && echo "MPC node initialized"
fi

# Check if MPC_SECRET_STORE_KEY is empty - if so, fetch from GCP Secret Manager
if [ -z "${MPC_SECRET_STORE_KEY}" ]; then
echo "MPC_SECRET_STORE_KEY not provided in environment, will fetch from GCP Secret Manager..."
export MPC_SECRET_STORE_KEY=$(gcloud secrets versions access latest --project $GCP_PROJECT_ID --secret=$GCP_LOCAL_ENCRYPTION_KEY_SECRET_ID)
else
echo "Using provided MPC_SECRET_STORE_KEY from environment"
fi

update_mpc_config "$MPC_NODE_CONFIG_FILE" && echo "MPC node config updated"

# Generate secrets.json from environment variables if needed (for 2.2.0 -> 3.0.0 upgrade)
Expand Down
Loading