Skip to content

ci: one-time workflow to re-permission existing rpm/ objects to public-read (#505) - #506

Merged
fcostaoliveira merged 1 commit into
masterfrom
ci/fix-rpm-acl
Jul 2, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
ci/fix-rpm-acl

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #500/#501. The publish-to-yum sync 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_dispatch maintenance job that sets public-read on every object under the rpm/ prefix via aws s3api put-object-acl (pure ACL change — object bytes, content-type, and metadata untouched). Reuses the existing build environment + APT_S3_* secrets.

Safeguards:

  • dry_run defaults to true (lists + counts, changes nothing).
  • Prefix guarded to rpm/.
  • Post-apply step verifies the exact 403 URLs from RPM repo still getting access denied #505 (2.4.0/el9, 2.4.3/el8) plus 2.4.4 and repomd.xml return 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_dispatch job (fix-rpm-acl.yml) to fix 403s on older RPMs that publish-to-yum never re-uploaded, so they kept private S3 ACLs despite CloudFront serving packages.redis.io (issues #500, #505).

The workflow lists every object under a configurable rpm/ prefix (hard-guarded to that tree), optionally runs in dry_run mode (default true), then applies public-read via put-object-acl only—no object bytes or metadata changes. It uses the existing build environment and APT_S3_* secrets, parallelizes ACL updates, and on a real run curl-checks the reported broken URLs plus repomd.xml for HTTP 200.

Reviewed by Cursor Bugbot for commit 412f71c. Bugbot is set up for automated code reviews on this repo. Configure here.

…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]>
@fcostaoliveira
fcostaoliveira merged commit 2d1c678 into master Jul 2, 2026
@fcostaoliveira
fcostaoliveira deleted the ci/fix-rpm-acl branch July 2, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant