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

fix: add support for private upload providers #19863

Merged
merged 3 commits into from Mar 22, 2024

Conversation

Bassel17
Copy link
Member

What does it do?

  • Signs urls when they are coming from a private upload provider

Why is it needed?

  • users can't export and transfer files from private upload providers

How to test it?

  • create a private upload provider and attempt to export, import and transfer
  • make sure that normal transfer work the same and are not affected by the changes

you can follow the example provided in this issue #17571

Related issue(s)/PR(s)

fix #17571

@Bassel17 Bassel17 added pr: fix This PR is fixing a bug source: core:data-transfer Source is core/data-transfer package labels Mar 21, 2024
@Bassel17 Bassel17 added this to the 4.21.1 milestone Mar 21, 2024
Copy link

vercel bot commented Mar 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ❌ Failed (Inspect) Mar 21, 2024 10:43am

Copy link
Member

@Convly Convly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit surprised that the upload plugin doesn't handle the signature itself 🙁

@innerdvations
Copy link
Contributor

I'm a bit surprised that the upload plugin doesn't handle the signature itself 🙁

Yeah, if this fix works for DTS I think we can move ahead with it, but we should add to the backlog to fix it globally if possible

@Bassel17
Copy link
Member Author

I'm a bit surprised that the upload plugin doesn't handle the signature itself 🙁

it does, just at a different level, we only use the upload from the plugin itself,
fetching and getting the file itself we get based on the file entity data, in which we have a url that is not signed

Copy link
Contributor

@innerdvations innerdvations left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM but won't have time to QA until tomorrow

Copy link
Member

@christiancp100 christiancp100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM! Good job!

Copy link
Member

@Convly Convly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM code-wise

@derrickmehaffy
Copy link
Member

FYI for functional QA testing there is a private S3 bucket we use in our internal AWS for specifically testing this stuff, take a look in the company shared password manager.

@Bassel17 Bassel17 merged commit 6092b76 into develop Mar 22, 2024
30 of 31 checks passed
@Bassel17 Bassel17 deleted the fix/dts-support-private-providers branch March 22, 2024 10:26
@echoes-hq echoes-hq bot added the echoes/type: bug Effort to correct undesirable or incorrect behavior label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes/type: bug Effort to correct undesirable or incorrect behavior pr: fix This PR is fixing a bug source: core:data-transfer Source is core/data-transfer package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strapi Export/Transfer when using a private upload provider will fail to fetch files and stall
5 participants