Skip to content

feat: implement ProvisionStorage in terms of subscription and consumer tables - #200

Merged
travis merged 10 commits into
feat/dynamo-delegations-provisionsfrom
feat/dynamo-subscriptions-consumers
May 23, 2023
Merged

feat: implement ProvisionStorage in terms of subscription and consumer tables#200
travis merged 10 commits into
feat/dynamo-delegations-provisionsfrom
feat/dynamo-subscriptions-consumers

Conversation

@travis

@travis travis commented May 18, 2023

Copy link
Copy Markdown
Contributor

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 ProvisionStorage rather than the one in that branch now.

@travis
travis changed the base branch from main to feat/dynamo-delegations-provisions May 18, 2023 19:23
@travis travis changed the title feat: implement ProvisionStorage in terms of subscription and consumer tables feat: implement ProvisionStorage in terms of subscription and consumer tables May 19, 2023
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
@seed-deploy
seed-deploy Bot temporarily deployed to pr200 May 23, 2023 23:00 Inactive
@travis

travis commented May 23, 2023

Copy link
Copy Markdown
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
travis merged commit aafd061 into feat/dynamo-delegations-provisions May 23, 2023
@travis
travis deleted the feat/dynamo-subscriptions-consumers branch May 23, 2023 23:01
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>
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.

1 participant