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

feat!: fold access-api into upload-api #194

Merged
merged 63 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8d12252
feat: implement DelegationsStorage on top of DynamoDB and S3
travis Apr 20, 2023
2363b9a
fix: make linter happy
travis Apr 20, 2023
bf3a949
wip: work toward provisions table
travis May 4, 2023
201e562
feat: get provisions working
travis May 5, 2023
96f7765
first pass at two-table provisions design
travis May 10, 2023
7f6e0a6
initial pass at updating types
travis May 16, 2023
9836d80
update test types
travis May 16, 2023
db9198c
get all types checking
travis May 16, 2023
440b138
get tests green!
travis May 16, 2023
f8e3754
get service running with new providers
travis May 17, 2023
c97204b
remove some DONE TODOs
travis May 17, 2023
fcebd25
get tests from w3up running
travis May 17, 2023
aafd061
feat: implement `ProvisionStorage` in terms of subscription and consu…
May 23, 2023
4854de0
post subscriptions/consumer merge work
travis May 23, 2023
8db6068
remove provisions table
travis May 24, 2023
e6ee59c
feat: add some new queries for metrics/blocking
travis May 26, 2023
390071e
Merge branch 'main' into feat/dynamo-delegations-provisions
travis May 30, 2023
939f8f6
feat: stop storing delegations in a bespoke bucket (#201)
May 31, 2023
9aa55a8
fix some compilation errors
travis Jun 1, 2023
3fc807d
update tests
travis Jun 1, 2023
8663aa2
updates from @gozala's review
travis Jun 2, 2023
5ca2c30
tweak delegations table config
travis Jun 2, 2023
1d457c5
chore: tweak dynamo table specs
travis Jun 6, 2023
1a9e0d5
fix: store delegations in a bucket, for now
travis Jun 6, 2023
769ce49
fix: use released packages!
travis Jun 8, 2023
14fa02d
fix: update package-lock
travis Jun 8, 2023
572322d
fix: more package-lock stuff
travis Jun 8, 2023
cd70612
fix: local linting errors
travis Jun 8, 2023
c7093c4
fix: bump CI node version to 18
travis Jun 8, 2023
b9da5a9
fix: revert to capabilities 5
travis Jun 8, 2023
e76ca4c
fix: bump capabilities dep
travis Jun 8, 2023
0f06f6e
fix: upgrade capabilities package to fix CI
travis Jun 9, 2023
3d2f821
fix: use jsx extensions on jsx files
travis Jun 9, 2023
5ce2e30
fix: ensure fetch exists for our email validation logic
travis Jun 10, 2023
f23f90f
fix: add line to debug email in PR
travis Jun 12, 2023
5d786fc
fix: move email debug messages
travis Jun 12, 2023
2f0b822
fix: more email logging
travis Jun 12, 2023
833ae2c
fix: set postmark token manually
travis Jun 12, 2023
767104f
fix: import Response too
travis Jun 12, 2023
4b03c2a
fix: wrap lambda responses
travis Jun 12, 2023
ec6150e
fix: more quick hacks to get email validation working
travis Jun 12, 2023
a229e6e
fix: remove console.warns and hardcoded postmark token
travis Jun 12, 2023
c585403
fix: wire up environment variables properly
travis Jun 13, 2023
2e0dada
fix: log error
travis Jun 13, 2023
0f9992b
fix: use existing R2 env vars when possible
travis Jun 13, 2023
2694ea5
chore: add debugging lines to figure out what's going on in lambda
travis Jun 13, 2023
5a3e8fa
chore: one more debug line
travis Jun 13, 2023
7821d40
chore: make sure delegation bucket name ends up in the env
travis Jun 13, 2023
d6cc545
fix: convert Infinity expiration to null
travis Jun 13, 2023
21c9380
feat: add new tables to permissions array
travis Jun 16, 2023
e7ced77
fix: log errors from space allocator
travis Jun 16, 2023
c75ee37
feat: use MailSlurp to test full authorization flow
travis Jun 20, 2023
1a6b497
fix: updates from my review
travis Jun 20, 2023
e68c414
chore: linter prefers ternary
travis Jun 20, 2023
a4c656f
fix: translate headers from Response format to Lambda format
travis Jun 21, 2023
fcea928
fix: updates from PR review
travis Jun 26, 2023
d29b944
fix: remove experimental queries and interfaces
travis Jun 27, 2023
86166d8
feat: initial tooling for migrating D1 data to Dynamo (#204)
Jul 13, 2023
b02587c
fix: linter appeasment
travis Jul 13, 2023
469ae81
feat: add d1 -> dynamo migration verification script (#215)
Jul 14, 2023
0aab325
fix: sooth the linter's tired eyes
travis Jul 14, 2023
18f2381
fix: bump mailslurp timeout
travis Jul 17, 2023
ab1f582
fix: add comment by PR request
travis Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
EIPFS_INDEXER_SQS_ARN = 'arn:aws:sqs:us-west-2:505595374361:staging-ep-indexer-topic'
EIPFS_INDEXER_SQS_URL = 'https://sqs.us-west-2.amazonaws.com/505595374361/staging-ep-indexer-topic'

# Following variables are only required to run integration tests
INTEGRATION_TESTS_UCAN_KEY = ''
INTEGRATION_TESTS_PROOF = ''

ACCESS_SERVICE_DID = ''
UPLOAD_API_DID = ''
ACCESS_SERVICE_URL = ''
POSTMARK_TOKEN = ''
R2_ACCESS_KEY_ID = ''
R2_CARPARK_BUCKET_NAME = ''
R2_DUDEWHERE_BUCKET_NAME = ''
Expand All @@ -26,3 +23,10 @@ R2_SATNAV_BUCKET_NAME = ''
R2_SECRET_ACCESS_KEY = ''
R2_UCAN_BUCKET_NAME = ''
SATNAV_BUCKET_NAME = ''

# Following variables are only required to run integration tests

# Mailslurp
MAILSLURP_API_KEY = ''
MAILSLURP_TIMEOUT = '120000'

2 changes: 1 addition & 1 deletion .github/workflows/fetch-metrics-for-space.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version: 16
node-version: 18
cache: 'npm'
- run: npm ci
- name: Run job
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version: 16
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run lint
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ AWS ARN for Elastic IPFS SQS indexer used to request Elastic IPFS to index given

AWS URL for Elastic IPFS SQS indexer used to request Elastic IPFS to index given CAR files.

#### `POSTMARK_TOKEN`

Postmark API token, which is used by the email verification system to send emails.

#### `MAILSLURP_API_KEY`

API token for [Mailslurp](https://www.mailslurp.com/), which is used in [integration tests](./test/integration.test.js). To invalidate or refresh tokens, head to the [Mailslurp dashboard](https://app.mailslurp.com/dashboard/).

### Secrets

Set production secrets in aws SSM via [`sst secrets`](https://docs.sst.dev/config#sst-secrets). The region must be set to the one you deploy that stage to
Expand Down
Loading