Repository navigation
ci(release-rpm): upload RPM objects with public-read ACL (fixes #500) - #501
Merged
Merged
Conversation
The publish-to-yum job uploaded the YUM repo with a plain `aws s3 sync ./repo s3://.../rpm --delete`, which writes objects with the default private ACL. The bucket behind packages.redis.io serves reads through CloudFront via per-object public-read ACLs, so every rpm/* object landed unreadable and the CDN returned 403 AccessDenied for repomd.xml and all packages across every distro (issue #500). The DEB pipeline is unaffected because deb-s3 defaults objects to public-read. Add `--acl public-read` to the RPM sync so the two pipelines write objects with the same visibility. Note: this prevents recurrence but does not retroactively fix objects already uploaded private (sync skips unchanged files); the existing rpm/ tree needs a one-time `aws s3 cp --recursive --acl public-read --metadata-directive REPLACE` reset. Co-Authored-By: Claude Opus 4.8 <[email protected]>
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
fcostaoliveira
added a commit
that referenced
this pull request
Jul 1, 2026
…501, fixes #500) (#502) Backport of #501 to the 2.4 release branch. Releases are cut from this branch, so without the ACL fix here the next 2.4.x release would re-run `aws s3 sync ./repo s3://.../rpm --delete` with the default private ACL and re-break packages.redis.io/rpm/** with 403 AccessDenied. Add `--acl public-read` so RPM objects match the DEB pipeline (deb-s3 defaults to public-read) and stay readable through CloudFront. Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Jul 2, 2026
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.
Problem
packages.redis.io/rpm/**returns403 AccessDeniedthrough CloudFront forrepomd.xmland every package, across all distros (issue #500). The DEB repo, GPG key, and the rest of the CDN are fine — only therpm/tree is affected.Root cause
The
publish-to-yumjob uploads the YUM repo with:Plain
aws s3 syncwrites objects with the default private ACL. The bucket behindpackages.redis.ioserves public reads through CloudFront via per-objectpublic-readACLs — so every.rpmandrepodata/*object this job writes lands unreadable, and the CDN returns 403 for the wholerpm/prefix.The DEB pipeline is unaffected because
deb-s3defaults objects topublic-read. This is the one behavioural difference between the two publish paths on the same bucket.Fix
Add
--acl public-readto the RPM sync so both pipelines write objects with the same visibility.aws s3 synconly re-uploads changed files, so this does not retroactively fix objects already uploaded private. The existing tree needs a one-time reset by someone with theAPT_S3_*credentials:Longer term, a bucket policy granting
s3:GetObjectonarn:...:<bucket>/rpm/*would make public read prefix-wide and immune to any single job forgetting--acl— worth considering given this job round-trips and--deletes the sharedrpm/prefix.🤖 Generated with Claude Code
Note
Cursor Bugbot is generating a summary for commit 7aefb54. Configure here.