GithubHelp home page GithubHelp logo

kiva / aries-guardianship-agency Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 1.02 MB

Manages Hyperledger Aries agents within a guardianship framework

License: Apache License 2.0

Dockerfile 1.74% TypeScript 96.13% Shell 2.13%
protocol protocol-backend

aries-guardianship-agency's People

Contributors

dependabot[bot] avatar jsaur avatar mac-arrap avatar matt-raffel-kiva avatar natesulat avatar voutasaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aries-guardianship-agency's Issues

Automatically deploy to dev environment

Add helm charts and update Circle CI config to automatically deploy aries-guardianship-agency to the dev environment once protocol-integration-tests pass and a new docker image has been pushed to dockerhub.

Remove use of init.sql

There is still one place where we require running a custom sql script: resources/init.sql This should be moved to a typeorm migration as we expect all database schemas to be fully managed by their relevant services. When writing the script, make sure to use CREATE IF NOT EXISTS syntax in the sql so as to avoid errors around creating duplicate postgres resources.

Remove use of ts-node

Like was done for protocol-gateway and aries-key-guardian, this ticket is to continue the work of continue phasing out the use of ts-node, targeting aries-guardianship-agency next.

Error - [nodemon] app crashed

I am getting this issue when i try to run

aries-guardianship-agency    | /www/node_modules/jose/lib/help/rsa_primes.js:6
aries-guardianship-agency    | const ZERO = BigInt(0)
aries-guardianship-agency    |              ^
aries-guardianship-agency    | ReferenceError: BigInt is not defined
aries-guardianship-agency    |     at Object.<anonymous> (/www/node_modules/jose/lib/help/rsa_primes.js:6:14)
aries-guardianship-agency    |     at Module._compile (module.js:653:30)
aries-guardianship-agency    |     at Object.Module._extensions..js (module.js:664:10)
aries-guardianship-agency    |     at Module.load (module.js:566:32)
aries-guardianship-agency    |     at tryModuleLoad (module.js:506:12)
aries-guardianship-agency    |     at Function.Module._load (module.js:498:3)
aries-guardianship-agency    |     at Module.require (module.js:597:17)
aries-guardianship-agency    |     at require (internal/module.js:11:18)
aries-guardianship-agency    |     at Object.<anonymous> (/www/node_modules/jose/lib/help/key_utils.js:9:23)
aries-guardianship-agency    |     at Module._compile (module.js:653:30)
aries-guardianship-agency    | [nodemon] app crashed - waiting for file changes before starting...```

TRO cannot get tdc_tro_id

This API was intended to allow the TRO to refresh the state of onetimekey
{GuardianshipEndpoint}/v2/transaction/{AgentId}/ids/

However, the TRO actually needs to be able to retrieve its tdc_tro_id Id for a given onetimekey value.

options:

  1. add db table that allows TRO to save state as communicated via basic message. we are currently using a db for transactions records so its easy to use. however, we may wish to get rid of the db once the correctness proof can be finalized
  2. add record to wallet. using the wallet for this kind of data is really beyond the design of the wallet. however, see point 1 above.
  3. Have AGA request this information from the TDC. This will require a change in the API and need to be careful the change does not result in dataleakage we do not want.

There is a work around:

  1. FSP sends the one time key value first
  2. TRO sends the one time key value second, and the return value from this call will return the tdc_tro_id ids.

(Low Priority) Rename controller module to webhook

To avoid overloading "controller" too much, let's change the name of the ControllerModule and the various files that are called agent.controller to use "webhook" instead. We can also change the url to v2/webhook (and ensure our env vars are updated everywhere to reflect that).

Make BasicMessage sends work in multitennent

Notes:
I tried to abstract the calling of the agent, whether single or multi, behind a caller interface: https://github.com/kiva/aries-controller/blob/main/src/caller/caller.interface.ts
caller.interface.ts
export const CALLER = 'CALLER';

export interface ICaller {

/**

Show more
https://github.com/kiva/aries-controller|kiva/aries-controllerkiva/aries-controller | Added by GitHub
10:00
Used like this: https://github.com/kiva/aries-controller/blob/main/src/issuer/issuer.service.ts#L30
issuer.service.ts
@Inject(CALLER) private readonly agentCaller: ICaller,
https://github.com/kiva/aries-controller|kiva/aries-controllerkiva/aries-controller | Added by GitHub
10:00
then you can use callAgent() https://github.com/kiva/aries-controller/blob/main/src/issuer/issuer.service.ts#L315
issuer.service.ts

but looking at

private async sendTransactionReportMessage(agentId: string, adminApiKey: string, connectionId: string,
- that can definetly be moved to use the caller interface
transaction.service.ts
private async sendTransactionReportMessage(agentId: string, adminApiKey: string, connectionId: string,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.