Repository navigation
ci(fix-rpm-acl): hard-scope ACL maintenance to memtier objects only - #509
Merged
Merged
Conversation
…cts only The rpm/ bucket is SHARED with other Redis products (redis, redis-stack-server, redis-tools). The previous version set public-read on every object under rpm/, which re-permissioned other teams' packages too. Rewrite so the workflow can NEVER touch a non-memtier object: - Scope by basename allowlist (memtier-benchmark / -debuginfo / -debugsource .rpm), not by prefix — memtier and other products share the same rpm/<distro>/<arch>/ directories, so a path scope is insufficient. - Remove the free-form `prefix` input (removes the widening vector). - Three independent hard guards abort the run if the target set contains anything outside memtier: allowlist re-check, foreign-product denylist, and a memtier-basename subset check. - Verify step asserts only on memtier URLs. Shared repodata and other products' RPMs are intentionally out of scope. 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.
Rescopes the rpm ACL maintenance workflow so it can never touch any non-memtier object in the shared
rpm/bucket (redis, redis-stack-server, redis-tools live there too). Basename allowlist + foreign-product denylist + subset check, all hard-aborting. Removes the free-form prefix input. Verified the filter locally: memtier rpms in, everything else out.Note
Medium Risk
Still mutates production S3 ACLs with shared-bucket credentials, but the change materially reduces blast radius by refusing non-memtier objects and removing operator-controlled prefix widening.
Overview
Narrows the
fix-rpm-aclmaintenance workflow so it only ever setspublic-readon memtier-benchmark RPM keys in the sharedpackages.redis.iorpm/bucket, instead of everything under a configurable prefix.The workflow drops the
prefixdispatch input and always listsrpm/, then filters with a basename allowlist (MEMTIER_RE, including debuginfo/debugsource). Three guards hard-abort if the target set includes non-memtier keys or names from a foreign Redis product denylist. Logging and dry-run messaging now refer to the memtier-only count, not the whole tree.The post-run HTTP check no longer hits
repodata/repomd.xml—only sample memtier package URLs.Reviewed by Cursor Bugbot for commit 959ca27. Bugbot is set up for automated code reviews on this repo. Configure here.