Skip to content

ci(fix-rpm-acl): hard-scope ACL maintenance to memtier objects only - #509

Merged
fcostaoliveira merged 1 commit into
masterfrom
ci/acl-memtier-only
Jul 2, 2026
Merged

fcostaoliveira merged 1 commit into
masterfrom
ci/acl-memtier-only

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

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-acl maintenance workflow so it only ever sets public-read on memtier-benchmark RPM keys in the shared packages.redis.io rpm/ bucket, instead of everything under a configurable prefix.

The workflow drops the prefix dispatch input and always lists rpm/, 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.

…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]>
@fcostaoliveira
fcostaoliveira merged commit ec3d55f into master Jul 2, 2026
@fcostaoliveira
fcostaoliveira deleted the ci/acl-memtier-only branch July 2, 2026 11:02
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