question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@uppy/companion: Expose option to provide s3 provider options on runtime (key, secret, bucket, region) on runtime

See original GitHub issue

Hello 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amitrajput1992commented, Feb 1, 2021

Thanks for the update and effort. I ended up writing an uppy plugin that does this exact same thing. Keep up the good work!!

1reaction
goto-bus-stopcommented, Sep 28, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found