ramackri opened a new pull request, #1384: URL: https://github.com/apache/ranger/pull/1384
## Summary Backport of CDH PR [CDH/ranger#2043](https://github.infra.cloudera.com/CDH/ranger/pull/2043) to Apache Ranger **master**. Adds a policy-engine option **`disableTagEnricher`** so plugins can skip instantiating `RangerTagEnricher` when tag context enrichment is not needed (distinct from `disableTagRetriever`, which only strips the tag retriever from enricher options). **Configuration (per plugin):** `{propertyPrefix}.policyengine.option.disable.tag.enricher` (boolean, default `false` in `configureForPlugin`). ## Changes - `RangerPolicyEngineOptions`: new flag, wired through copy ctor, all configure methods, `equals` / `hashCode` / `toString`. - `RangerPolicyRepository.buildContextEnrichers`: skip `RangerTagEnricher` when the option is enabled. - `TestRangerPolicyRepositoryContextEnricher`: `testTagEnricherIsSkippedWhenDisabled` plus harness overload for custom options. ## Test plan - [x] `mvn -pl agents-common -am test -Dtest=TestRangerPolicyRepositoryContextEnricher` (JDK 17) - [x] `mvn -pl agents-common pmd:check` on changed module - [ ] CI `build-8` / `build-17` on this PR Made with [Cursor](https://cursor.com) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
