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

add skip_ssrf_protection config #2696

Merged

Conversation

rajyan
Copy link
Contributor

@rajyan rajyan commented Sep 5, 2023

closes #2695

Looking at these issues, a lot of people are looking for a way to disable ssrf filter in testing.
#2695
arkadiyt/ssrf_filter#33
arkadiyt/ssrf_filter#59
#2573

I believe it might worth making skip_ssrf_protection configurable.

@rajyan rajyan force-pushed the skip-ssrf-protection-config branch from 4c8f61b to dd01745 Compare September 11, 2023 23:36
@rajyan rajyan force-pushed the skip-ssrf-protection-config branch from dd01745 to 0916696 Compare September 11, 2023 23:37
README.md Outdated
@@ -659,14 +659,15 @@ end
## Testing with CarrierWave

It's a good idea to test your uploaders in isolation. In order to speed up your
tests, it's recommended to switch off processing in your tests, and to use the
tests, it's recommended to switch off processing in your tests, disable SSRF protection, and to use the
Copy link
Member

Choose a reason for hiding this comment

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

Actually I don't recommend to do this. The users shouldn't do this without knowing what they're doing, unless they will be at risk.
Could you rephrase this part?

README.md Outdated Show resolved Hide resolved
… when necessary

Co-authored-by: Yohta Kimura <38206553+rajyan@users.noreply.github.com>
@mshibuya mshibuya merged commit c1f500a into carrierwaveuploader:master Dec 3, 2023
11 of 12 checks passed
@mshibuya
Copy link
Member

mshibuya commented Dec 3, 2023

Merged in, thank you!

@tomasdundacek
Copy link

Hi everyone, I have noticed that this feature has been long merged into master branch but not released yet. Do you have any plans on releasing this?

Thanks a lot for your work :)

@rajyan rajyan deleted the skip-ssrf-protection-config branch June 18, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Carrierwave download of external url
3 participants