Skip to content

RANGER-5632: update plugins packaging to have audit-server as the only audit destination#999

Open
mneethiraj wants to merge 1 commit into
apache:masterfrom
mneethiraj:RANGER-5632
Open

RANGER-5632: update plugins packaging to have audit-server as the only audit destination#999
mneethiraj wants to merge 1 commit into
apache:masterfrom
mneethiraj:RANGER-5632

Conversation

@mneethiraj
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

updated plugins packaging to remove all audit destinations other than audit-server destination.

How was this patch tested?

Verified the following using docker setup:

  • verified successful Ranger build
  • verified successful startup of all Ranger services
  • verified all plugins successfully download policies from Ranger

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Ranger plugin packaging so that plugin distributions include only the audit-server audit destination (removing legacy audit destination artifacts from plugin module dependencies and assembly includes).

Changes:

  • Removed ranger-audit-dest-hdfs / ranger-audit-dest-solr dependencies from multiple plugin/module POMs (keeping ranger-audit-dest-auditserver).
  • Removed ranger-audit-dest-hdfs / ranger-audit-dest-solr (and for Elasticsearch plugin, ranger-audit-dest-es) from distro assembly descriptors for plugins/agents.
  • Added ranger-audit-dest-auditserver as a provided dependency in distro/pom.xml and switched authz-embedded to depend on ranger-audit-dest-auditserver.

Reviewed changes

Copilot reviewed 39 out of 39 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ranger-examples/plugin-sampleapp/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-yarn/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-trino/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-sqoop/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-solr/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-presto/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-ozone/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-nifi/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-nifi-registry/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-kylin/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-kudu/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-kms/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-kafka/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-elasticsearch/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
plugin-atlas/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
knox-agent/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
hive-agent/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
hdfs-agent/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
hbase-agent/pom.xml Drops HDFS/Solr audit destination deps; keeps audit-server destination.
distro/src/main/assembly/storm-agent.xml Removes HDFS/Solr audit destination artifacts from the assembled agent package.
distro/src/main/assembly/plugin-yarn.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-trino.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-sqoop.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-solr.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-presto.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-ozone.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-kylin.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-kms.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-kafka.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/plugin-elasticsearch.xml Removes ES/HDFS audit destination artifacts from the assembled plugin package (leaving audit-server).
distro/src/main/assembly/plugin-atlas.xml Removes HDFS/Solr audit destination artifacts from the assembled plugin package.
distro/src/main/assembly/pdp.xml Removes HDFS/Solr audit destination artifacts from the assembled PDP package.
distro/src/main/assembly/knox-agent.xml Removes HDFS/Solr audit destination artifacts from the assembled agent package.
distro/src/main/assembly/kms.xml Removes HDFS/Solr audit destination artifacts from the assembled KMS distribution.
distro/src/main/assembly/hive-agent.xml Removes HDFS/Solr audit destination artifacts from the assembled agent package.
distro/src/main/assembly/hdfs-agent.xml Removes HDFS/Solr audit destination artifacts from the assembled agent package.
distro/src/main/assembly/hbase-agent.xml Removes HDFS/Solr audit destination artifacts from the assembled agent package.
distro/pom.xml Adds provided dependency on ranger-audit-dest-auditserver.
authz-embedded/pom.xml Replaces HDFS/Solr audit destination deps with ranger-audit-dest-auditserver.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread distro/pom.xml
Comment on lines +80 to +85
<dependency>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-audit-dest-auditserver</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
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.

2 participants