-
Notifications
You must be signed in to change notification settings - Fork 199
Self-hosted S3 doesn't work #139
Comments
@shea256 If we're going to be storing user self-hosted assets in a cloud provider (like dropbox) connected to a local instance of blockstack-core, does it make sense to spend time working around these issues? |
@larrysalibra I feel like S3 should still be an option for users. They might want to use that instead of Dropbox. That said, if we can get Dropbox support up sooner rather than later, we could always focus on that one. Why don't we create an issue for adding dropbox support? We can add a "login with dropbox" button and we can get an app-specific API key for GETs and PUTs. |
@shea256 I'm a bit confused. I was under the impression that once the blockstack-core REST API is ready, profile and profile assets (along with things that apps want to store) would be stored in a user store accessible via blockstack-core's REST API and backed by various cloud providers. If that's the case, both this web app and blockstack-core will need to talk to cloud storage providers? Wouldn't it be better to have this app talk to the local blockstack-core api and blockstack-core talk to the cloud providers (since it needs to do this anyways)? We can have this app provide an interface for acquiring credentials for various cloud providers and pass them back to the local blockstack-core instance. -- I agree S3 & Dropbox (among others) should options for users. Just want to make sure we're putting functionality in the right place. |
Can consider using: https://www.npmjs.com/package/aws-signature-v4 to generate a signature and upload directly using: |
temporarily removed s3 self hosting until we can get it working. 9bf2a89 |
Since we now have Dropbox self-hosting #141 , I'm pushing this off for the next release so that we can focus on other issues. |
The self-hosted S3 option for user profiles is currently broken because a valid date header isn't being sent with
PUT
requests:This issue on knox indicates that browserify strips the Date header as unsafe: Automattic/knox#299
knox prevents us from using the alternative
x-amz-date
(which doesn't get stripped by browserify).I've forked knox and spent some time modifying it to use
x-amz-date
instead, however I'm having trouble getting signatures to match.Additionally, since we've moved from electron to in-browser, users wishing to use the self-hosted S3 must add a CORS policy to their S3 bucket (assuming we can resolve the above issue). I'm currently using the following:
The text was updated successfully, but these errors were encountered: