-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Clean up deprecated behaviors from the S3BotoStorage #636
Conversation
@jschneier Any thoughts on this? If you're onboard, I would be really nice to clean up the AWS_DEFAULT_ACL warnings. Right now it floods the test output of my projects. |
I have rebased and updated to handle all newly deprecated features. The new changelog entry is:
|
The ACL deprecation warnings produced by S3BotoStorage can be a false positives and create _a lot_ of noise. I suggest the project move forward with removing these features as scheduled. Dropping the deprecated behavior now means: The minimum supported version of boto3 is now 1.4.4. The S3Boto3Storage backend no longer accepts the argument acl. Use the ACL key in AWS_S3_OBJECT_PARAMETERS instead. The S3Boto3Storage backend no longer accepts the argument bucket. Use bucket_name or the setting AWS_STORAGE_BUCKET_NAME instead. The S3Boto3Storage backend no longer automatically creates the bucket. Doing so had encouraged using overly broad credentials. As a result, the AWS_BUCKET_ACL setting has been removed. The S3Boto3Storage backend no longer not longer supports the settings AWS_DEFAULT_ACL, AWS_REDUCED_REDUNDANCY and AWS_S3_ENCRYPTION. They have been removed in favor of the AWS_S3_OBJECT_PARAMETERS setting. Using AWS_S3_OBJECT_PARAMETERS allows for full control over these S3 parameters. The S3Boto3Storage backend no longer supports the undocumented AWS_PRELOAD_METADATA setting.
Rebased 🙂 |
These were some very breaking changes that were release under a minor release, so have triggered breakage on lots of pipelines where I had pinned dependencies. I'd appreciate if you could publish a major release (rather than minor) if there's going to be large breaking changes and drops of so many features. |
Now that At this point, I've lost track of where to look or how to figure it out. |
I will add a link to the Boto3 docs. The method of uploading is to use
Yeah, I went back and forth on this. I'm not a huge fan of semantic versioning. If this library was just the one backend I definitely would have but its really difficult and unwieldy to work with. If you're not already doing this, I strongly recommend pinning to the exact version and using something like dependabot to help keep track of upgrade releases. |
Sorry for the churn, I would be very surprised if there is something similar in the future. I've wanted to drop some of this stuff since I first forked a very long time ago. |
That's regrettably, not an options for me. I already use But yeah, I'll probably pin the exact version (or even 1.9.1, since I still have to work around dropped features which are critical to me). |
The ACL deprecation warnings produced by S3BotoStorage can be a false positives and create _a lot_ of noise. I suggest the project move forward with removing these features as scheduled. Dropping the deprecated behavior now means: The minimum supported version of boto3 is now 1.4.4. The S3Boto3Storage backend no longer accepts the argument acl. Use the ACL key in AWS_S3_OBJECT_PARAMETERS instead. The S3Boto3Storage backend no longer accepts the argument bucket. Use bucket_name or the setting AWS_STORAGE_BUCKET_NAME instead. The S3Boto3Storage backend no longer automatically creates the bucket. Doing so had encouraged using overly broad credentials. As a result, the AWS_BUCKET_ACL setting has been removed. The S3Boto3Storage backend no longer not longer supports the settings AWS_DEFAULT_ACL, AWS_REDUCED_REDUNDANCY and AWS_S3_ENCRYPTION. They have been removed in favor of the AWS_S3_OBJECT_PARAMETERS setting. Using AWS_S3_OBJECT_PARAMETERS allows for full control over these S3 parameters. The S3Boto3Storage backend no longer supports the undocumented AWS_PRELOAD_METADATA setting.
The S3Boto3Storage backend no longer accepts the argument bucket. Use bucket_name or the setting AWS_STORAGE_BUCKET_NAME instead: jschneier/django-storages#636
…107) The S3Boto3Storage backend no longer accepts the argument bucket. Use bucket_name or the setting AWS_STORAGE_BUCKET_NAME instead: jschneier/django-storages#636
The ACL deprecation warnings produced by S3BotoStorage can be a false positives and create a lot of noise. I suggest the project move forward with removing these features as scheduled. Dropping the
deprecated behavior now means:
The minimum supported version of boto3 is now 1.4.4.
The
S3Boto3Storage
backend no longer accepts the argumentacl
. Use theACL
key inAWS_S3_OBJECT_PARAMETERS
instead.The
S3Boto3Storage
backend no longer accepts the argumentbucket
. Usebucket_name
or the settingAWS_STORAGE_BUCKET_NAME
instead.The
S3Boto3Storage
backend no longer automatically creates the bucket. Doing so had encouraged using overly broad credentials. As a result, theAWS_BUCKET_ACL
setting has been removed.The
S3Boto3Storage
backend no longer not longer supports the settingsAWS_DEFAULT_ACL
,AWS_REDUCED_REDUNDANCY
andAWS_S3_ENCRYPTION
. They have been removed in favor of theAWS_S3_OBJECT_PARAMETERS
setting. UsingAWS_S3_OBJECT_PARAMETERS
allows for full control over these S3 parameters.The
S3Boto3Storage
backend no longer supports the undocumentedAWS_PRELOAD_METADATA
setting.