-
Notifications
You must be signed in to change notification settings - Fork 369
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
[Attestation Service] get_attestations endpoint, HA support for delivery receipts #5011
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aslawson
reviewed
Sep 9, 2020
packages/attestation-service/migrations/20200903211921-attestation-v3.js
Show resolved
Hide resolved
nambrot
reviewed
Sep 10, 2020
packages/attestation-service/migrations/20200903211921-attestation-v3.js
Show resolved
Hide resolved
packages/attestation-service/migrations/20200903211921-attestation-v3.js
Show resolved
Hide resolved
packages/attestation-service/migrations/20200903211921-attestation-v3.js
Outdated
Show resolved
Hide resolved
nambrot
reviewed
Sep 29, 2020
aslawson
reviewed
Sep 29, 2020
packages/attestation-service/migrations/20200924232226-attestation-v4.js
Show resolved
Hide resolved
packages/attestation-service/src/requestHandlers/attestation.ts
Outdated
Show resolved
Hide resolved
aslawson
approved these changes
Sep 29, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good. Some thoughts above, but nothing urgent.
This was referenced Mar 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
All delivery state is now persisted in the database. Supports HA setups with multiple Attestation Service instances.
Deliveries can be re-requested, regardless of their delivery status. It kicks off the next attempt, assuming retries are available, with the next provider.
Test attestation endpoint now accepts
provider
parameter to force provider to test:It also randomly generates a "salt" so that tests can be stored alongside regular attestations in the database, so they can share more code and be accessible via
get_attestations
.New endpoint
/get_attestations
to retrieve delivery info:Delivery info includes time taken to final delivery success or failure, in ms.
The
celocli identity:test-attestation-service
command now also uses the/get_attestations
endpoint to await a delivery receipt, so that validators have another way of testing that receipts are configured correctly.Other changes
attestation_service_healthy
for overall service healthDB_RECORD_EXPIRY_MINS
to set db record expiry, and now done on a timer, not when attestations happenMAX_DELIVERY_ATTEMPTS
. Delivery attempts now striped across providers, i.e try other provider next before retry with same providerattestation_requests_believed_delivered_sms
andattestation_requests_failed_to_deliver_sms
NODE_ENV=dev
allows signature and other checks to be skipped (do not run in production)Tested
Baklava validator.
Related issues
Backwards compatibility
Brief explanation of why these changes are/are not backwards compatible.