Repository navigation
ci: one-time workflow to re-permission existing rpm/ objects to public-read (#505) - #506
Merged
Merged
Conversation
…ects (#500, #505) publish-to-yum's `aws s3 sync --acl public-read` only re-permissions objects it re-uploads, so pre-existing RPMs (2.4.0..2.4.3) kept their private ACL and return 403 through CloudFront (#505). Add a workflow_dispatch maintenance job that sets public-read on every object under the rpm/ prefix via `aws s3api put-object-acl` — a pure ACL change that leaves object bytes, content-type, and metadata untouched. Defaults to dry_run; guards the prefix to rpm/; verifies the previously-403 URLs return 200 after applying. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Follow-up to #500/#501. The
publish-to-yumsync only re-permissions objects it re-uploads, so pre-existing RPMs (2.4.0…2.4.3) kept their private ACL and still return 403 through CloudFront — reported in #505.Adds a
workflow_dispatchmaintenance job that setspublic-readon every object under therpm/prefix viaaws s3api put-object-acl(pure ACL change — object bytes, content-type, and metadata untouched). Reuses the existingbuildenvironment +APT_S3_*secrets.Safeguards:
dry_rundefaults totrue(lists + counts, changes nothing).rpm/.repomd.xmlreturn 200.One-time op; kept in-tree so it's re-runnable if it recurs.
🤖 Generated with Claude Code
Note
Medium Risk
Manual workflow can bulk-change S3 object ACLs on production package storage using shared secrets; safeguards (rpm-only prefix, dry-run default) limit blast radius but a mistaken non-dry run still affects every listed object.
Overview
Adds a manual
workflow_dispatchjob (fix-rpm-acl.yml) to fix 403s on older RPMs thatpublish-to-yumnever re-uploaded, so they kept private S3 ACLs despite CloudFront servingpackages.redis.io(issues #500, #505).The workflow lists every object under a configurable
rpm/prefix (hard-guarded to that tree), optionally runs indry_runmode (default true), then appliespublic-readviaput-object-aclonly—no object bytes or metadata changes. It uses the existingbuildenvironment andAPT_S3_*secrets, parallelizes ACL updates, and on a real run curl-checks the reported broken URLs plusrepomd.xmlfor HTTP 200.Reviewed by Cursor Bugbot for commit 412f71c. Bugbot is set up for automated code reviews on this repo. Configure here.