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

merge: qa to prod 30 august 2024 #199

Merged
merged 123 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
f458714
Added proof and credential record Id in oob offer output
ankita-p17 Feb 19, 2024
3c7e542
Remove unnecessary details
ankita-p17 Feb 19, 2024
b66617d
fix prettier
ankita-p17 Feb 19, 2024
d8268b1
resolved merged conflict
ankita-p17 May 20, 2024
a8114cb
add record threadId in output
ankita-p17 May 20, 2024
b00b34a
Merge pull request #122 from credebl/add-recordId-oobrecord
GHkrishna May 20, 2024
b08c943
chore: package update (#124)
GHkrishna May 30, 2024
7e03f86
added taskdef
KambleSahil3 May 30, 2024
85ba53a
Added credo taskdef.json file for ECS
KambleSahil3 Jun 3, 2024
2fd0770
Delete taskdef/credo-ecs-credo-taskdef.json-taskdef.json
KambleSahil3 Jun 3, 2024
ab5ffda
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
5081972
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
1ce2a2a
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
f34b415
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
9a1b928
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
2cf7452
Update credo-ecs-taskdef.json
KambleSahil3 Jun 3, 2024
3d1b12c
Merge pull request #125 from credebl/taskdef
Sheetal-ayanworks Jun 4, 2024
3980409
chore: updated contract address and packages for major package releas…
tipusinghaw Jun 10, 2024
e90bcd0
fix: TAA versioning for indicio testnet (#127)
GHkrishna Jun 17, 2024
63a2dd8
chore: fix naming
GHkrishna Jun 20, 2024
610b474
chore: fix naming
GHkrishna Jun 20, 2024
53620a8
fix: add prestart
GHkrishna Jun 20, 2024
847613a
fix: update packages
GHkrishna Jun 20, 2024
e4fa833
fix: patch for conflicts in model Extensible
GHkrishna Jun 20, 2024
0cfadf5
chore: fix DCO
GHkrishna Jun 20, 2024
a56e0a0
chore: fix DCO
GHkrishna Jun 20, 2024
806c52a
chore: fix DCO
GHkrishna Jun 20, 2024
e397e9e
chore: fix DCO
GHkrishna Jun 20, 2024
756ba9b
fix: error handling for Agent controller
GHkrishna Jun 20, 2024
94ff53e
fix: error handling for Basic Message controller
GHkrishna Jun 20, 2024
db90ccb
fix: error handling for Connection Controller
GHkrishna Jun 20, 2024
e68ab2a
fix: spacing
GHkrishna Jun 20, 2024
10437f2
fix: error handling for Credential Controller
GHkrishna Jun 20, 2024
c20bab2
fix: error handling for CredentialDEfinition Controller
GHkrishna Jun 20, 2024
f71da73
fix: error handling for Schema Controller
GHkrishna Jun 20, 2024
a81f6e2
fix: error handling for Did Controller
GHkrishna Jun 20, 2024
90ed9b5
fix: error handling for Endorse Transaction Controller
GHkrishna Jun 20, 2024
cce0f35
fix: add examples
GHkrishna Jun 20, 2024
0ab34ab
fix: error handling for Question Answer Controller
GHkrishna Jun 20, 2024
ebf92cf
chore: fix DCO
GHkrishna Jun 20, 2024
4dea1d2
chore: fix DCO
GHkrishna Jun 20, 2024
ab4d40e
chore: fix DCO
GHkrishna Jun 20, 2024
1410a98
chore: fix DCO
GHkrishna Jun 20, 2024
58e790c
chore: fix DCO
GHkrishna Jun 20, 2024
d0d853c
fix: redirection
GHkrishna Jun 20, 2024
6924d6a
fix: error handling
GHkrishna Jun 20, 2024
7bbff1e
chore: fix DCO
GHkrishna Jun 20, 2024
ba8bad7
chore: fix DCO
GHkrishna Jun 20, 2024
f3fcfcd
chore: fix DCO
GHkrishna Jun 20, 2024
947cc70
chore: fix DCO
GHkrishna Jun 20, 2024
419ce84
refactor:added condition for insufficient balance
tipusinghaw Jun 21, 2024
531f6fd
fix: removed string type for the create schema
tipusinghaw Jun 21, 2024
bbf5498
Merge pull request #136 from credebl/refactor/error-handling-for-insu…
tipusinghaw Jun 21, 2024
d8eea6e
Merge branch 'develop' of https://github.com/credebl/credo-controller…
GHkrishna Jun 22, 2024
17e88bd
fix: matching return type according to previous implementation
GHkrishna Jun 22, 2024
30bd812
fix: matching return type according to previous implementation for Sc…
GHkrishna Jun 22, 2024
67d25f3
fix: remove commented code
GHkrishna Jun 22, 2024
adbd2b8
fix: remove commented code
GHkrishna Jun 22, 2024
a660a6e
chore: add TODOs
GHkrishna Jun 22, 2024
43ca032
refactor: improve typing
GHkrishna Jun 22, 2024
dcdc758
fix: error handling for Credential controller
GHkrishna Jun 22, 2024
8048553
chore: update auto generated files
GHkrishna Jun 22, 2024
d7713cc
refactor: error handling for credo
GHkrishna Jun 22, 2024
0c0dacf
refactor: updated docker file
KambleSahil3 Jun 24, 2024
4a63ecc
Merge pull request #138 from credebl/fix/dockerfile-update
KambleSahil3 Jun 24, 2024
6fed186
refactor: error handling for proof controller (#139)
GHkrishna Jun 25, 2024
18c7943
refactor: error handling oob controller (#137)
GHkrishna Jun 25, 2024
c759de7
refactor: error handling of polygon controller (#143)
pranalidhanavade Jul 1, 2024
290566a
refactor: error handling for endorser controller (#141)
pranalidhanavade Jul 2, 2024
40b4bae
Refactor/error handling for multi-tenancy controller (#144)
pranalidhanavade Jul 2, 2024
29cd905
Refactor/error handling for multi tenancy controller (#145)
pranalidhanavade Jul 3, 2024
838c023
wip: refactor exception handling for multi-tenancy controller (#142)
bhavanakarwade Jul 3, 2024
4493f8e
fix:schema file server url
tipusinghaw Jul 5, 2024
bf38daf
fix: schema file server URL
GHkrishna Jul 5, 2024
dc3608f
feat: created new event for reuse connection (#148)
tipusinghaw Jul 8, 2024
2c5cc5e
Merge branch 'main' into develop
sairanjit Jul 8, 2024
f2e3918
removed yarn.lock file to solve frozen-lockfile error
KambleSahil3 Jul 9, 2024
249da83
resolved frozen-lockfile error
KambleSahil3 Jul 9, 2024
fa2f954
deleted config.json
KambleSahil3 Jul 9, 2024
ff7b17f
fix: yarn lockfile
GHkrishna Jul 9, 2024
9fd375c
fix: yarn lockfile
GHkrishna Jul 9, 2024
b93a182
changes in taskdef.json for fargate
KambleSahil3 Jul 9, 2024
b87a6b9
changes family name in taskdef.json
KambleSahil3 Jul 9, 2024
a94623e
fix: externalise env
GHkrishna Jul 17, 2024
16dbd01
fix: externalise env
GHkrishna Jul 17, 2024
0a3e30e
fix: number conversion
GHkrishna Jul 17, 2024
9f3f83d
Merge pull request #152 from credebl/fix/taskdef-changes
Sheetal-ayanworks Jul 17, 2024
45f292a
fix: remove logs
GHkrishna Jul 17, 2024
5d884af
fix: sample env variable
GHkrishna Jul 17, 2024
c32c5f3
fix: remove comments
GHkrishna Jul 17, 2024
66e6205
fix: remove comments
GHkrishna Jul 17, 2024
b4f327f
chore: github warnings
GHkrishna Jul 17, 2024
5c940ac
chore: fix preetier
GHkrishna Jul 17, 2024
74ff02c
chore: fix preetier
GHkrishna Jul 17, 2024
97316d1
feat: multi-tenancy basic message
KulkarniShashank Jul 22, 2024
984820a
Merge pull request #154 from credebl/feat/multi-tenancy-basic-message
tipusinghaw Jul 23, 2024
72e943e
feat: added formData in credential webhook
pallavighule Jul 24, 2024
8e6761c
Merge pull request #156 from credebl/feat/add-form-data-for-dedicated…
pallavighule Jul 24, 2024
263f868
Merge branch 'qa' of https://github.com/credebl/credo-controller into…
tipusinghaw Jul 24, 2024
6a00851
Merge pull request #157 from credebl/merge/develop-to-qa
tipusinghaw Jul 24, 2024
3a82a9c
fix:added-patch
pallavighule Jul 25, 2024
63f2e87
Merge pull request #158 from credebl/fix/credential-record-patch
pallavighule Jul 25, 2024
9e7551d
wip: added json limit configurations
bhavanakarwade Jul 25, 2024
f6d97a3
Merge branch 'develop' of https://github.com/credebl/credo-controller…
bhavanakarwade Jul 25, 2024
333ee67
fix:added patch for prettyVc
pallavighule Jul 25, 2024
3991ad6
fix:added patch for prettyVc
pallavighule Jul 25, 2024
1ab7b0e
Merge pull request #160 from credebl/fix/pretty-vc-patch
pallavighule Jul 26, 2024
b321e1f
Merge branch 'qa' of https://github.com/credebl/credo-controller into…
bhavanakarwade Jul 26, 2024
37d324d
Merge pull request #161 from credebl/merge/dev-to-qa-26-07-2024
pallavighule Jul 26, 2024
0483204
fix: provision to default to 'Infinity' if required
GHkrishna Aug 13, 2024
cc28a41
Merge branch 'develop' of https://github.com/credebl/credo-controller…
GHkrishna Aug 13, 2024
f8edf32
Merge pull request #163 from credebl/feat/externalize-env
GHkrishna Aug 13, 2024
81fa284
fix: yarn lock
GHkrishna Aug 13, 2024
90b95ba
Merge pull request #169 from credebl/fix/yarnlock
GHkrishna Aug 13, 2024
374ad0a
Merge branch 'qa' of https://github.com/credebl/credo-controller into…
KulkarniShashank Aug 16, 2024
c538352
Update .env.sample file
KulkarniShashank Aug 16, 2024
55a28c6
Merge pull request #172 from credebl/dev-to-qa-16-08-2024
KulkarniShashank Aug 16, 2024
c3dc007
fix: added assertion method in did web
tipusinghaw Aug 23, 2024
fab82f3
Merge pull request #174 from credebl/fix/add-assertion-method-in-did-web
tipusinghaw Aug 23, 2024
31fa3a9
Merge branch 'qa' of https://github.com/credebl/credo-controller into…
tipusinghaw Aug 23, 2024
65cd91a
Merge pull request #175 from credebl/merge/dev-to-qa-23-09-2024
tipusinghaw Aug 23, 2024
c9338b5
merge: DEV to QA (#196)
bhavanakarwade Aug 29, 2024
6a147b8
Merge branch 'main' of https://github.com/credebl/credo-controller in…
GHkrishna Aug 30, 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
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ windowMs=
maxRateLimit=
# Specify Did contract address
DID_CONTRACT_ADDRESS=

# Specify Bcovrin test genesis
BCOVRIN_TEST_GENESIS=`{"reqSignature":{},"txn":{"data":{"data":{"alias":"Node1","blskey":"4N8aUNHSgjQVgkpm8nhNEfDf6txHznoYREg9kirmJrkivgL4oSEimFF6nsQ6M41QvhM2Z33nves5vfSn9n1UwNFJBYtWVnHYMATn76vLuL3zU88KyeAYcHfsih3He6UHcXDxcaecHVz6jhCYz1P2UZn2bDVruL5wXpehgBfBaLKm3Ba","blskey_pop":"RahHYiCvoNCtPTrVtP7nMC5eTYrsUA8WjXbdhNc8debh1agE9bGiJxWBXYNFbnJXoXhWFMvyqhqhRoq737YQemH5ik9oL7R4NTTCz2LEZhkgLJzB3QRQqJyBNyv7acbdHrAT8nQ9UkLbaVL9NBpnWXBTw4LEMePaSHEw66RzPNdAX1","client_ip":"138.197.138.255","client_port":9702,"node_ip":"138.197.138.255","node_port":9701,"services":["VALIDATOR"]},"dest":"Gw6pDLhcBcoQesN72qfotTgFa7cbuqZpkX3Xo6pLhPhv"},"metadata":{"from":"Th7MpTaRZVRYnPiabds81Y"},"type":"0"},"txnMetadata":{"seqNo":1,"txnId":"fea82e10e894419fe2bea7d96296a6d46f50f93f9eeda954ec461b2ed2950b62"},"ver":"1"}
{"reqSignature":{},"txn":{"data":{"data":{"alias":"Node2","blskey":"37rAPpXVoxzKhz7d9gkUe52XuXryuLXoM6P6LbWDB7LSbG62Lsb33sfG7zqS8TK1MXwuCHj1FKNzVpsnafmqLG1vXN88rt38mNFs9TENzm4QHdBzsvCuoBnPH7rpYYDo9DZNJePaDvRvqJKByCabubJz3XXKbEeshzpz4Ma5QYpJqjk","blskey_pop":"Qr658mWZ2YC8JXGXwMDQTzuZCWF7NK9EwxphGmcBvCh6ybUuLxbG65nsX4JvD4SPNtkJ2w9ug1yLTj6fgmuDg41TgECXjLCij3RMsV8CwewBVgVN67wsA45DFWvqvLtu4rjNnE9JbdFTc1Z4WCPA3Xan44K1HoHAq9EVeaRYs8zoF5","client_ip":"138.197.138.255","client_port":9704,"node_ip":"138.197.138.255","node_port":9703,"services":["VALIDATOR"]},"dest":"8ECVSk179mjsjKRLWiQtssMLgp6EPhWXtaYyStWPSGAb"},"metadata":{"from":"EbP4aYNeTHL6q385GuVpRV"},"type":"0"},"txnMetadata":{"seqNo":2,"txnId":"1ac8aece2a18ced660fef8694b61aac3af08ba875ce3026a160acbc3a3af35fc"},"ver":"1"}
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ WORKDIR /app
# Copy package.json and yarn.lock files
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install --frozen-lockfile

# Copy the rest of the application code
COPY . .

# Install dependencies
RUN yarn install --frozen-lockfile

RUN yarn global add patch-package

# Build the application
Expand Down
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import base from './jest.config.base'

const config: Config.InitialOptions = {
...base,
name: 'afj-controller',
displayName: 'afj-controller',
name: 'credo-controller',
displayName: 'credo-controller',
testTimeout: 120000,
}

Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aries-framework/rest",
"name": "credo-controller",
"main": "build/index",
"types": "build/index",
"version": "0.9.4",
Expand Down Expand Up @@ -28,6 +28,8 @@
"tsoa": "tsoa spec-and-routes",
"dev": "tsoa spec-and-routes && tsnd --respawn samples/sampleWithApp.ts",
"build": "yarn run clean && yarn run compile",
"prestart:dev": "yarn run clean && yarn run compile",
"start:dev": "./bin/afj-rest.js --config ./samples/cliConfig.json",
"clean": "rimraf -rf ./build",
"compile": "tsoa spec-and-routes && tsc -p tsconfig.build.json",
"prepublishOnly": "yarn run build",
Expand All @@ -37,7 +39,7 @@
"validate": "yarn lint && yarn check-types && yarn check-format"
},
"dependencies": {
"@ayanworks/credo-polygon-w3c-module": "0.0.2-alpha.10",
"@ayanworks/credo-polygon-w3c-module": "1.0.0",
"@credo-ts/anoncreds": "0.5.3",
"@credo-ts/askar": "0.5.3",
"@credo-ts/core": "0.5.3",
Expand Down Expand Up @@ -92,15 +94,15 @@
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^27.3.1",
"jest": "^29.7.0",
"ngrok": "^4.3.1",
"prettier": "^2.8.8",
"supertest": "^6.2.3",
"ts-jest": "^27.0.7",
"ts-jest": "^29.1.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=18"
"node": "18.19.0"
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@credo-ts/core/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts b/node_modules/@credo-ts/core/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts
index d12468b..ae70f36 100644
--- a/node_modules/@credo-ts/core/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts
+++ b/node_modules/@credo-ts/core/build/modules/credentials/formats/jsonld/JsonLdCredentialFormat.d.ts
@@ -10,6 +10,8 @@ export interface JsonCredential {
issuanceDate: string;
expirationDate?: string;
credentialSubject: SingleOrArray<JsonObject>;
+ //TODO change type
+ prettyVc?: any;
[key: string]: unknown;
}
/**
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/@credo-ts/core/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js b/node_modules/@credo-ts/core/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js
index 006d870..da56801 100644
--- a/node_modules/@credo-ts/core/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js
+++ b/node_modules/@credo-ts/core/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js
@@ -170,7 +170,8 @@ class DifPresentationExchangeProofFormatService {
try {
ps.validatePresentationDefinition(request.presentation_definition);
ps.validatePresentationSubmission(jsonPresentation.presentation_submission);
- ps.validatePresentation(request.presentation_definition, parsedPresentation);
+ // FIXME: Commenting validatePresentation() for now due to intermittent abandoned issue
+ //ps.validatePresentation(request.presentation_definition, parsedPresentation);
let verificationResult;
// FIXME: for some reason it won't accept the input if it doesn't know
// whether it's a JWT or JSON-LD VP even though the input is the same.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/@credo-ts/core/build/modules/credentials/protocol/v2/V2CredentialProtocol.js b/node_modules/@credo-ts/core/build/modules/credentials/protocol/v2/V2CredentialProtocol.js
index fb1fb9d..b519694 100644
--- a/node_modules/@credo-ts/core/build/modules/credentials/protocol/v2/V2CredentialProtocol.js
+++ b/node_modules/@credo-ts/core/build/modules/credentials/protocol/v2/V2CredentialProtocol.js
@@ -97,7 +97,6 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
let credentialRecord = await this.findByProperties(messageContext.agentContext, {
threadId: proposalMessage.threadId,
role: models_1.CredentialRole.Issuer,
- connectionId: connection === null || connection === void 0 ? void 0 : connection.id,
});
const formatServices = this.getFormatServicesFromMessage(proposalMessage.formats);
if (formatServices.length === 0) {
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
diff --git a/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.d.ts b/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.d.ts
index 91bb8f4..b4dae61 100644
--- a/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.d.ts
+++ b/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.d.ts
@@ -1,5 +1,5 @@
import type { TenantRecord } from '../repository';
-import type { AgentContextProvider, UpdateAssistantUpdateOptions } from '@credo-ts/core';
+import type { AgentContextProvider, UpdateAssistantUpdateOptions , CacheModule, InMemoryLruCache } from '@credo-ts/core';
import { AgentContext, EventEmitter, Logger } from '@credo-ts/core';
import { TenantRecordService } from '../services';
import { TenantSessionCoordinator } from './TenantSessionCoordinator';
@@ -9,7 +9,9 @@ export declare class TenantAgentContextProvider implements AgentContextProvider
private eventEmitter;
private logger;
private tenantSessionCoordinator;
- constructor(tenantRecordService: TenantRecordService, rootAgentContext: AgentContext, eventEmitter: EventEmitter, tenantSessionCoordinator: TenantSessionCoordinator, logger: Logger);
+ private cacheModule;
+ private inMemoryLruCache;
+ constructor(tenantRecordService: TenantRecordService, rootAgentContext: AgentContext, eventEmitter: EventEmitter, tenantSessionCoordinator: TenantSessionCoordinator, logger: Logger, cache: InMemoryLruCache);
getAgentContextForContextCorrelationId(contextCorrelationId: string): Promise<AgentContext>;
getContextForInboundMessage(inboundMessage: unknown, options?: {
contextCorrelationId?: string;
diff --git a/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.js b/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.js
index d491d4e..d60ec79 100644
--- a/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.js
+++ b/node_modules/@credo-ts/tenants/build/context/TenantAgentContextProvider.js
@@ -24,16 +24,28 @@ let TenantAgentContextProvider = class TenantAgentContextProvider {
this.eventEmitter = eventEmitter;
this.tenantSessionCoordinator = tenantSessionCoordinator;
this.logger = logger;
+ this.cache = new core_1.CacheModule({
+ cache: new core_1.InMemoryLruCache({ limit: 100 }),
+ });
// Start listener for newly created routing keys, so we can register a mapping for each new key for the tenant
this.listenForRoutingKeyCreatedEvents();
}
async getAgentContextForContextCorrelationId(contextCorrelationId) {
+ this.logger.debug('debug ========= Inside getAgentContextForContextCorrelationId')
// It could be that the root agent context is requested, in that case we return the root agent context
if (contextCorrelationId === this.rootAgentContext.contextCorrelationId) {
return this.rootAgentContext;
}
// TODO: maybe we can look at not having to retrieve the tenant record if there's already a context available.
- const tenantRecord = await this.tenantRecordService.getTenantById(this.rootAgentContext, contextCorrelationId);
+ this.logger.debug('debug ========= Get tenantRecord from cache')
+ let tenantRecord = await this.cache.config.cache.get(this.rootAgentContext, `contextCorrelationId-${contextCorrelationId}`)
+ if(!tenantRecord) {
+ // TODO: maybe we can look at not having to retrieve the tenant record if there's already a context available.
+ this.logger.debug('debug ========= TenantRecord not found in cache')
+ tenantRecord = await this.tenantRecordService.getTenantById(this.rootAgentContext, contextCorrelationId)
+ await this.cache.config.cache.set(this.rootAgentContext,`contextCorrelationId-${contextCorrelationId}`,tenantRecord)
+ this.logger.debug(`debug ========= Cached tenant agent context for tenant '${contextCorrelationId}'`)
+ }
const shouldUpdate = !(0, core_1.isStorageUpToDate)(tenantRecord.storageVersion);
// If the tenant storage is not up to date, and autoUpdate is disabled we throw an error
if (shouldUpdate && !this.rootAgentContext.config.autoUpdateStorageOnStartup) {
18 changes: 8 additions & 10 deletions samples/cliConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"walletPassword": "postgres",
"walletAdminAccount": "postgres",
"walletAdminPassword": "postgres",
"walletScheme": "DatabasePerWallet",
"walletScheme": "ProfilePerWallet",
"indyLedger": [
{
"genesisTransactions": "https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_testnet_genesis",
Expand All @@ -19,30 +19,28 @@
"indyNamespace": "indicio:demonet"
},
{
"genesisTransactions": "http://test.bcovrin.vonx.io/genesis",
"genesisTransactions": "https://raw.githubusercontent.com/bcgov/von-network/main/BCovrin/genesis_test",
"indyNamespace": "bcovrin:testnet"
}
],
"endpoint": ["http://localhost:4002"],
"autoAcceptConnections": true,
"autoAcceptCredentials": "contentApproved",
"autoAcceptCredentials": "always",
"autoAcceptProofs": "contentApproved",
"useLegacyDidSovPrefix": true,
"logLevel": 5,
"logLevel": 2,
"inboundTransport": [
{
"transport": "http",
"port": 4002
}
],
"outboundTransport": ["http"],
"autoAcceptMediationRequests": false,
"adminPort": 4001,
"tenancy": true,
"schemaFileServerURL": "https://schema.credebl.id/schemas/",
"didRegistryContractAddress": "0x1adeA199dCf07E17232415Cb232442BE52517Add",
"schemaManagerContractAddress": "0x289c7Bd4C7d38cC54bff370d6f9f01b74Df51b11",
"didRegistryContractAddress": "0xcB80F37eDD2bE3570c6C9D5B0888614E04E1e49E",
"schemaManagerContractAddress": "0x4742d43C2dFCa5a1d4238240Afa8547Daf87Ee7a",
"rpcUrl": "https://rpc-amoy.polygon.technology",
"fileServerUrl": "https://schema.credebl.id/",
"fileServerUrl": "https://schema.credebl.id",
"fileServerToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJBeWFuV29ya3MiLCJpZCI6ImNhZDI3ZjhjLTMyNWYtNDRmZC04ZmZkLWExNGNhZTY3NTMyMSJ9.I3IR7abjWbfStnxzn1BhxhV0OEzt1x3mULjDdUcgWHk"
}
}
66 changes: 66 additions & 0 deletions scripts/taskdef/credo-ecs-taskdef.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"family": "${FAMILY}",
"containerDefinitions": [
{
"name": "Platform-admin",
"image": "%REPOSITORY_URI%:CREDO_v_%BUILD_NUMBER%",
"cpu": 154,
"memory": 307,
"portMappings": [
{
"containerPort": 8001,
"hostPort": 8001,
"protocol": "tcp"
},
{
"containerPort": 9001,
"hostPort": 9001,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"--auto-accept-connections",
"--config",
"/config.json"
],
"environment": [
{
"name": "AFJ_REST_LOG_LEVEL",
"value": "1"
}
],
"environmentFiles": [
{
"value": "${S3_ARN}",
"type": "s3"
}
],
"mountPoints": [
{
"sourceVolume": "config",
"containerPath": "/config.json",
"readOnly": true
}
],
"volumesFrom": [],
"ulimits": []
}

],
"executionRoleArn": "arn:aws:iam::${ACCOUNT_ID}:role/ecsTaskExecutionRole",
"placementConstraints": [],
"requiresCompatibilities": [
"EC2"
],
"cpu": "154",
"memory": "307",
"volumes": [
{
"name": "config",
"host": {
"sourcePath": "${SourcePath}"
}
}
]
}
76 changes: 76 additions & 0 deletions scripts/taskdef/credo-fargate-taskdef.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"family": "${FAMILY}",
"containerDefinitions": [
{
"name": "Platform-admin",
"image": "%REPOSITORY_URI%:CREDO_v_%BUILD_NUMBER%",
"cpu": 0,
"portMappings": [
{
"containerPort": 8004,
"hostPort": 8004,
"protocol": "tcp"
},
{
"containerPort": 9004,
"hostPort": 9004,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"--auto-accept-connections",
"--config",
"/config/${CONFIG_FILE}"
],
"environment": [
{
"name": "AFJ_REST_LOG_LEVEL",
"value": "1"
}
],
"environmentFiles": [
{
"value": "${S3_ARN}",
"type": "s3"
}
],
"mountPoints": [
{
"sourceVolume": "config",
"containerPath": "/config",
"readOnly": false
}
],
"volumesFrom": [],
"ulimits": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/${FAMILY}",
"awslogs-create-group": "true",
"awslogs-region": "ap-south-1",
"awslogs-stream-prefix": "ecs"
}
}
}

],
"executionRoleArn": "arn:aws:iam::${ACCOUNT_ID}:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"placementConstraints": [],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "2048",
"volumes": [
{
"name": "config",
"efsVolumeConfiguration": {
"fileSystemId": "${EFS}",
"rootDirectory": "/"
}
}
]
}
Loading
Loading