Skip to content

ci(release-rpm): upload RPM objects with public-read ACL (fixes #500) - #501

Merged
fcostaoliveira merged 1 commit into
masterfrom
fix/release-rpm-public-read-acl
Jul 1, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
fix/release-rpm-public-read-acl

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jul 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

packages.redis.io/rpm/** returns 403 AccessDenied through CloudFront for repomd.xml and every package, across all distros (issue #500). The DEB repo, GPG key, and the rest of the CDN are fine — only the rpm/ tree is affected.

Root cause

The publish-to-yum job uploads the YUM repo with:

aws s3 sync ./repo "s3://.../rpm" --delete

Plain aws s3 sync writes objects with the default private ACL. The bucket behind packages.redis.io serves public reads through CloudFront via per-object public-read ACLs — so every .rpm and repodata/* object this job writes lands unreadable, and the CDN returns 403 for the whole rpm/ prefix.

The DEB pipeline is unaffected because deb-s3 defaults objects to public-read. This is the one behavioural difference between the two publish paths on the same bucket.

Fix

Add --acl public-read to the RPM sync so both pipelines write objects with the same visibility.

⚠️ Follow-up required (not fixable in CI alone)

aws s3 sync only 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 the APT_S3_* credentials:

aws s3 cp "s3://$APT_S3_BUCKET/rpm" "s3://$APT_S3_BUCKET/rpm" \
  --recursive --acl public-read --metadata-directive REPLACE

Longer term, a bucket policy granting s3:GetObject on arn:...:<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 shared rpm/ prefix.

🤖 Generated with Claude Code


Note

Cursor Bugbot is generating a summary for commit 7aefb54. Configure here.

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-ci

jit-ci Bot commented Jul 1, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@fcostaoliveira
fcostaoliveira merged commit 43942ec into master Jul 1, 2026
61 checks passed
@fcostaoliveira
fcostaoliveira deleted the fix/release-rpm-public-read-acl branch July 1, 2026 16:39
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]>
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