RANGER-5719: Shared partition-plan library and SPIFFE header auth utilities - #1137
Open
ramackri wants to merge 4 commits into
Open
RANGER-5719: Shared partition-plan library and SPIFFE header auth utilities#1137ramackri wants to merge 4 commits into
ramackri wants to merge 4 commits into
Conversation
ramackri
pushed a commit
to ramackri/ranger
that referenced
this pull request
Aug 6, 2026
Wire PluginHeaderAuthConfig into RangerAuditServerDestination so plugins send X-Spiffe-Id on audit POSTs when xasecure.audit.destination.auditserver.authn.header.enabled=true. Requires RANGER-5719 (apache#1137) for PluginHeaderAuthConfig and setTrustedAuthHeaders().
…uting Add agents-common partition plan model, allocator, validator, routing helpers, and PolicyDownloadAuthUsersUtil for RANGER-5655. SPIFFE header utilities move to RANGER-5723 (apache#1139).
ramackri
force-pushed
the
RANGER-5719-patch
branch
from
August 6, 2026 03:15
c4cf544 to
0ced753
Compare
added 3 commits
August 6, 2026 13:02
Drop scalePlugin, replacePlan, isPromoteAlreadyApplied, sameContentAs, toAllowedUserSets, hashToSlotIndex, and related helpers that no production caller uses in the 5721/5722 design; can reintroduce when scaling or bulk replace is wired.
Remove PluginEntry.empty(), the four-arg promotePlugin overload, and DEFAULT_AUDIT_TOPIC (tests use the literal topic name).
No callers in apache#1137, rangerRelease 5721/5722, or tests; plans are built via plugins(map).
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.
Summary
First PR in the RANGER-5655 series — Admin-managed Kafka audit partition plan.
JIRA: RANGER-5719
Split from closed #1135.
This PR adds the partition plan library only (+1,789 lines, 17 files). It does not change runtime behavior, SPIFFE auth, Admin REST, ingestor, or DB schema. Safe to merge independently.
SPIFFE header utilities and
RangerRESTClient.setTrustedAuthHeaders()are in #1139 (RANGER-5723).Partition plan library (
agents-common)Canonical JSON model stored in Admin
x_ranger_global_state(RangerAuditPartitionPlan):PartitionPlan,PluginEntry,BufferEntryPartitionPlanAllocatorPartitionPlanValidatorPartitionPlanRoutingUtilsPolicyDownloadAuthUsersUtilpolicy.download.auth.usersper service for ingestor allow-listsAuditPartitionPlanAdminConfigpartitions.per.plugin, per-plugin overrides)AuditPartitionPlanConstantsranger_auditstopic, initial version, property names)Tests: allocator, validator, routing, JSON round-trip, allow-list extraction.
Related PRs — RANGER-5655 merge order
AuditPartitionPlanMgrAuditPluginIdResolverdeferred to RANGER-5721.Test plan
mvn -pl agents-common -am test— partition plan unit tests passbuild-17,plugins-docker-build,services-docker-build