Add Cloudflare Containers provider prototype#11
Draft
luisdalmolin wants to merge 11 commits into
Draft
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Current scope
This is an experimental web-only prototype. Workers, Reverb, VPC, links other than one D1 database and one R2 bucket, AWS roles and permissions, deployment scripts, and RemoteEnvVault are intentionally unsupported.
The Laravel application must install erimeilis/laravel-cloudflare-d1, configure its d1 database connection, provide a scoped CLOUDFLARE_D1_API_TOKEN through the runtime environment file, and run the standard Laravel cache table migration.
Basic database-cache operations such as get, put, remember, add, and forget use D1. Cache tags are not supported. The driver's buffered transaction model is not compatible with cache increments, decrements, or atomic locks; applications needing those operations should use a Redis-compatible cache.
The Laravel application must install league/flysystem-aws-s3-v3 and provide bucket-scoped AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values through the runtime environment file. The component configures the standard s3 disk against the linked R2 bucket. Jurisdiction-specific endpoints and public bucket URLs can be overridden through normal Laravel environment variables.
Verification
No live Cloudflare resources were created while validating this branch.