Conversation
Contributor
Reviewer's GuideThis PR reapplies the new storage configuration by refactoring the domain-storage script to use Django’s storages API, consolidating all S3 settings into a STORAGES mapping, renaming PULP env vars to nested STORAGES keys, and removing deprecated parameters. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey @decko - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `deploy/clowdapp.yaml:139` </location>
<code_context>
+ "access_key": "$S3_ACCESS_KEY_ID",
+ "secret_key": "$S3_SECRET_ACCESS_KEY",
+ "bucket_name": "$S3_BUCKET_NAME",
+ "default_acl": "@none None",
+ "signature_version": "s3v4",
+ "addressing_style": "path",
</code_context>
<issue_to_address>
The value '@none None' for 'default_acl' may not be recognized by all S3 backends.
Verify that '@none None' is a supported value for 'default_acl' with your S3 backend to avoid permission issues or errors.
</issue_to_address>
### Comment 2
<location> `deploy/clowdapp.yaml:135` </location>
<code_context>
+ "BACKEND": "storages.backends.s3boto3.S3Boto3Storage",
+ "OPTIONS": {
+ "endpoint_url": "http://${S3_HOSTNAME}:9000",
+ "region_name": "east",
+ "access_key": "$S3_ACCESS_KEY_ID",
+ "secret_key": "$S3_SECRET_ACCESS_KEY",
</code_context>
<issue_to_address>
The region name 'east' may not match AWS region naming conventions.
Standard AWS region names like 'us-east-1' should be used to ensure compatibility with S3 backends and libraries.
</issue_to_address>
<suggested_fix>
<<<<<<< SEARCH
"region_name": "east",
=======
"region_name": "us-east-1",
>>>>>>> REPLACE
</suggested_fix>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| "access_key": "$S3_ACCESS_KEY_ID", | ||
| "secret_key": "$S3_SECRET_ACCESS_KEY", | ||
| "bucket_name": "$S3_BUCKET_NAME", | ||
| "default_acl": "@none None", |
Contributor
There was a problem hiding this comment.
question (bug_risk): The value '@none None' for 'default_acl' may not be recognized by all S3 backends.
Verify that '@none None' is a supported value for 'default_acl' with your S3 backend to avoid permission issues or errors.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
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.
This reverts commit 90373d9.
Summary by Sourcery
Reapply storage configuration migration in clowdapp.yaml by consolidating S3 settings into a unified STORAGES dict, updating the domain-storage script to leverage Django storages options, and renaming environment variables to follow the PULP_STORAGES__default__… scheme.
Enhancements: