bcgov / dts-vc-issuer-service

Digital Trust Verifiable Credential Issuer Service
Apache License 2.0
0 stars 11 forks source link

Add automation to register on Sovrin StagingNet #66

Closed esune closed 1 year ago

esune commented 3 years ago

The PR includes updates to the manage script that automate the provisioning of the agent to be performend on Sovrin StagingNet rather than BCovrin Test.

Following the same logic that was already in place, the new scripts will detect whether the agent is being started for the first time (by checking if an .env file is already present) and perform the following steps to provision a new agent:

At this point, if the user has executed ./manage start the agent will be restarted in write mode alongside all of the remaining services. The provisioning steps are only performed once on the first/clean start.

It is also possible to run ./manage provision before executing ./manage start to just start the agent in read only mode and register it on StagingNet and accept the TAA: this is useful, as an example, when starting for the first time using an agent that has previously been connected to BCovrin Test.

Alternatively, when migrating from an agent previously regsitered on BCovrin Test you can start from scratch by first executing ./manage rm.