RANGER-5720: DB patch 078 for audit partition plan global state - #1138
Open
ramackri wants to merge 1 commit into
Open
RANGER-5720: DB patch 078 for audit partition plan global state#1138ramackri wants to merge 1 commit into
ramackri wants to merge 1 commit into
Conversation
Add patch 078 and optimized schema updates for all DB backends: seed rangerauditserver with ROLE_ADMIN_AUDITOR and register RangerAuditPartitionPlan global state name for RANGER-5655 admin-managed partition plans.
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
Database foundation for RANGER-5655 — Admin-managed Kafka audit partition plan and SPIFFE workload identity.
JIRA: RANGER-5720
Split from closed #1135. This PR is DB-only and has no Java dependency — it can merge in parallel with #1137 (RANGER-5719).
Patch 078 —
audit-partition-plan-global-stateAdded for all supported DB backends:
Each backend gets:
078-audit-partition-plan-global-state.sql— upgrade patchranger_core_db_*.sql— optimized baseline schema for fresh installsWhat patch 078 does
x_ranger_global_state.app_dataTEXTwhere needed (PostgreSQL)state_name = 'RangerAuditPartitionPlan'with version-1 JSON (ranger_auditstopic, 9 buffer partitions, emptypluginsmap)rangerauditserverportal user +x_userentryROLE_ADMIN_AUDITORtorangerauditserver(required for ingestor → Admin SPIFFE poller in RANGER-5722)The seeded plan is a safe empty baseline; RANGER-5721 (
AuditPartitionPlanMgr) will populatepluginsandserviceAllowedUserswhen services are created or updated.Related PRs (RANGER-5655 merge order)
RangerAuditPartitionPlanglobal stateTest plan
rangerauditserver+ROLE_ADMIN_AUDITOR+RangerAuditPartitionPlanrow presentx_ranger_global_staterow:state_name = 'RangerAuditPartitionPlan',version = 1