Skip to content

Restore Laravel 6 behavior to public visibility for local driver - #92

Merged
LukeTowers merged 5 commits into
wip/1.2from
local-driver-visibility
Jul 8, 2022
Merged

LukeTowers merged 5 commits into
wip/1.2from
local-driver-visibility

Conversation

@mjauvin

@mjauvin mjauvin commented Jul 4, 2022

Copy link
Copy Markdown
Member

Fixes wintercms/winter#503

@LukeTowers @bennothommo @jaxwilko

Here's my preferred solution to this.

Comment thread src/Filesystem/FilesystemManager.php Resolved
@LukeTowers

Copy link
Copy Markdown
Member

@driesvints if you have a moment do you recall or have a link to the reasoning behind changing the default from public to private for the local Flysystem driver in Laravel 9?

@driesvints

Copy link
Copy Markdown

@LukeTowers that got changed in Flysystem v3 so you'll have to ask them. Afaik it's a more safe and sensible default. You should always use the same user to handle files.

@LukeTowers

Copy link
Copy Markdown
Member

@driesvints I agree in theory that it's more safe default, the PHP user can access the files but the problem comes when the webserver user wants to fetch them to respond to requests, which is the default used by a few providers, ServerPilot & Cleavr for example.

Any recommendations for how to handle that use case?

@driesvints

Copy link
Copy Markdown

Not really sorry..

@LukeTowers

Copy link
Copy Markdown
Member

Thanks anyways :)

Comment thread src/Filesystem/FilesystemManager.php Resolved
Comment thread src/Filesystem/FilesystemManager.php Resolved
Comment thread src/Filesystem/FilesystemManager.php Resolved
Comment thread src/Filesystem/FilesystemManager.php Resolved
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.

5 participants