feat: implement ProvisionStorage in terms of subscription and consumer tables - #200
Merged
travis merged 10 commits intoMay 23, 2023
Merged
Conversation
next up, implement new provider store in terms of them
ProvisionStorage in terms of subscription and consumer tables
this is largely a practice exercise in getting Global Secondary Indexes working on our tables. required a bit of work in the test helpers to enable this
7 tasks
Contributor
Author
|
There seems to be general agreement about moving in this direction so I'm going to merge this into the main PR for review simplicity. |
travis
pushed a commit
that referenced
this pull request
Jul 18, 2023
Get `@web3-storage/access-api` handlers running in the `upload-api` service. This introduces two new DynamoDB tables to store "delegations" and "provisions". NB: I have a related PR in #200 that uses "consumers" and "subscriptions" tables rather than "provisions". This also adds a new Lambda to handle the email verification flow - I've brought some HTML utilities over from `@web3-storage/access-api` for this purpose and wired the handlers up to the same path they were at in the old service `/validate-email`. This is the part 2 of a larger project (started in storacha/w3up#790) to integrate the access service into the w3infra upload service, which will let us move operational details out of w3up, retire D1, consolidate our operations around AWS Lambdas, deprecate now-unused functionality like the voucher flows and generally streamline our UCAN handlers and the infrastructure that supports them. --------- Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
This file contains hidden or 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
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.
Implement the subscription and consumer tables specified by @Gozala in storacha/w3up#746 and use them to implement a new version of ProvisionStorage
This builds on a PR review from @Gozala that lays out some of the queries we will need to support with these new tables:
#194 (review)
This is configured to merge into the main "D1 to Dynamo" development branch - I'm in favor of going to production with this implementation of
ProvisionStoragerather than the one in that branch now.