openwallet-foundation / acapy-endorser-service

endorser-service
https://wiki.hyperledger.org/display/aries
Apache License 2.0
6 stars 11 forks source link

Granular configuration of auto-endorsement #34

Closed Gavinok closed 1 year ago

Gavinok commented 1 year ago

This pull request resolves #32

The endorser service supports auto-endorsing specific types of transaction, however it is not designed to support more fine-grained control mechanisms.

Here we add a new /allow/ endpoint which can add to, delete from, and get a list of transactions which will be auto-endorsed. There is a list for:

When any of these lists are updated all pending transactions will be compared and if a match between one of these lists and the pending transactions is found the transaction will be endorsed.

2023-09-27_16-39-56

In addition, a new configuration setting ENDORSER_REJECT_BY_DEFAULT has been introduced to control whether transactions that do not match any of the allow lists are rejected, or left pending by default

Currently remaining work to be done: