Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/pubic keys update #3

Merged
merged 25 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ab9bcdc
chore: config for running in dev
eum602 Jun 16, 2023
73c49b4
chore: scafolding to run job manager to update public keys
eum602 Jun 16, 2023
923767e
fix: database connection data fix
eum602 Jun 17, 2023
cf42b5e
chore: add database configuration
eum602 Jun 17, 2023
10d262e
chore: add database connection for web server
eum602 Jun 17, 2023
6d1b757
chore: config for running source code directly (no docker embedded)
eum602 Jun 17, 2023
4a136f1
chore: add migration dependency and public-directory migration files
eum602 Jun 19, 2023
5913697
chore: add public directory entity
eum602 Jun 19, 2023
2161a18
chore: add public-directory entity database connection for trusted re…
eum602 Jun 19, 2023
0fe63da
refactor: trusted registry
eum602 Jun 20, 2023
688785d
feat: add public directory getter for last block
eum602 Jun 20, 2023
948f382
chore: add public directory main listener structure
eum602 Jun 21, 2023
0767c6e
chore: update public directory database model
eum602 Jun 22, 2023
c6e1223
chore: update public directory main listener structure
eum602 Jun 22, 2023
56a2975
chore: database model for did
eum602 Jun 22, 2023
f29af77
chore: database model for public directory member
eum602 Jun 22, 2023
e97cbac
chore: database model for did in public directory
eum602 Jun 22, 2023
90d7b9b
chore: add pd_member entity and services
eum602 Jun 22, 2023
02a8463
refactor: add core worker
eum602 Jun 22, 2023
d28669d
feat: add public directory sweep component
eum602 Jun 23, 2023
1df3f28
chore: add scafolding to sweep over dids
eum602 Jun 24, 2023
d40929a
feat: add component to sweep dids according to a configured Public Ke…
eum602 Jun 25, 2023
706ef10
refactor: store certs as json web keys
eum602 Jun 26, 2023
e01fec4
feat: expose public keys through an endpoint
eum602 Jul 1, 2023
09278bd
fix: omit adding expired members in public directory
eum602 Jul 1, 2023
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
7 changes: 6 additions & 1 deletion .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ EXPOSED_CONTAINER_SERVER_PORT = 3025
#TYPEORM

TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_HOST = postgres
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = lacpass_trusted_list
Expand All @@ -33,3 +33,8 @@ ACCESS_TOKEN_LIFE = 360000000

RATE_LIMIT_WINDOW = 5
RATE_LIMIT_MAX_REQUESTS = 100

# custom variables
TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
RPC_CONNECTION_648540="http://35.185.112.219"
9 changes: 7 additions & 2 deletions .example.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EXPOSED_CONTAINER_SERVER_PORT = 3025
#TYPEORM

TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_HOST = postgres
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = lacpass_trusted_list_development
Expand All @@ -31,4 +31,9 @@ ACCESS_TOKEN_LIFE = 360000000
#RATE LIMIT

RATE_LIMIT_WINDOW = 5
RATE_LIMIT_MAX_REQUESTS = 100
RATE_LIMIT_MAX_REQUESTS = 100

# custom variables
TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
RPC_CONNECTION_648540="http://35.185.112.219"
40 changes: 40 additions & 0 deletions .example.env.dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#PORT

export PORT=3025 # use port 80 when running with docker
export EXPOSED_CONTAINER_SERVER_PORT=3025

#TYPEORM

export TYPEORM_TYPE=postgres
export TYPEORM_HOST=localhost
export TYPEORM_USERNAME=postgres
export TYPEORM_PASSWORD=postgres
export TYPEORM_DATABASE=lacpass_trusted_list_development
export TYPEORM_PORT=5432
export TYPEORM_SYNCHRONIZE=false
export TYPEORM_LOGGING=true
export TYPEORM_MIGRATIONS_RUN=true
export EXPOSED_CONTAINER_TYPEORM_PORT=5455

#REDIS

export REDIS_HOST=redis
export REDIS_PORT=6379
export REDIS_PASSWORD=redis
export EXPOSED_CONTAINER_REDIS_PORT=6405

#TOKEN

export JWT_SECRET=some-secret-string
export ACCESS_TOKEN_LIFE=360000000

#RATE LIMIT

export RATE_LIMIT_WINDOW=5
export RATE_LIMIT_MAX_REQUESTS=100

# custom variables
export TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
export TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
export DATABASE_URL="postgres://${TYPEORM_USERNAME}:${TYPEORM_PASSWORD}@${TYPEORM_HOST}:${EXPOSED_CONTAINER_TYPEORM_PORT}/${TYPEORM_DATABASE}" #default connection
export RPC_CONNECTION_648540="http://35.185.112.219"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
not-commitable/

### dotenv ###
.env.dev.sh
.env.dev
.env.test
.env.prod
Expand Down
Loading