openwallet-foundation / acapy-endorser-service

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

Add unique index to connections model #99

Closed esune closed 2 months ago

esune commented 5 months ago

The conenctions model does not enforce a primary key on the connection id. This causes multiple conenctions with the same id to be - potentially - stored in the database, breaking functionality.

Example: ACA-Py sends a webhook for a new connection, and receives a 500 error as a response. It will try again to deliver the webhook for several times during which the endorser may store new records with the same id.