bcgov / DITP-DevOps

Digital Identity and Trust Program Team's DevOps Documentation Repository
Apache License 2.0
2 stars 5 forks source link

SPIKE: manual connection to Endorser for tenants #110

Closed esune closed 10 months ago

esune commented 1 year ago

As part of our plan to move Traction to production use, we need the process of connecting to an endorser to be:

  1. configurable: each tenant will decide which endorser they want to connect to, based on permissions (https://github.com/bcgov/traction/issues/681)
  2. controllable: the endorser will be able to gate access to functionality based on allow-lists (https://github.com/hyperledger/aries-endorser-service/issues/32)

As a mitigation plan for #2 while the solution is implemented, the use of NetworkPolicies to limit ingress traffic to the Endorser instances. The work is being tracked here: https://github.com/bcgov/DITP-DevOps/issues/100 A concern being raised is this this approach would require private endpoints to be published to the ledger, since the discovery of the endorser agent happens by public DID, and this would not be desirable.

A stop-gap option that could allow us to move forward without having to implement temporary ad-hoc patches, would be to manually set-up the connection to the endorser agent, since this is a one-time procedure and it will likely only be necessary for one or two agents at most.

The ticket is to evaluate and validate that this approach would work and be a feasible temporary alternative in production until the granular endorser configuration work is completed and deployed.

WadeBarnes commented 12 months ago

Scripts to automate the manual connection between author and endorser can be found here:

The scripts are well documented and contain links to the "official" documentation on the subject. These can be used, at least, to inform the process. The scripts initiate the connection between the author and endorser and then configure the endorser settings at the connection level, allowing the settings at the global level to remain manual/private.

esune commented 10 months ago

Closing, done as part of https://github.com/bcgov/traction/issues/797