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

fix: Hotfix multer configuration for production #1023

Open
wants to merge 71 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
9298bd2
Merge pull request #363 from credebl/dev-to-main-oob
nishad-ayanworks Dec 20, 2023
1ba7334
Merge branch 'develop' of https://github.com/credebl/platform into de…
nishad-ayanworks Dec 29, 2023
298c083
Merge pull request #396 from credebl/dev-to-main-afj-auth
KulkarniShashank Dec 29, 2023
e3e5812
Merge branch 'develop' of https://github.com/credebl/platform into de…
nishad-ayanworks Dec 29, 2023
a5ef36e
Merge pull request #398 from credebl/dev-to-main-afj-auth
bhavanakarwade Dec 29, 2023
62e3e40
fix: removed the unnecessary logger from the agent-service module (#419)
KulkarniShashank Jan 5, 2024
4edc788
Merge branch 'develop' of https://github.com/credebl/platform into qa…
nishad-ayanworks Feb 9, 2024
8438c87
Changed Install command with ignore scripts
Sheetal-ayanworks Feb 10, 2024
a90a40e
Changed Install command with ignore scripts
Sheetal-ayanworks Feb 10, 2024
a635b1d
Added nonroot user access in dockerfile
Sheetal-ayanworks Feb 10, 2024
51cd6e2
Changed Install command with ignore scripts
Sheetal-ayanworks Feb 10, 2024
d62db42
Merge pull request #503 from credebl/qa-prod-9-2-2024
vivekayanworks Feb 10, 2024
b72c819
Create DMP_2024.yml
ajile-in Mar 19, 2024
053c37a
Update DMP_2024.yml
sairanjit Mar 19, 2024
ef673cb
Merge pull request #603 from credebl/dmp-2024-issue-template
sairanjit Mar 19, 2024
b2e5e1d
Merge branch 'main' of https://github.com/credebl/platform into qa-to…
tipusinghaw Apr 12, 2024
fd5964f
Merge pull request #659 from credebl/qa-to-main-12-04-2024
vivekayanworks Apr 12, 2024
44083b7
Changes in dockerfiles for nonroot user
KambleSahil3 Apr 12, 2024
9a48260
Merge pull request #660 from credebl/Dockerfile_updation
vivekayanworks Apr 12, 2024
015b7fe
hotfix: add url
GHkrishna Apr 12, 2024
812d205
Merge pull request #662 from credebl/hotfix/url-fix
KulkarniShashank Apr 12, 2024
c295851
feat: event certificate (#665)
tipusinghaw Apr 15, 2024
a815bd6
fix: hotfix for security issues
KulkarniShashank Apr 18, 2024
da26cd2
fix: added the validation for no SQL injection in connection DTO
KulkarniShashank Apr 18, 2024
16b846d
fix: removed the is not UUID validation in org name
KulkarniShashank Apr 18, 2024
740146f
Merge pull request #671 from credebl/fix/security
vivekayanworks Apr 19, 2024
2146b9a
merge: develop to qa (#723)
KulkarniShashank May 17, 2024
938dfb2
Merge branch 'qa' of https://github.com/credebl/platform into merge/2…
tipusinghaw May 24, 2024
10490e7
Merge branch 'develop' of https://github.com/credebl/platform into me…
GHkrishna May 27, 2024
ce17705
Merge pull request #736 from credebl/merge/24-05-2024-develop-to-qa
GHkrishna May 28, 2024
49a43e0
Merge branch 'qa' of https://github.com/credebl/platform into dev-to-…
tipusinghaw Jun 5, 2024
186d847
Merge branch 'develop' of https://github.com/credebl/platform into de…
bhavanakarwade Jun 6, 2024
c134974
merge: develop to qa
GHkrishna Jun 6, 2024
a1f4a51
Merge branch 'qa' of https://github.com/credebl/platform into dev-to-…
GHkrishna Jun 14, 2024
c751215
Merge branch 'develop' of https://github.com/credebl/platform into de…
GHkrishna Jun 14, 2024
c9b6cca
Merge pull request #776 from credebl/dev-to-qa-14-06-2024
GHkrishna Jun 14, 2024
c5e9584
Merge branch 'qa' of https://github.com/credebl/platform into merge-d…
GHkrishna Jun 26, 2024
13bc4c4
merge: dev to qa 26 06 2024
GHkrishna Jun 26, 2024
f4e3bc4
merge: develop to qa (17-07-2024) (#833)
bhavanakarwade Jul 17, 2024
824a94a
merge: develop to qa (#870)
tipusinghaw Jul 25, 2024
55c1e5b
merge: develop to qa (#873)
pranalidhanavade Jul 25, 2024
a32c37e
merge: DEV to QA (26/07/2024) (#877)
bhavanakarwade Jul 26, 2024
5f415fe
Merge : dev to qa 29 07 2024 (#879)
bhavanakarwade Jul 29, 2024
af6c8e4
fix: resolved conflicts
bhavanakarwade Jul 29, 2024
48e879a
Merge pull request #883 from credebl/merge/dev-to-qa-29-07-2024
pallavighule Jul 29, 2024
5dc9430
patch: holer role guard (#884)
tipusinghaw Jul 31, 2024
ab2a293
refactor: fetch verification list function (#891) (#892)
bhavanakarwade Aug 2, 2024
f79d9bf
Merge branch 'qa' of https://github.com/credebl/platform into dev-to-…
KulkarniShashank Aug 16, 2024
6a6a591
Merge branch 'develop' of https://github.com/credebl/platform into de…
KulkarniShashank Aug 16, 2024
6f1f9fc
Merge branch 'develop' of https://github.com/credebl/platform into de…
KulkarniShashank Aug 16, 2024
ae668f9
Merge pull request #915 from credebl/dev-to-qa-16-08-2024
KulkarniShashank Aug 16, 2024
935092e
Merge branch 'qa' of https://github.com/credebl/platform into merge/d…
bhavanakarwade Aug 23, 2024
0b53657
Merge pull request #933 from credebl/merge/dev-to-qa-23-08-2024
KulkarniShashank Aug 23, 2024
3877bec
refactor: applied validations on issuance date (#934) (#936)
bhavanakarwade Aug 23, 2024
0c6b64f
merge: DEV to QA (27-08-2024) (#945)
bhavanakarwade Aug 27, 2024
0b9143e
merge: DEV to QA (#951)
bhavanakarwade Aug 28, 2024
230f342
Merge branch 'qa' of https://github.com/credebl/platform into dev-to-…
KulkarniShashank Aug 28, 2024
3880e46
Merge pull request #953 from credebl/dev-to-qa-28-08-2024
KulkarniShashank Aug 28, 2024
f61b098
Merge branch 'main' of https://github.com/credebl/platform into merge…
GHkrishna Aug 28, 2024
1a74e32
merge: DEV to QA (#960)
bhavanakarwade Aug 29, 2024
963846a
Merge branch 'qa' of https://github.com/credebl/platform into merge/q…
GHkrishna Aug 30, 2024
d24a85b
merge: DEV to QA (#964)
bhavanakarwade Aug 30, 2024
2f60ab9
Merge branch 'qa' of https://github.com/credebl/platform into merge/q…
GHkrishna Aug 30, 2024
97e419f
Merge pull request #954 from credebl/merge/qa-to-prod-August-2024
GHkrishna Aug 30, 2024
435f68a
hotfix:certificate share import (#965)
tipusinghaw Aug 30, 2024
3168182
hotfix:configuration-changes
pallavighule Oct 4, 2024
341a650
fix:fixed-sonar-issues
pallavighule Oct 4, 2024
8777046
fix:fixed-added-constants
pallavighule Oct 4, 2024
f6e7379
fix:fixed-sonar-issues
pallavighule Oct 4, 2024
b555bb5
fix:removed import from issunce service
pallavighule Oct 7, 2024
b5ea873
fix:resolved sonar lint issues
ankita-p17 Oct 11, 2024
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
64 changes: 63 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ SUPABASE_JWT_SECRET= // Please specify your Supabase jwt secret
API_GATEWAY_PROTOCOL=http
API_GATEWAY_HOST='0.0.0.0'
API_GATEWAY_PORT=5000
API_GATEWAY_PROTOCOL_SECURE=http

##
PLATFORM_NAME= // Please specify your paltform name
PLATFORM_LOGO= // Please specify your paltform logo url
PUBLIC_PLATFORM_SUPPORT_EMAIL= // Please specify your support email
POWERED_BY= // Please specify your powered by org name
PLATFORM_WEB_URL= // Please specify your platform web URL
POWERED_BY_URL= // Please specify your support URL

UPLOAD_LOGO_HOST= // Please specify your logo host or domain url

PUBLIC_LOCALHOST_URL= // Please specify your localhost URL
PUBLIC_DEV_API_URL= // Please specify your DEV environment api URL
PUBLIC_QA_API_URL= // Please specify your your QA environment api URL
Expand All @@ -33,14 +37,46 @@ API_ENDPOINT_PORT=5000

SOCKET_HOST=http://localhost:5000

AWS_PUBLIC_ACCESS_KEY= // Please provide your aws bucket access key
AWS_PUBLIC_SECRET_KEY= // Please provide your aws secret key
AWS_PUBLIC_REGION= // Please provide your aws region
AWS_PUBLIC_BUCKET_NAME= // Please provide your aws bucket name

AWS_ORG_LOGO_BUCKET_NAME= // Please provide your aws org bucket name

AWS_S3_STOREOBJECT_ACCESS_KEY= // Please provide your aws bucket access key
AWS_S3_STOREOBJECT_SECRET_KEY= // Please provide your aws bucket secret key
AWS_S3_STOREOBJECT_REGION= // Please provide your aws region
AWS_S3_STOREOBJECT_BUCKET= // Please provide your aws bucket
AWS_ACCESS_KEY= // Please provide your access key
AWS_SECRET_KEY= // Please provide your secret key
AWS_REGION= // Please provide your aws region
AWS_BUCKET= // Please provide your aws bucket

PLATFORM_ADMIN_EMAIL= // Please provide admin email Id

NATS_HOST='0.0.0.0'
NATS_PORT=4222
NATS_URL=nats://0.0.0.0:4222

REDIS_HOST='0.0.0.0'
REDIS_PORT=6379

POSTGRES_HOST=0.0.0.0
POSTGRES_PORT=5432
POSTGRES_USER='postgres'
POSTGRES_PASSWORD='xxxxx'
POSTGRES_DATABASE= // Please provide your DB name

SENDGRID_API_KEY=xxxxxxxxxxxxxx // Please provide your sendgrid API key

FRONT_END_URL=http://localhost:3000

FILE_SERVER= // Please provide your file server
FILE_SERVER_PORT=8081
FILE_SERVER_USER=credebl
FILE_SERVER_HOST=0.0.0.0

AFJ_AGENT_SPIN_UP=/apps/agent-provisioning/AFJ/scripts/start_agent.sh

WALLET_STORAGE_HOST=localhost # Use IP Address
Expand All @@ -59,6 +95,10 @@ PLATFORM_WALLET_PASSWORD= // Please provide encrypt password using crypto-j
PLATFORM_SEED= // The seed should consist of 32 characters.
PLATFORM_ID=

PLATFORM_PROFILE_MODE= // Please provide your environment name

OOB_BATCH_SIZE=10

AFJ_AGENT_ENDPOINT_PATH=/apps/agent-provisioning/AFJ/endpoints/
DATABASE_URL="postgresql://postgres:xxxxxx@localhost:5432/postgres?schema=public" #Provide supabase postgres URL and Use the correct user/pwd, IP Address
POOL_DATABASE_URL="" #Provide pooler supabase postgres URL
Expand All @@ -68,6 +108,22 @@ AGENT_PROTOCOL=http
GEO_LOCATION_MASTER_DATA_IMPORT_SCRIPT=/prisma/scripts/geo_location_data_import.sh
UPDATE_CLIENT_CREDENTIAL_SCRIPT=/prisma/scripts/update_client_credential_data.sh

USER_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for user service
API_GATEWAY_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for api-gateway
ORGANIZATION_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for organization service
AGENT_PROVISIONING_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for agent provisioning service
AGENT_SERVICE_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for agent service
VERIFICATION_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for verification service
ISSUANCE_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for issuance service
CONNECTION_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for connection service
ECOSYSTEM_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for ecosystem service
CREDENTAILDEFINITION_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for credential-definition service
SCHEMA_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for schema service
UTILITIES_NKEY_SEED= xxxxxxxxxxxxx // Please provide Nkeys secret for utilities service
GEOLOCATION_NKEY_SEED= xxxxxxxxxxx // Please provide Nkeys secret for geo-location service

AFJ_AGENT_TOKEN_PATH=/apps/agent-provisioning/AFJ/token/

# This was inserted by prisma init:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
Expand All @@ -92,4 +148,10 @@ KEYCLOAK_MANAGEMENT_CLIENT_ID=xxxxxxx
KEYCLOAK_MANAGEMENT_CLIENT_SECRET=xxxxxxx
KEYCLOAK_REALM=xxxxxxx

ENABLE_CORS_IP_LIST="" # Provide a list of domains that are allowed to use this server
ENABLE_CORS_IP_LIST="" # Provide a list of domains that are allowed to use this server
SCHEMA_FILE_SERVER_URL= // Please provide schema URL
SCHEMA_FILE_SERVER_TOKEN=xxxxxxxx // Please provide schema file server token for polygon

FILEUPLOAD_CACHE_TTL= //Provide file upload cache ttl

FIELD_UPLOAD_SIZE= //Provide field upload size
264 changes: 264 additions & 0 deletions .github/ISSUE_TEMPLATE/DMP_2024.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
name: DMP 2024 Project Template
description: List a new project for Dedicated Mentoring Program (DMP) 2024
title: '[DMP 2024]: '
labels: ['DMP 2024']
body:
- type: textarea
id: ticket-description
validations:
required: true
attributes:
label: Ticket Contents
value: |
## Description
[Provide a brief description of the feature, including why it is needed and what it will accomplish.]

- type: textarea
id: ticket-goals
validations:
required: true
attributes:
label: Goals & Mid-Point Milestone
description: List the goals of the feature. Please add the goals that must be achieved by Mid-point check-in i.e 1.5 months into the coding period.
value: |
## Goals
- [ ] [Goal 1]
- [ ] [Goal 2]
- [ ] [Goal 3]
- [ ] [Goal 4]
- [ ] [Goals Achieved By Mid-point Milestone]

- type: textarea
id: ticket-setup
attributes:
label: Setup/Installation
description: Please list or link setup or installation guide (if any)

- type: textarea
id: ticket-expected-outcome
attributes:
label: Expected Outcome
description: Describe in detail what the final product or result should look like and how it should behave.

- type: textarea
id: ticket-acceptance-criteria
attributes:
label: Acceptance Criteria
description: List the acceptance criteria for this feature.

- type: textarea
id: ticket-implementation-details
validations:
required: true
attributes:
label: Implementation Details
description: List any technical details about the proposed implementation, including any specific technologies that will be used.

- type: textarea
id: ticket-mockups
attributes:
label: Mockups/Wireframes
description: Include links to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.

- type: input
id: ticket-product
attributes:
label: Product Name
placeholder: Enter Product Name
validations:
required: true

- type: dropdown
id: ticket-organisation
attributes:
label: Organisation Name
description: Enter Organisation Name
multiple: false
options:
- Bandhu
- Blockster Labs (CREDEBL)
- Civis
- Dhwani
- Dhiway
- EGov
- EkShop Marketplace
- FIDE
- If Me
- Key Education Foundation
- Norwegian Meteorological Institute
- Planet Read
- Project Second Chance
- Reap Benefit
- SamagraX
- ShikshaLokam
- Tech4Dev
- Tekdi
- The Mifos Initiative
- Tibil
- Ushahidi
- Arghyam
- Piramal Swasthya Management Research Institute
validations:
required: true

- type: dropdown
id: ticket-governance-domain
attributes:
label: Domain
options:
- Healthcare
- Education
- Financial Inclusion
- Livelihoods
- Skilling
- Learning & Development
- Agriculture
- Service Delivery
- Open Source Library
- Water
- Identity & Digital Credentialing
validations:
required: true

- type: dropdown
id: ticket-technical-skills-required
attributes:
label: Tech Skills Needed
description: Select the technologies needed for this ticket (use Ctrl or Command to select multiple)
multiple: true
options:
- .NET
- Angular
- Artificial Intelligence
- ASP.NET
- Astro.js
- AWS
- Babel
- Bootstrap
- C#
- Chart.js
- CI/CD
- Computer Vision
- CORS
- cURL
- Cypress
- D3.js
- Database
- Debugging
- Deno
- Design
- DevOps
- Django
- Docker
- Electron
- ESLint
- Express.js
- Feature
- Flask
- Go
- GraphQL
- HTML
- Ionic
- Jest
- Java
- JavaScript
- Jenkins
- JWT
- Kubernetes
- Laravel
- Machine Learning
- Maintenance
- Markdown
- Material-UI
- Microservices
- MongoDB
- Mobile
- Mockups
- Mocha
- Natural Language Processing
- NATS Messaging
- NestJS
- Next.js
- Node.js
- NUnit
- OAuth
- Performance Improvement
- Prettier
- Python
- Question
- React
- React Native
- Redux
- RESTful APIs
- Ruby
- Ruby on Rails
- Rust
- Scala
- Security
- Selenium
- SEO
- Serverless
- Solidity
- Spring Boot
- SQL
- Swagger
- Tailwind CSS
- Test
- Testing Library
- Three.js
- TypeScript
- UI/UX/Design
- Virtual Reality
- Vue.js
- WebSockets
- Webpack
- Other
validations:
required: true

- type: textarea
id: ticket-mentors
attributes:
label: Mentor(s)
description: Please tag relevant mentors for the ticket
validations:
required: true

- type: dropdown
id: ticket-category
attributes:
label: Category
description: Choose the categories that best describe your ticket
multiple: true
options:
- API
- Analytics
- Accessibility
- Backend
- Breaking Change
- Beginner Friendly
- Configuration
- CI/CD
- Database
- Data Science
- Deprecation
- Documentation
- Deployment
- Frontend
- Internationalization
- Localization
- Machine Learning
- Maintenance
- Mobile
- Performance Improvement
- Question
- Refactoring
- Research
- Needs Reproduction
- SEO
- Security
- Testing
- AI
- Other
validations:
required: true
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile.verification
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,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 && cd ../.. && node dist/apps/verification/main.js"]
Loading