@uppy/companion: Expose option to provide s3 provider options on runtime (key, secret, bucket, region) on runtime
See original GitHub issueHello everyone, Currently, the companion app can connect to only a single S3 compatible endpoint which is initialized once per run. While this works for most scenarios, it doesn’t work in cases where the uploads can be routed to different buckets in S3 compatible storages with different access_key/access_secret(s).
This happens in cases where the upload [bucket/accessKey/accessSecret] is defined by information stored inside a DB.
This can be implemented by exposing a function getProviderConfig
similar to how getKey
is exposed. This would internally construct a new S3 client object using the config returned by getProviderConfig
func and use that to generate presigned URL instead of the default one.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
AWS S3
The @uppy/aws-s3 plugin can be used to upload files directly to an S3 bucket. Uploads can be signed using either Companion or a...
Read more >uppy
The CDN for uppy. ... 33, "node_modules/engine.io-parser/lib/keys.js", ... 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
Read more >qandamaster470.xml
https://www.chegg.com/homework-help/questions-and-answers/consider-closed-surface-s-consisting-graph-z-1-x2-y2-z-2-0-also-unit-disc-xy-plane-give-su- ...
Read more >Providing s3.getKey option when running Companion in ...
I'm trying to run companion in standalone mode with options supplied as a JSON file. But one particular option that I'm interested in ......
Read more >Incident Response
Not all malicious and suspicious indicators are displayed. Get your own cloud service or the full version to view all details. Suspicious Indicators...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the update and effort. I ended up writing an uppy plugin that does this exact same thing. Keep up the good work!!
@ifedapoolarewaju might be able to correct me when he’s back from vacation in a few days, but I think for remote providers it was going to be worked on next month (October) already. We had some Transloadit customers ask about it as well.
For regular S3 uploads with
@uppy/aws-s3
, I think a custom signing endpoint is actually the best approach. But for S3 Multipart uploads with@uppy/aws-s3-multipart
, this feature would be required to support importing files from other providers.