Skip to content

Commit

Permalink
Merging Develop into Main for 2.13.0 release (hashgraph#2206)
Browse files Browse the repository at this point in the history
* fix

Signed-off-by: simvalery <[email protected]>

* fix api, fix uuid

Signed-off-by: Stepan Kiryakov <[email protected]>

* Bump axios from 0.25.0 to 1.3.6

Bumps [axios](https://github.com/axios/axios) from 0.25.0 to 1.3.6.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.25.0...v1.3.6)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump jose from 4.3.8 to 4.14.1

Bumps [jose](https://github.com/panva/jose) from 4.3.8 to 4.14.1.
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md)
- [Commits](panva/jose@v4.3.8...v4.14.1)

---
updated-dependencies:
- dependency-name: jose
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump mongodb from 4.8.1 to 5.3.0

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 4.8.1 to 5.3.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v4.8.1...v5.3.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @mikro-orm/core from 5.3.1 to 5.7.2

Bumps [@mikro-orm/core](https://github.com/mikro-orm/mikro-orm) from 5.3.1 to 5.7.2.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.3.1...v5.7.2)

---
updated-dependencies:
- dependency-name: "@mikro-orm/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump sinon from 13.0.2 to 15.0.4

Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.2 to 15.0.4.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](sinonjs/sinon@v13.0.2...v15.0.4)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix build

Signed-off-by: simvalery <[email protected]>

* GITBOOK-324: Corrected Guidance

* GITBOOK-325: guidance for open source

* Bump @mikro-orm/mongodb from 5.3.1 to 5.7.2

Bumps [@mikro-orm/mongodb](https://github.com/mikro-orm/mikro-orm) from 5.3.1 to 5.7.2.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.3.1...v5.7.2)

---
updated-dependencies:
- dependency-name: "@mikro-orm/mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @mikro-orm/migrations-mongodb from 5.3.1 to 5.7.2

Bumps [@mikro-orm/migrations-mongodb](https://github.com/mikro-orm/mikro-orm) from 5.3.1 to 5.7.2.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.3.1...v5.7.2)

---
updated-dependencies:
- dependency-name: "@mikro-orm/migrations-mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fixes

Signed-off-by: simvalery <[email protected]>

* fix web3token

Signed-off-by: simvalery <[email protected]>

* GITBOOK-316: Documentation related to the PRs that were merged

* fix bugs

Signed-off-by: simvalery <[email protected]>

* fix

Signed-off-by: simvalery <[email protected]>

* fix validation

Signed-off-by: simvalery <[email protected]>

* cut filenames

Signed-off-by: artembuslaev <[email protected]>

* fix field type

Signed-off-by: simvalery <[email protected]>

* GITBOOK-326: Corrected alignment and fonts

* GITBOOK-327: Added image for Environment

* fix tag schemas

Signed-off-by: artembuslaev <[email protected]>

* GITBOOK-331: cloud infrastructure roadmap

* remove files with large name

Signed-off-by: artembuslaev <[email protected]>

* GITBOOK-332: updated images

* update irec 5 policy [skip ci]

Signed-off-by: artembuslaev <[email protected]>

* Updated irec 5 timestamp in readme

* GITBOOK-333: Updated iREC timestamps

* hotfix/horizontal-scroll-blank-spaces

* bump version

Signed-off-by: simvalery <[email protected]>

* bump version

Signed-off-by: simvalery <[email protected]>

* fix import tags

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix report item

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix overwriting entities

Signed-off-by: Artem Buslaev <[email protected]>

* fixing document validation error

Signed-off-by: Artem Buslaev <[email protected]>

* moved policies tab

Signed-off-by: Artem Buslaev <[email protected]>

* fix refreshing events

Signed-off-by: artembuslaev <[email protected]>

* fix scroll in request block

Signed-off-by: artembuslaev <[email protected]>

* upgrade ws updating messages

Signed-off-by: artembuslaev <[email protected]>

* fix lint

Signed-off-by: artembuslaev <[email protected]>

* optimize update algorithm

Signed-off-by: Artem Buslaev <[email protected]>

* fix issue in aggregation block

Signed-off-by: Artem Buslaev <[email protected]>

* update info about revoke block

Signed-off-by: Artem Buslaev <[email protected]>

* added converting for old revoke block

Signed-off-by: Artem Buslaev <[email protected]>

* fix issue with set relationships block

Signed-off-by: Artem Buslaev <[email protected]>

* apply updating to multiple users

Signed-off-by: Artem Buslaev <[email protected]>

* add new block

Signed-off-by: Stepan Kiryakov <[email protected]>

* GITBOOK-335: selective disclosure doc added

* resolve hashgraph#1923,resolve hashgraph#1693
Integrate multi env feature
Service Env can Override
configs folder in dockerfile & managed GUARDIAN_ENV
docs
Docs Manual execution
Apply changes on updated develop
DIRECT_MESSAGE_PORT is a specilized variable

Signed-off-by: otherNet <[email protected]>

* fix displaying account creation document in trust chain

Signed-off-by: Artem Buslaev <[email protected]>

* Bump @hashgraph/sdk from 2.24.1 to 2.24.2

Bumps [@hashgraph/sdk](https://github.com/hashgraph/hedera-sdk-js) from 2.24.1 to 2.24.2.
- [Release notes](https://github.com/hashgraph/hedera-sdk-js/releases)
- [Changelog](https://github.com/hashgraph/hedera-sdk-js/blob/develop/CHANGELOG.md)
- [Commits](hashgraph/hedera-sdk-js@v2.24.1...v2.24.2)

---
updated-dependencies:
- dependency-name: "@hashgraph/sdk"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* disable application events

Signed-off-by: simvalery <[email protected]>
Signed-off-by: Felipe Neuhauss <[email protected]>

* fix

Signed-off-by: simvalery <[email protected]>
Signed-off-by: Felipe Neuhauss <[email protected]>

* feat: prometheus and grafana integration

Signed-off-by: Felipe Neuhauss <[email protected]>

* feat: swagger updated

Signed-off-by: Felipe Neuhauss <[email protected]>

* feat: swagger updated

Signed-off-by: Felipe Neuhauss <[email protected]>

* feat: docs updated

Signed-off-by: Felipe Neuhauss <[email protected]>

* feat: prometheus and grafana integration

Signed-off-by: Felipe Neuhauss <[email protected]>

* update

* Updates .policy files and readme.md for ICP.

* fix merge

Signed-off-by: simvalery <[email protected]>

* Bump @mikro-orm/mongodb from 5.7.2 to 5.7.5

Bumps [@mikro-orm/mongodb](https://github.com/mikro-orm/mikro-orm) from 5.7.2 to 5.7.5.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.2...v5.7.5)

---
updated-dependencies:
- dependency-name: "@mikro-orm/mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix lint

Signed-off-by: simvalery <[email protected]>

* fices

Signed-off-by: simvalery <[email protected]>

* Bump @mikro-orm/core from 5.7.2 to 5.7.5

Bumps [@mikro-orm/core](https://github.com/mikro-orm/mikro-orm) from 5.7.2 to 5.7.5.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.2...v5.7.5)

---
updated-dependencies:
- dependency-name: "@mikro-orm/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @mikro-orm/migrations-mongodb from 5.7.2 to 5.7.5

Bumps [@mikro-orm/migrations-mongodb](https://github.com/mikro-orm/mikro-orm) from 5.7.2 to 5.7.5.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.2...v5.7.5)

---
updated-dependencies:
- dependency-name: "@mikro-orm/migrations-mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump mongodb from 5.3.0 to 5.4.0

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v5.3.0...v5.4.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: swagger updated

Signed-off-by: Felipe Neuhauss <[email protected]>

* update

Signed-off-by: Stepan Kiryakov <[email protected]>

* GITBOOK-334: Felipe's May 2 changes

* GITBOOK-338: Prometheus and Grafana documentation

* update

* Bump @mikro-orm/core from 5.7.5 to 5.7.7

Bumps [@mikro-orm/core](https://github.com/mikro-orm/mikro-orm) from 5.7.5 to 5.7.7.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.5...v5.7.7)

---
updated-dependencies:
- dependency-name: "@mikro-orm/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump mongodb from 5.4.0 to 5.5.0

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v5.4.0...v5.5.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix 2100

Signed-off-by: simvalery <[email protected]>

* fix 2110

Signed-off-by: simvalery <[email protected]>

* Bump @mikro-orm/mongodb from 5.7.5 to 5.7.7

Bumps [@mikro-orm/mongodb](https://github.com/mikro-orm/mikro-orm) from 5.7.5 to 5.7.7.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.5...v5.7.7)

---
updated-dependencies:
- dependency-name: "@mikro-orm/mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @mikro-orm/migrations-mongodb from 5.7.5 to 5.7.7

Bumps [@mikro-orm/migrations-mongodb](https://github.com/mikro-orm/mikro-orm) from 5.7.5 to 5.7.7.
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](mikro-orm/mikro-orm@v5.7.5...v5.7.7)

---
updated-dependencies:
- dependency-name: "@mikro-orm/migrations-mongodb"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix 2133

Signed-off-by: simvalery <[email protected]>

* compare schemas

* GITBOOK-336: adding a subpage to the environments section

* GITBOOK-340: correction to Ecosystem Environment

* update

* update

Signed-off-by: Stepan Kiryakov <[email protected]>

* update

* change document hash in retire request

Signed-off-by: Artem Buslaev <[email protected]>

* update

Signed-off-by: Stepan Kiryakov <[email protected]>

* add demo policy

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix update vc

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix display of schema dialog buttons for mobile UI

Signed-off-by: Stepan Kiryakov <[email protected]>

* GITBOOK-343: adding guides

* GITBOOK-344: Added GoldStandard

* implement nestjs

Signed-off-by: simvalery <[email protected]>

* upload and verify vc

Signed-off-by: simvalery <[email protected]>

* fix loading animation

* change vc documents index

Signed-off-by: Stepan Kiryakov <[email protected]>

* update

Signed-off-by: Stepan Kiryakov <[email protected]>

* refactor

Signed-off-by: simvalery <[email protected]>

* GITBOOK-345: added Atma policy

* update order by

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix migration

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix tests

Signed-off-by: Stepan Kiryakov <[email protected]>

* added wizards

Signed-off-by: Artem Buslaev <[email protected]>

* fix

Signed-off-by: Artem Buslaev <[email protected]>

* added wizard docs [skip ci]

Signed-off-by: Artem Buslaev <[email protected]>

* fix trustchain creation

Signed-off-by: Artem Buslaev <[email protected]>

* change help icons

Signed-off-by: Artem Buslaev <[email protected]>

* fix lint

Signed-off-by: Artem Buslaev <[email protected]>

* fix schema updating

Signed-off-by: Artem Buslaev <[email protected]>

* fixed clone schemas

Signed-off-by: Artem Buslaev <[email protected]>

* fix importing schemas

Signed-off-by: Artem Buslaev <[email protected]>

* fix exporting schemas

Signed-off-by: Artem Buslaev <[email protected]>

* added integer to mint fields

Signed-off-by: Artem Buslaev <[email protected]>

* fix tips, trustchain issues

Signed-off-by: Artem Buslaev <[email protected]>

* remove wizard preset on publish

Signed-off-by: Artem Buslaev <[email protected]>

* fix ui issues

Signed-off-by: Artem Buslaev <[email protected]>

* added getData, setData to basic block

Signed-off-by: Artem Buslaev <[email protected]>

* change contracts to retirement

Signed-off-by: Artem Buslaev <[email protected]>

* GITBOOK-347: Added VM0042 description

* fix style

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix relationship and produced schemas

Signed-off-by: Artem Buslaev <[email protected]>

* fix link button

Signed-off-by: Artem Buslaev <[email protected]>

* added rejected source addon to wizard

Signed-off-by: Artem Buslaev <[email protected]>

* added cdm policy [skip ci]

Signed-off-by: Artem Buslaev <[email protected]>

* fix build

Signed-off-by: simvalery <[email protected]>

* implement nestjs api

Signed-off-by: simvalery <[email protected]>

* wiard api

Signed-off-by: simvalery <[email protected]>

* add topic mask

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix logs

Signed-off-by: simvalery <[email protected]>

* add env config

Signed-off-by: Stepan Kiryakov <[email protected]>

* fixed choose wizard state

Signed-off-by: artembuslaev <[email protected]>

* fixed wizard trustchain

Signed-off-by: artembuslaev <[email protected]>

* fix dialog size

Signed-off-by: Stepan Kiryakov <[email protected]>

* change approving for initial steps

Signed-off-by: Artem Buslaev <[email protected]>

* added revocationBlock

Signed-off-by: Artem Buslaev <[email protected]>

* added deprecation to about section

Signed-off-by: Artem Buslaev <[email protected]>

* remove getData, setData from basic block

Signed-off-by: Artem Buslaev <[email protected]>

* changed wizard config in swagger

Signed-off-by: Artem Buslaev <[email protected]>

* fix import/export

Signed-off-by: simvalery <[email protected]>

* fix build

Signed-off-by: simvalery <[email protected]>

* fix lots errors

Signed-off-by: simvalery <[email protected]>

* GITBOOK-348: added externalTopicBlock details

* Added AzureSecretManager class to handle secrets by Azure Vault Secrets

Signed-off-by: hnamzian <[email protected]>

* Integrated AzureSecretManager into SecretManager class

Signed-off-by: hnamzian <[email protected]>

* Convert Wallet Key from hex to Base58 in order to comply with Azure key length rule

Signed-off-by: hnamzian <[email protected]>

* Azure Vault configs added to .env.template

Signed-off-by: hnamzian <[email protected]>

* Document added to setup Azure Vault

Signed-off-by: hnamzian <[email protected]>

* changed ui displaying for deprecated blocks

Signed-off-by: Artem Buslaev <[email protected]>

* fix lint
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* added ability to create schemas with draft topics

Signed-off-by: Artem Buslaev <[email protected]>

* GITBOOK-349: added aPI parameters for pagination

* GITBOOK-350: Integrating external policies demo

* GITBOOK-351: Policy Wizard demo using UI

* GITBOOK-352: Wizard APIs

* status codes
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* routes permissions
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix accounts
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix themes
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* disable publishing for schemas with draft topic

Signed-off-by: Artem Buslaev <[email protected]>

* changed block tag generation in wizard

Signed-off-by: Artem Buslaev <[email protected]>

* fix schema type
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix register
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* add validation
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* tests
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix get-schemas request
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix get-schemas request
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix lintings
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* fix lint

Signed-off-by: Artem Buslaev <[email protected]>

* fix swagger wizard endpoint paths

Signed-off-by: Artem Buslaev <[email protected]>

* bump version
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* schema active endpoint
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* Create ReadMe.md

* Rename ReadMe.md to readme.md

* Update readme.md of CDM

* fix bugs
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* added vp/vc view pagination with requests unsubscribing

Signed-off-by: Artem Buslaev <[email protected]>

* removed deprecated view history

Signed-off-by: Artem Buslaev <[email protected]>

* fix logs
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* Update iREC readme.md

* GITBOOK-355: Updated Installation details

* merge main
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* GITBOOK-356: added iREC versions

* fix service states
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* changed option name for schemas with draft topics

Signed-off-by: Artem Buslaev <[email protected]>

* fix

Signed-off-by: Artem Buslaev <[email protected]>

* bump version
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

---------

Signed-off-by: simvalery <[email protected]>
Signed-off-by: Stepan Kiryakov <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: artembuslaev <[email protected]>
Signed-off-by: Artem Buslaev <[email protected]>
Signed-off-by: otherNet <[email protected]>
Signed-off-by: Felipe Neuhauss <[email protected]>
Signed-off-by: hnamzian <[email protected]>
Co-authored-by: Stepan Kiryakov <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: prernaa.agarwal <[email protected]>
Co-authored-by: Artem Buslaev <[email protected]>
Co-authored-by: Vanessa Lopes <[email protected]>
Co-authored-by: E. Santiago <[email protected]>
Co-authored-by: otherNet <[email protected]>
Co-authored-by: Felipe Neuhauss <[email protected]>
Co-authored-by: AlexIvanHoward <[email protected]>
Co-authored-by: Serg Metelin <[email protected]>
Co-authored-by: Felipe Neuhauss <[email protected]>
Co-authored-by: hnamzian <[email protected]>
Signed-off-by: lozytskyiintellecteu <[email protected]>
  • Loading branch information
13 people authored and lozytskyiintellecteu committed Jul 5, 2023
1 parent 557ca31 commit c0e34dc
Show file tree
Hide file tree
Showing 94 changed files with 1,569 additions and 450 deletions.
7 changes: 7 additions & 0 deletions Methodology Library/iREC/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ As the initial step in IREC Policy involve creation of following Schemas: iRec r
| IRec Policy 8.1 MBP | 1674822811.925003914 | Policy based on iREC Policy 4 where there are two impacts in one mint block | [Link](https://github.com/hashgraph/guardian/blob/main/Methodology%20Library/iREC/Policies/IRec%20Policy%208.1%20MBP%20(1670329794.680515003).policy) |
| IRec Policy 8.2 MBP | 1674823034.585480003 | Policy based on iREC Policy 4 where the scenario is that there are two impacts in two different mint blocks | [Link](https://github.com/hashgraph/guardian/blob/main/Methodology%20Library/iREC/Policies/IRec%20Policy%208.2%20MBP%20(1670500065.430227921).policy) |
| IRec 9 Module | 1677851469.448047161 | Policy based on iREC Policy 4 where we have Modules integrated in the policy | [Link](https://github.com/hashgraph/guardian/blob/main/Methodology%20Library/iREC/Policies/iRec%209%20Module%20(1677851469.448047161).policy) |
| iRec 10 Source | 1684756995.238994037 | Policy based on iREC Policy 4 which breaks on creation of "Issue Request | [Link](https://github.com/hashgraph/guardian/blob/main/Methodology%20Library/iREC/Policies/iRec%2010%20Source%20(1684756995.238994037).policy) |
| iRec 10 Recipient | 1684757087.809526003 | Policy based on iREC Policy 4 which continues with loading "Issue Request" from "iRec 10 Source" | [Link](https://github.com/hashgraph/guardian/blob/main/Methodology%20Library/iREC/Policies/iRec%2010%20Recipient%20(1684757087.809526003).policy) |

Workflow Diagram to explain the connection between iREC 10 Source and iREc 10 Recipient:

![image](https://github.com/hashgraph/guardian/assets/79293833/b8bf59de-60c6-4b49-83d7-0c852ef0ba10)



For complete User Guide and API Flow for executing IREC Policy, please refer to :
Expand Down
5 changes: 2 additions & 3 deletions api-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-docs",
"version": "2.13.0-prerelease",
"version": "2.13.0",
"description": "Swagger Documentation",
"main": "dist/index.js",
"scripts": {
Expand All @@ -24,6 +24,5 @@
"@types/swagger-ui-express": "^4.1.3",
"tslint": "^6.1.3",
"typescript": "^4.6.3"
},
"stableVersion": "2.12.0"
}
}
7 changes: 3 additions & 4 deletions api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.13.0-prerelease",
"@guardian/interfaces": "^2.13.0-prerelease",
"@guardian/common": "^2.13.0",
"@guardian/interfaces": "^2.13.0",
"@nestjs/common": "^9.4.1",
"@nestjs/core": "^9.4.1",
"@nestjs/microservices": "^9.4.1",
Expand Down Expand Up @@ -63,6 +63,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.13.0-prerelease",
"stableVersion": "2.12.0"
"version": "2.13.0"
}
5 changes: 2 additions & 3 deletions api-gateway/src/api/service/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,8 @@ export class TokensApi {
@Put('/push/:tokenId/:username/unfreeze')
@HttpCode(HttpStatus.ACCEPTED)
async unfreezeTokenAsync(@Req() req, @Response() res): Promise<any> {
await checkPermission(UserRole.STANDARD_REGISTRY)(req.user);
const taskManager = new TaskManager();
const { taskId, expectation } = taskManager.start('Freeze Token');
const { taskId, expectation } = taskManager.start('Unfreeze Token');

const tokenId = req.params.tokenId;
const username = req.params.username;
Expand All @@ -655,7 +654,7 @@ export class TokensApi {

RunFunctionAsync<ServiceError>(async () => {
const guardians = new Guardians();
await guardians.freezeTokenAsync(tokenId, username, userDid, taskId);
await guardians.unfreezeTokenAsync(tokenId, username, userDid, taskId);
}, async (error) => {
new Logger().error(error, ['API_GATEWAY']);
taskManager.addError(taskId, { code: error.code || 500, message: error.message });
Expand Down
5 changes: 2 additions & 3 deletions api-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-tests",
"version": "2.13.0-prerelease",
"version": "2.13.0",
"description": "API Tests",
"main": "index.js",
"scripts": {
Expand All @@ -18,6 +18,5 @@
"dependencies": {
"axios": "^1.3.6",
"dotenv": "^16.0.1"
},
"stableVersion": "2.12.0"
}
}
3 changes: 3 additions & 0 deletions auth-service/configs/.env.auth.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ MQ_MAX_PAYLOAD=""
#HASHICORP_UNSEAL_KEY=""
#IMPORT_KEYS_FROM_DB=1
#MQ_MESSAGE_CHUNK=5000000

# Azure Key Vault Configs
AZURE_VAULT_NAME=
7 changes: 3 additions & 4 deletions auth-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.13.0-prerelease",
"@guardian/interfaces": "^2.13.0-prerelease",
"@guardian/common": "^2.13.0",
"@guardian/interfaces": "^2.13.0",
"@mikro-orm/core": "~5.7.7",
"@mikro-orm/mongodb": "~5.7.7",
"@nestjs/common": "^9.4.1",
Expand Down Expand Up @@ -53,6 +53,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.13.0-prerelease",
"stableVersion": "2.12.0"
"version": "2.13.0"
}
8 changes: 4 additions & 4 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@aws-sdk/client-secrets-manager": "^3.319.0",
"@guardian/interfaces": "^2.13.0-prerelease",
"@azure/identity": "^3.2.2",
"@azure/keyvault-secrets": "^4.7.0",
"@guardian/interfaces": "^2.13.0",
"@hashgraph/sdk": "^2.24.2",
"@mattrglobal/jsonld-signatures-bbs": "^1.1.2",
"@meeco/cryppo": "^2.0.2",
Expand Down Expand Up @@ -30,7 +32,6 @@
"moment": "^2.29.2",
"mongodb": "5.5.0",
"nats": "^2.6.1",
"nestjs": "^0.0.1",
"node-vault": "^0.9.22",
"reflect-metadata": "^0.1.13",
"winston": "^3.8.1",
Expand Down Expand Up @@ -63,6 +64,5 @@
"test:local": "mocha tests/**/*.test.js --exit",
"test:stability": "mocha tests/stability.test.js"
},
"version": "2.13.0-prerelease",
"stableVersion": "2.12.0"
"version": "2.13.0"
}
3 changes: 2 additions & 1 deletion common/src/hedera-modules/message/policy-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ export class PolicyMessage extends Message {
message.topicDescription = json.topicDescription;
message.version = json.version;
message.policyTag = json.policyTag;
message.policyTag = json.owner;
message.owner = json.owner;
message.policyTopicId = json.topicId;
message.instanceTopicId = json.instanceTopicId;
message.synchronizationTopicId = json.synchronizationTopicId;

if (json.cid) {
const urls = [{
Expand Down
5 changes: 2 additions & 3 deletions common/src/helpers/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ export class LoggerServiceTransport extends Transport {
* @param callback
*/
log(info, callback): void {
this.request(MessageAPI.WRITE_LOG, info).then(() => {
callback();
});
this.channel.publish(MessageAPI.WRITE_LOG, info);
callback();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions common/src/mq/large-payload-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class LargePayloadContainer {
* Objects map
* @private
*/
private readonly objectsMap: Map<string, Buffer>;
private readonly objectsMap: Map<string, Buffer | Uint8Array>;

/**
* Protocol
Expand Down Expand Up @@ -93,7 +93,7 @@ export class LargePayloadContainer {
* Add object to share
* @param o
*/
public addObject(o: Buffer): URL {
public addObject(o: Buffer | Uint8Array): URL {
const objectID = GenerateUUIDv4();
this.objectsMap.set(objectID, o);
return new URL(`/${objectID}`, `${this.PROTOCOL}://${this.DOMAIN}:${this.PORT}`);
Expand Down
6 changes: 2 additions & 4 deletions common/src/mq/zip-codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function ZipCodec() {
const zipped = JSONCodec().encode(d);
const maxPayload = parseInt(process.env.MQ_MAX_PAYLOAD, 10);
if (Number.isInteger(maxPayload) && maxPayload <= zipped.length) {
const directLink = new LargePayloadContainer().addObject(zipped.buffer as Buffer);
const directLink = new LargePayloadContainer().addObject(Buffer.from(zipped));
console.log(directLink.toString(), zipped.length);
return JSONCodec().encode({
directLink
Expand All @@ -46,15 +46,13 @@ export function ZipCodec() {
const response = await axios.get(directLink, {
responseType: 'arraybuffer'
});
const compressedData = response.data.buffer;
const compressedData = response.data;
// const _decompressed = await util.promisify(unzip)(compressedData)
const _decompressed = compressedData;
console.log(directLink, JSON.parse(_decompressed.toString()));
return JSON.parse(_decompressed.toString());
}
return parsed;
} catch (error) {
console.log(error);
throw NatsError.errorForCode(ErrorCode.BadJson, error);
}
}
Expand Down
28 changes: 28 additions & 0 deletions common/src/secret-manager/azure/azure-secret-manager-configs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { SecretManagerConfigsBase } from '../secret-manager-config-base';

/**
* Interface for Azure Secret Manager configs
*/
export interface IAzureSecretManagerConfigs {
/**
* Azure Vault Name
*/
vaultName: string,
}

/**
* Class to get Azure Secret Manager configs
*/
export class AzureSecretManagerConfigs implements SecretManagerConfigsBase {
/**
* Get Azure Secret Manager configs from environment variables
* @returns Azure Secret Manager configs
* @public
* @static
*/
static getConfigs(): IAzureSecretManagerConfigs {
return {
vaultName: process.env.AZURE_VAULT_NAME,
} as IAzureSecretManagerConfigs;
}
}
121 changes: 121 additions & 0 deletions common/src/secret-manager/azure/azure-secret-manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
import { DefaultAzureCredential } from '@azure/identity';
import { SecretClient } from '@azure/keyvault-secrets';
import { SecretManagerBase } from '../secret-manager-base';
import { IAzureSecretManagerConfigs } from './azure-secret-manager-configs';

/**
* This class is responsible for managing secrets in Azure Secret Manager
* It implements the SecretManagerBase interface
*/
export class AzureSecretManager implements SecretManagerBase {
/**
* The client is responsible for communicating with Azure Secret Manager
* @private
*/
private readonly client: SecretClient;

/**
* The base path for all secrets
* @private
*/
private readonly baseSecretPath = 'guardian/';

constructor(configs: IAzureSecretManagerConfigs) {
const url = `https://${configs.vaultName}.vault.azure.net`;

const credential = new DefaultAzureCredential();
this.client = new SecretClient(url, credential);
}

/**
* Construct the secret id from the base path and the path
* SecretId is converted into PascalCase format as
* Azure Secret Manager does not allow hyphens in secret names
* @param path secret path
* @returns secret id
* @async
* @public
*/
private getSecretId(path: string): string {
const secretPath = this.baseSecretPath + path;

// convert path string to PascalCase format (Azure Secret Manager does not allow hyphens in secret names)
const parts = secretPath.split('/');
const secretId = parts.map((part, _) => part.charAt(0).toUpperCase() + part.slice(1));

return secretId.join('');
}

/**
* verify if the secret exists
* @param path secret path
* @returns true if the secret exists, false otherwise
* @throws Error if any other error occurs
* @async
* @public
*/
public async existsSecrets(path: string): Promise<boolean> {
try {
await this.client.getSecret(this.getSecretId(path));
return true;
} catch (ex) {
if (ex.details.error.code === 'SecretNotFound') {
return false;
} else {
throw ex;
}
}
}

/**
* Get the secret
* @param path secret path
* @returns secret data
* @throws ResourceNotFoundException if the secret does not exist
* @throws Error if any other error occurs
* @async
* @public
*/
public async getSecrets(path: string): Promise<any> {
try {
const { value } = await this.client.getSecret(this.getSecretId(path));
return JSON.parse(value);
} catch (ex) {
if (ex.details && ex.details.error.code === 'SecretNotFound') {
return null;
} else {
throw ex;
}
}
}

/**
* Update secret if not exists, otherwise Create it
* @param path secret path
* @param data secret data
* @throws Error if any error occurs
* @returns void
* @async
* @public
*/
public async setSecrets(path: string, data: any): Promise<void> {
try {
await this.client.setSecret(this.getSecretId(path), JSON.stringify(data));
} catch (ex) {
throw ex;
}
}

/**
* Create the secret
* @param path secret path
* @param data secret data
* @throws Error if any error occurs
* @returns void
* @async
* @prublic
*/
public async createSecrets(path: string, data: any): Promise<void> {
await this.setSecrets(path, data);
}
}
3 changes: 2 additions & 1 deletion common/src/secret-manager/secret-manager-config-base.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { IAwsSecretManagerConfigs } from './aws/aws-secret-manager-configs'
import { IAzureSecretManagerConfigs } from './azure/azure-secret-manager-configs';
import { IHcpVaultSecretManagerConfigs } from './hashicorp/hcp-vault-secret-manager-configs'

/**
* Interface for secret manager configs
*/
export type ISecretManagerConfigs = IHcpVaultSecretManagerConfigs | IAwsSecretManagerConfigs;
export type ISecretManagerConfigs = IHcpVaultSecretManagerConfigs | IAwsSecretManagerConfigs | IAzureSecretManagerConfigs;

/**
* Base class for secret manager configs
Expand Down
3 changes: 2 additions & 1 deletion common/src/secret-manager/secret-manager-config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AwsSecretManagerConfigs } from './aws/aws-secret-manager-configs'
import { AzureSecretManagerConfigs } from './azure/azure-secret-manager-configs'
import { HcpVaultSecretManagerConfigs } from './hashicorp/hcp-vault-secret-manager-configs'
import { ISecretManagerConfigs } from './secret-manager-config-base'

Expand Down Expand Up @@ -49,7 +50,7 @@ export class SecretManagerConfigs {
case SecretManagerType.GCP:
return /* GoogleSecretManagerConfigs.getConfigs() */
case SecretManagerType.AZURE:
return /* AzureSecretsManagerConfig.getConfigs() */
return AzureSecretManagerConfigs.getConfigs()
case SecretManagerType.OLD_STYLE:
return
default:
Expand Down
Loading

0 comments on commit c0e34dc

Please sign in to comment.