Repository navigation
feat(storage): S3 storage and temporary signed screenshot URLs #412
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ca3ebcc
build(deps): add league/flysystem-aws-s3-v3 for S3 storage
vermorag 87e211f
feat(storage): S3 disks and temporary signed URLs for screenshots
vermorag a0dc9f2
feat(frontend): load screenshots by temporary URLs
vermorag 78e1d8a
docs(storage): local disk and S3 configuration, URLs and retention
vermorag c56bff1
feat(attachments): limit temporary links to 7 days on every disk
vermorag f37af91
feat(storage): throttle the public signed screenshot routes
vermorag f68620a
docs(storage): 7-day attachment link limit and screenshot rate limit
vermorag 27afb01
fix(attachments): issue temporary URLs only for GOOD attachments
vermorag 208a150
fix(http): trust the bundled Caddy as proxy
vermorag 577fcb0
docs(storage): presigned URLs are signed for AWS_ENDPOINT
vermorag 6d12276
fix(caddy): pass only the resolved client IP to Octane
vermorag ccd1b4c
fix(reports): stream the report attachment instead of loading it
vermorag d139cca
fix(attachments): quarantine attachments that fail hash verification
vermorag 1a28c88
fix(reports): fail instead of mailing a truncated report
vermorag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?php | ||
|
|
||
| namespace App\Helpers; | ||
|
|
||
| class StorageHelper | ||
| { | ||
| /** | ||
| * Whether the disk keeps files on the local filesystem (PVC / storage/app) | ||
| * rather than on a remote object storage such as S3. | ||
| * | ||
| * Decided by the configured driver, so it stays correct under Storage::fake(). | ||
| */ | ||
| public static function isLocal(?string $disk = null): bool | ||
| { | ||
| $disk ??= config('filesystems.default'); | ||
|
|
||
| return config("filesystems.disks.$disk.driver") === 'local'; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.