Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e55d113
chore: remove yarn.lock and package-lock.json files (#1133)
sairanjit Mar 12, 2025
b99ef6b
fix: platform agent set up issue (#1136)
bhavanakarwade Mar 12, 2025
ad5f52c
fix: Parameter validations (#1138)
bhavanakarwade Mar 20, 2025
df72318
added tenant id in get org info (#1139)
pallavighule Mar 25, 2025
295b253
fix/added-yml-file-to-push-docker-images (#1142)
KambleSahil3 Mar 25, 2025
301fd7b
fix/push docker image (#1154)
KambleSahil3 Mar 27, 2025
977be2f
chore: add aws module into monorepo (#1135)
sairanjit Apr 2, 2025
2b2e1a9
chore: remove unused modules (#1163)
sairanjit Apr 2, 2025
4eb2061
refactor: remove image-service from libs (#1164)
sairanjit Apr 2, 2025
5e4a958
Create config.ts
rockito10 Apr 2, 2025
5446322
Refactor error validation
rockito10 Apr 3, 2025
a0a4c08
start validation process
rockito10 Apr 4, 2025
b0c290f
add optional
rockito10 Apr 9, 2025
f3ead7c
Create config.ts
rockito10 Apr 2, 2025
d7ed9a9
add optional
rockito10 Apr 9, 2025
e31cdfa
Change validator, ease syntax
rockito10 Apr 10, 2025
d0bc934
Refactor config, add validation methods (multiple urls, postgres, loc…
rockito10 Apr 14, 2025
778b73b
Fix functionality of validators, fix types
rockito10 Apr 15, 2025
235d6a8
Prepare testing
rockito10 Apr 21, 2025
e0e5908
add test for multiple scenarios
rockito10 Apr 22, 2025
2241db3
Finish tests, prepare for merge
rockito10 Apr 23, 2025
a656849
fix/added-yml-file-to-push-docker-images (#1142)
KambleSahil3 Mar 25, 2025
951c052
fix/push docker image (#1154)
KambleSahil3 Mar 27, 2025
0a66d11
refactor: merge nats-interceptor and responses lib into common (#1165)
sairanjit Apr 4, 2025
acdf834
refactor: create common package in libs (#1167)
sairanjit Apr 4, 2025
7450591
feat: Support nested attributes while creating schema (#1166)
bhavanakarwade Apr 9, 2025
a8dee6e
refactor: schema data type validations (#1174)
bhavanakarwade Apr 10, 2025
7a10c03
refactor: update organization API to support updation of country, sta…
pranalidhanavade Apr 11, 2025
0544c8c
refactor: error handling for download csv file (#1182)
bhavanakarwade Apr 17, 2025
57d4290
feat: implemented get verified presentation counts by issuer id (#1184)
bhavanakarwade Apr 21, 2025
5467e46
fix: local setup issues (#1155)
GHkrishna Apr 22, 2025
2f4edeb
fix: issues related nested attributes in issuance process (#1194)
bhavanakarwade Apr 25, 2025
f65c6aa
chore: update .env.demo file (#1198)
KambleSahil3 Apr 25, 2025
124f3a1
Fix tests, add path validator, fix optional behavior for chaining, mi…
rockito10 Jul 19, 2025
bea973a
Remove comments, fix boolean redundancy
rockito10 Jul 19, 2025
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 8 additions & 8 deletions .env.demo
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ AFJ_AGENT_SPIN_UP=/agent-provisioning/AFJ/scripts/docker_start_agent.sh
AFJ_AGENT_ENDPOINT_PATH=/agent-provisioning/AFJ/endpoints/
# Uncomment bellow three lines and comment the above to start services locally without using docker, using pnpm
# AFJ_AGENT_TOKEN_PATH=/apps/agent-provisioning/AFJ/token/
# AFJ_AGENT_SPIN_UP=/apps/agent-provisioning/AFJ/scripts/docker_start_agent.sh
# AFJ_AGENT_SPIN_UP=/apps/agent-provisioning/AFJ/scripts/start_agent.sh
# AFJ_AGENT_ENDPOINT_PATH=/apps/agent-provisioning/AFJ/endpoints/

AGENT_PROTOCOL=http
Expand All @@ -131,13 +131,13 @@ MAX_ORG_LIMIT=10
FIDO_API_ENDPOINT=http://localhost:8000

IS_ECOSYSTEM_ENABLE=false
CONSOLE_LOG_FLAG=true // Enable or disable console ELK logs
ELK_LOG=true // ELK flag
LOG_LEVEL=debug // ELK log level
ELK_LOG_PATH = "http://localhost:9200/" // ELK log path
ELK_USERNAME=elastic // ELK user username
ELK_PASSWORD=xxxxxx // ELK user password
CONSOLE_LOG_FLAG=true # Enable or disable console ELK logs
ELK_LOG=false # ELK flag
LOG_LEVEL=debug # ELK log level
ELK_LOG_PATH= "http://localhost:9200/" # ELK log path
ELK_USERNAME=elastic # ELK user username
ELK_PASSWORD=xxxxxx # ELK user password

ORGANIZATION=credebl
CONTEXT=platform
APP=api
APP=api
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ module.exports = {
'prefer-template': 'error',
quotes: ['warn', 'single', { allowTemplateLiterals: true }]
}
};
};
60 changes: 60 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Continuous Delivery

on:
push:
tags:
- 'v*'

env:
REGISTRY: ghcr.io

jobs:
build-and-push:
name: Push Docker image to GitHub
runs-on: ubuntu-latest

strategy:
matrix:
service:
- agent-provisioning
- agent-service
- api-gateway
- cloud-wallet
- connection
- geolocation
- issuance
- ledger
- notification
- user
- utility
- verification
- webhook

permissions:
contents: read
packages: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Extract Git Tag
id: get_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker Image ${{ matrix.service }}
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfiles/Dockerfile.${{ matrix.service }}
push: true
tags: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:${{ env.TAG }}
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:latest
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

5 changes: 3 additions & 2 deletions Dockerfiles/Dockerfile.agent-provisioning
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COPY . .

# Generate Prisma client
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate
RUN ls -R /app/apps/agent-provisioning/AFJ/

# Build the user service
Expand Down Expand Up @@ -68,6 +68,7 @@ COPY --from=build /app/apps/agent-provisioning/AFJ/port-file ./agent-provisionin
RUN chmod +x /app/agent-provisioning/AFJ/scripts/start_agent.sh
RUN chmod +x /app/agent-provisioning/AFJ/scripts/start_agent_ecs.sh
RUN chmod +x /app/agent-provisioning/AFJ/scripts/docker_start_agent.sh
RUN chmod +x /app/agent-provisioning/AFJ/scripts/fargate.sh
RUN chmod 777 /app/agent-provisioning/AFJ/endpoints
RUN chmod 777 /app/agent-provisioning/AFJ/agent-config
RUN chmod 777 /app/agent-provisioning/AFJ/token
Expand All @@ -76,4 +77,4 @@ RUN chmod 777 /app/agent-provisioning/AFJ/token
COPY libs/ ./libs/

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-provisioning/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/agent-provisioning/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.agent-service
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build agent-service
Expand Down Expand Up @@ -53,4 +53,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/agent-service/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/agent-service/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.api-gateway
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the api-gateway service
RUN pnpm run build api-gateway
Expand All @@ -40,4 +40,4 @@ COPY --from=build /app/node_modules ./node_modules
# COPY --from=build /app/uploadedFiles ./uploadedFiles

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/api-gateway/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/api-gateway/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.cloud-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build cloud-wallet
Expand All @@ -43,4 +43,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/cloud-wallet/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/cloud-wallet/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.connection
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the connection service
RUN pnpm run build connection
Expand All @@ -43,4 +43,4 @@ COPY --from=build /app/node_modules ./node_modules
#RUN npm i --only=production

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/connection/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/connection/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.geolocation
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the connection service
RUN pnpm run build geo-location
Expand All @@ -43,4 +43,4 @@ COPY --from=build /app/node_modules ./node_modules
#RUN npm i --only=production

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/geo-location/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/geo-location/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.issuance
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the issuance service
RUN pnpm run build issuance
Expand All @@ -42,4 +42,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/issuance/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/issuance/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.ledger
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the ledger service
RUN npm run build ledger
Expand All @@ -41,4 +41,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/ledger/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/ledger/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.notification
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the notification service
RUN npm run build notification
Expand All @@ -39,4 +39,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/notification/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/notification/main.js"]
5 changes: 2 additions & 3 deletions Dockerfiles/Dockerfile.organization
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate

RUN cd libs/prisma-service && npx prisma generate

# Build the organization service
RUN pnpm run build organization
Expand All @@ -41,4 +40,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/organization/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/organization/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN pnpm install
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build user
Expand Down Expand Up @@ -66,4 +66,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/user/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/user/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.utility
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN pnpm run build utility
Expand All @@ -43,4 +43,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/utility/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/utility/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the user service
RUN npm run build verification
Expand All @@ -39,4 +39,4 @@ COPY --from=build /app/libs/ ./libs/
COPY --from=build /app/node_modules ./node_modules

# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/verification/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/verification/main.js"]
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.webhook
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pnpm i --ignore-scripts
# Copy the rest of the application code
COPY . .
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
RUN cd libs/prisma-service && npx prisma generate

# Build the webhook service
RUN pnpm run build webhook
Expand All @@ -42,4 +42,4 @@ COPY --from=build /app/node_modules ./node_modules


# Set the command to run the microservice
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && cd ../.. && node dist/apps/webhook/main.js"]
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/webhook/main.js"]
4 changes: 2 additions & 2 deletions apps/agent-provisioning/AFJ/scripts/start_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ if [ $? -eq 0 ]; then

docker rm -f "${PROJECT_NAME}" || true

docker-compose -f $FILE_NAME --project-name "${PROJECT_NAME}" up -d
docker compose -f $FILE_NAME --project-name "${PROJECT_NAME}" up -d
if [ $? -eq 0 ]; then

n=0
Expand Down Expand Up @@ -271,4 +271,4 @@ else
echo "ERROR : Failed to execute!" && exit 125
fi

echo "Total time elapsed: $(date -ud "@$(($(date +%s) - $START_TIME))" +%T) (HH:MM:SS)"
echo "Total time elapsed: $(date -ud "@$(($(date +%s) - $START_TIME))" +%T) (HH:MM:SS)"
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { IsBoolean, IsDefined, IsNotEmpty, IsOptional, IsString } from 'class-validator';

import { ApiProperty } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
import { trim } from '@credebl/common/cast.helper';

export class CreateCredentialDefinitionDto {

@ApiProperty({ 'example': 'default' })
@IsDefined({ message: 'Tag is required.' })
@IsDefined({ message: 'Tag is required' })
@IsNotEmpty({ message: 'Please provide a tag' })
@IsString({ message: 'Tag id should be string' })
@IsString({ message: 'Tag should be string' })
tag: string;

@ApiProperty({ 'example': 'WgWxqztrNooG92RXvxSTWv:2:schema_name:1.0' })
@IsDefined({ message: 'schemaLedgerId is required.' })
@IsNotEmpty({ message: 'Please provide a schema id' })
@IsDefined({ message: 'schemaLedgerId is required' })
@IsNotEmpty({ message: 'Please provide valid schema ledger Id' })
@Transform(({ value }) => trim(value))
@IsString({ message: 'Schema id should be string' })
schemaLedgerId: string;

Expand Down
Loading