trisacrypto / directory

TRISA implementation of the Global VASP Directory Service
https://vaspdirectory.net
MIT License
6 stars 5 forks source link

Add webhook delivery to certman #1131

Closed pdeziel closed 9 months ago

pdeziel commented 9 months ago

Scope of changes

This adds webhook delivery functionality to certman. If the VASP has a webhook URL then certman will attempt to deliver pkcs12 passwords and certificates by webhook, in addition to emailing them. If the VASP has the NoEmailDelivery flag set then the password and certificate emails are not sent, unless the webhook delivery fails.

Certman now has a backoff configuration for webhook delivery. If the webhook request is unsuccessful then by default it retries after the backoff period up to the maximum number of retries before giving up.

Type of change

Acceptance criteria

Retry logic should be checked for correctness and we may need to tag the trisa repo to ensure that the dependency is stable.

Author checklist

Reviewer(s) checklist