Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move discovery VP validation to background process to prevent errors #3483

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

woutslakhorst
Copy link
Member

fixes #3468

any did:web or revocation downtime will not block discovery entries. Entries are invalid until VerifyVP succeeds at least once. After that a revocation checker will remove entries when a VC is revoked.

Only downside is a full table scan on presentation records every 10 minutes. If this becomes a problem (eg > 100k results) then Search has to verify the VPs and delete entries as a side effect.... (or some elaborate eventing thing from revocationList to discovery service.)

…blocking the LC count\nadded background revocation check
@woutslakhorst woutslakhorst self-assigned this Oct 14, 2024
@@ -410,7 +479,7 @@ func (s *sqlStore) setPresentationRefreshError(serviceID string, subjectID strin
}

if refreshErr == nil {
// a delete
// a deletePresentationRecord
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace all error?

@woutslakhorst woutslakhorst merged commit 7f2e6dd into master Oct 16, 2024
8 of 9 checks passed
@woutslakhorst woutslakhorst deleted the feature/3468_discovery_background_validation branch October 16, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If revocation status list is down, discovery registration fails
2 participants