Skip to content

Commit 92da162

Browse files
committed
chore: merge main
2 parents 2ccfa58 + 2ab846e commit 92da162

File tree

340 files changed

+20558
-11138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+20558
-11138
lines changed

.env.example

Lines changed: 68 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,73 @@
1-
# Pictique Configuration
2-
PUBLIC_PICTIQUE_BASE_URL=your_public_pictique_base_url_here
1+
# Neo4j Configuration
2+
NEO4J_URI=bolt://localhost:7687
3+
NEO4J_USER=neo4j
4+
NEO4J_PASSWORD=your-neo4j-password
35

4-
# Blabsy Configuration
5-
PUBLIC_BLABSY_BASE_URL=your_public_blabsy_base_url_here
6+
PUBLIC_EVAULT_SERVER_URI=http://localhost:4000
67

7-
# Eid Wallet & Pictique Configuration (Svelte)
8-
PUBLIC_REGISTRY_URL=your_public_registry_url_here
9-
PUBLIC_PROVISIONER_URL=your_public_provisioner_url_here
8+
REGISTRY_ENTROPY_KEY_JWK='{"kty":"EC","use":"sig","alg":"ES256","kid":"entropy-key-1","crv":"P-256","x":"your-x-value","y":"your-y-value","d":"your-d-value"}'
9+
ENCRYPTION_PASSWORD="your-encryption-password"
10+
W3ID="@your-w3id"
1011

11-
# Next.js Applications Configuration (eVoting, Blabsy, Group Charter Manager)
12-
NEXT_PUBLIC_REGISTRY_URL=your_public_registry_url_here
12+
REGISTRY_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/registry
1313

14-
# Neo4j Configuration
15-
NEO4J_URI=bolt://neo4j:7687
16-
NEO4J_USER=neo4j
17-
NEO4J_PASSWORD=your_secure_password_here
14+
REGISTRY_SHARED_SECRET="your-registry-shared-secret"
15+
PROVISIONER_DATABASE_URL="postgres://postgres:postgres@localhost:5432/provisioner"
16+
PUBLIC_VERIFF_KEY="your-veriff-key"
17+
VERIFF_HMAC_KEY="your-veriff-hmac-key"
18+
19+
# set this to allow or deny
20+
DUPLICATES_POLICY="DENY"
21+
IP_ADDR="localhost"
22+
23+
PICTIQUE_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/pictique
24+
25+
PICTIQUE_MAPPING_DB_PATH=/path/to/pictique/mapping/db
26+
BLABSY_MAPPING_DB_PATH="/path/to/blabsy/mapping/db"
27+
DREAMSYNC_MAPPING_DB_PATH="/path/to/dreamsync/mapping/db"
28+
GROUP_CHARTER_MAPPING_DB_PATH=/path/to/charter/mapping/db
29+
CERBERUS_MAPPING_DB_PATH=/path/to/cerberus/mapping/db
30+
31+
GOOGLE_APPLICATION_CREDENTIALS="/path/to/firebase-secrets.json"
32+
33+
#PUBLIC_REGISTRY_URL="https://registry.w3ds.metastate.foundation"
34+
#PUBLIC_PROVISIONER_URL="https://provisioner.w3ds.metastate.foundation"
35+
36+
#PUBLIC_REGISTRY_URL="https://registry.staging.metastate.foundation"
37+
#PUBLIC_PROVISIONER_URL="https://provisioner.staging.metastate.foundation"
38+
39+
PUBLIC_REGISTRY_URL="http://localhost:4321"
40+
PUBLIC_PROVISIONER_URL="http://localhost:3001"
41+
42+
PUBLIC_PICTIQUE_URL="http://localhost:5173"
43+
PUBLIC_PICTIQUE_BASE_URL="http://localhost:1111"
44+
PUBLIC_BLABSY_URL="http://localhost:8080"
45+
PUBLIC_BLABSY_BASE_URL="http://localhost:4444"
46+
47+
PUBLIC_GROUP_CHARTER_BASE_URL="http://localhost:5555"
48+
GROUP_CHARTER_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/group_charter_manager
49+
50+
CERBERUS_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/cerberus
51+
PUBLIC_CERBERUS_BASE_URL="http://localhost:6666"
52+
53+
EVOTING_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/evoting
54+
55+
EVOTING_MAPPING_DB_PATH="/path/to/evoting/mapping/db"
56+
57+
OPENAI_API_KEY=sk-your-openai-api-key
58+
59+
PUBLIC_EVOTING_BASE_URL="http://localhost:7777"
60+
PUBLIC_EVOTING_URL="http://localhost:3001"
61+
62+
PUBLIC_APP_STORE_EID_WALLET=""
63+
PUBLIC_PLAY_STORE_EID_WALLET=""
64+
NOTIFICATION_SHARED_SECRET=your-notification-secret-key
65+
66+
DREAMSYNC_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/dreamsync
67+
VITE_DREAMSYNC_BASE_URL="http://localhost:8888"
68+
69+
EREPUTATION_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ereputation
70+
EREPUTATION_MAPPING_DB_PATH="/path/to/erep/mapping/db"
71+
VITE_EREPUTATION_BASE_URL=http://localhost:8765
1872

19-
# eVault Configuration
20-
PORT=4000
73+
LOAD_TEST_USER_COUNT=6

.github/workflows/build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: "Build All Packages"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "dev"
8+
- "main"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 10.13.1
20+
run_install: false
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22.x
26+
cache: 'pnpm'
27+
28+
- name: Install build dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y build-essential python3
32+
33+
- name: Setup environment variables
34+
run: |
35+
# Always copy .env.example to .env before builds to ensure env vars are available
36+
# Root level .env
37+
if [ -f .env.example ]; then
38+
cp .env.example .env
39+
echo "✅ Created root .env from .env.example"
40+
else
41+
echo "⚠️ Warning: root .env.example not found, creating minimal .env"
42+
touch .env
43+
fi
44+
45+
# Package-level .env files (e.g., blabsy)
46+
for dir in platforms/* infrastructure/*; do
47+
if [ -d "$dir" ] && [ -f "$dir/.env.example" ]; then
48+
cp "$dir/.env.example" "$dir/.env"
49+
echo "✅ Created $dir/.env from $dir/.env.example"
50+
fi
51+
done
52+
53+
- name: Install Dependencies
54+
run: |
55+
# Install all dependencies (optional dependencies are installed by default)
56+
# Use --frozen-lockfile to ensure reproducible builds
57+
pnpm install --frozen-lockfile
58+
59+
- name: Rebuild native modules
60+
run: |
61+
# Rebuild native modules to ensure compatibility with CI environment
62+
pnpm rebuild || echo "Rebuild completed with warnings (some packages may not need rebuilding)"
63+
64+
- name: Build All Packages
65+
run: |
66+
# Build all packages using turbo
67+
pnpm build
68+

.github/workflows/check-lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Tests [evault-core + web3-adapter Integration]
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
paths:
9+
- 'infrastructure/evault-core/**'
10+
- 'infrastructure/web3-adapter/**'
11+
12+
jobs:
13+
test-web3-adapter-integration:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js 22
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
25+
- name: Install build dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y build-essential python3
29+
30+
- name: Install pnpm
31+
run: npm install -g pnpm
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: Clean and rebuild native modules
37+
run: |
38+
# Remove any pre-built binaries that might be incompatible
39+
find node_modules -name "sshcrypto.node" -delete 2>/dev/null || true
40+
find node_modules -path "*/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node" -delete 2>/dev/null || true
41+
# Rebuild ssh2 specifically for this platform
42+
pnpm rebuild ssh2
43+
# Rebuild all other native modules
44+
pnpm rebuild
45+
46+
- name: Build web3-adapter
47+
run: pnpm -F=web3-adapter build
48+
49+
- name: Run evault-core + web3-adapter integration tests
50+
env:
51+
CI: true
52+
GITHUB_ACTIONS: true
53+
DOCKER_HOST: unix:///var/run/docker.sock
54+
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: /var/run/docker.sock
55+
TESTCONTAINERS_RYUK_DISABLED: false
56+
TESTCONTAINERS_HOST_OVERRIDE: localhost
57+
run: pnpm -F=evault-core test:e2e:web3-adapter
58+

.github/workflows/tests-evault-core.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Tests [evault-core]
33
on:
44
push:
55
branches: [main]
6-
paths:
7-
- 'infrastructure/evault-core/**'
86
pull_request:
97
branches: [main]
108
paths:
@@ -23,12 +21,34 @@ jobs:
2321
with:
2422
node-version: 22
2523

24+
- name: Install build dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y build-essential python3
28+
2629
- name: Install pnpm
2730
run: npm install -g pnpm
2831

2932
- name: Install dependencies
3033
run: pnpm install
3134

35+
- name: Clean and rebuild ssh2 native module
36+
run: |
37+
# Remove any pre-built binaries that might be incompatible
38+
find node_modules -name "sshcrypto.node" -delete 2>/dev/null || true
39+
find node_modules -path "*/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node" -delete 2>/dev/null || true
40+
# Rebuild ssh2 specifically for this platform
41+
pnpm rebuild ssh2
42+
# Rebuild all other native modules
43+
pnpm rebuild
44+
3245
- name: Run tests
46+
env:
47+
CI: true
48+
GITHUB_ACTIONS: true
49+
DOCKER_HOST: unix:///var/run/docker.sock
50+
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: /var/run/docker.sock
51+
TESTCONTAINERS_RYUK_DISABLED: false
52+
TESTCONTAINERS_HOST_OVERRIDE: localhost
3353
run: pnpm -F=evault-core test
3454

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Tests [registry]
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
paths:
9+
- 'platforms/registry/**'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js 22
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
24+
- name: Install build dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y build-essential python3
28+
29+
- name: Install pnpm
30+
run: npm install -g pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Clean and rebuild ssh2 native module
36+
run: |
37+
# Remove any pre-built binaries that might be incompatible
38+
find node_modules -name "sshcrypto.node" -delete 2>/dev/null || true
39+
find node_modules -path "*/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node" -delete 2>/dev/null || true
40+
# Rebuild ssh2 specifically for this platform
41+
pnpm rebuild ssh2
42+
# Rebuild all other native modules
43+
pnpm rebuild
44+
45+
- name: Run tests
46+
env:
47+
CI: true
48+
GITHUB_ACTIONS: true
49+
DOCKER_HOST: unix:///var/run/docker.sock
50+
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: /var/run/docker.sock
51+
TESTCONTAINERS_RYUK_DISABLED: false
52+
TESTCONTAINERS_HOST_OVERRIDE: localhost
53+
run: pnpm -F=registry test
54+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tests [web3-adapter]
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
paths:
9+
- 'infrastructure/web3-adapter/**'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js 22
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
24+
- name: Install build dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y build-essential python3
28+
29+
- name: Install pnpm
30+
run: npm install -g pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Clean and rebuild ssh2 native module
36+
run: |
37+
# Remove any pre-built binaries that might be incompatible
38+
find node_modules -name "sshcrypto.node" -delete 2>/dev/null || true
39+
find node_modules -path "*/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node" -delete 2>/dev/null || true
40+
# Rebuild ssh2 specifically for this platform
41+
pnpm rebuild ssh2
42+
# Rebuild all other native modules
43+
pnpm rebuild
44+
45+
- name: Run tests
46+
run: pnpm -F=web3-adapter test --run
47+

0 commit comments

Comments
 (0)