title: “Apache Ranger 2.2.0”

Apache Ranger 2.2.0 release notes

Apache Ranger 2.2.0 was released on November 1, 2021. The release introduces audit filters to reduce audit volume, Kerberos and SSL support in the client libraries, session inactivity timeout, and many UserSync, Hive and policy-engine fixes.

Highlights

Artifacts

ArtifactLocation
Source tarballapache-ranger-2.2.0.tar.gz (signature, SHA-512)
Release directoryhttps://archive.apache.org/dist/ranger/2.2.0/
Git tagrelease-ranger-2.2.0
Maven Centralorg.apache.ranger:*:2.2.0
Archivearchive.apache.org/dist/ranger/2.2.0/

Verify every download against its .asc signature and checksum file before you use it; see Download and verify.

Resolved issues

The tables below list the 233 JIRA issues recorded in the release notes for this version (8 new features, 102 improvements, 123 bugs fixed). Each key links to the issue in the Apache JIRA.

New features

JIRASummary
RANGER-2640Implement SHOW ROLE GRANT in Hive ranger plugin
RANGER-3000Audit-filter feature implementation to help reduce volume of audit logs generated
RANGER-3191Ranger UI for configuring Audit filters.
RANGER-3241Need feature to make the access log file name configurable
RANGER-3242Need feature to make the access log file name configurable for user
RANGER-3248In Ranger Audit collection number of shards should be depending on the number of infra-solr nodes
RANGER-3249Enhance RangerScriptExecutionContext class to provide APIs for comprehensive tag information
RANGER-3397Update ACL computation to (optionally) expand Ranger Roles to users and groups and include chained-plugins in ACL computation

Improvements

JIRASummary
RANGER-2767Ranger showing only 100 services in ranger admin ui
RANGER-2910Add kerberos and SSL support for client libraries
RANGER-2937Refresh Ranger's Solr configs
RANGER-2946Ranger UI - third party library version upgrades
RANGER-2950Upgrade Spring framework and Spring Security libraries
RANGER-2972REST api to delete service/ repo using cluster name
RANGER-2983Add HBase users with decrypteek permission in default policy for kms
RANGER-2986Performance improvements for Ranger usersync
RANGER-2995Add ‘exclude service users’ option in URL param
RANGER-2996Add search by Roles and Auditor user should be able to see “Roles” tab
RANGER-2998API for Ranger KMS service status
RANGER-3001Update Ranger KafkaClient to use Kafka AdminClient API instead of Zookeeper
RANGER-3002Query info popup stuck in Ranger access audits view
RANGER-3006Add cluster name field to service create form
RANGER-3008Internal API for controlling Trie behavior
RANGER-3011Code improvement for Audit Access Log Detail popup
RANGER-3012Dockerfile to support building from local repository
RANGER-3013Remove minor version of “jna” jar file
RANGER-3017RangerHiveAuthorizer should authorize URL in Hive tempUDFs operation
RANGER-3020Normalize naming and processing of config parameters for chained plugin
RANGER-3024Improve response time and refactor code for GET API /service/xusers/lookup/users
RANGER-3027Improve response time for GET API service/xusers/users
RANGER-3029Ranger - Upgrade handlebars 1.3.0 to 4.6.0
RANGER-3044User is not able to change the password from user profile page
RANGER-3050Password can not be changed in User Profile page
RANGER-3056Show Audit ID in Audit->Access tab
RANGER-3057Support Audit search based on Audit ID
RANGER-3065RangerServiceResource model object needs to be enhanced to store/track any additional information about the resource
RANGER-3067Schema changes to improve performance of chained plugin feature
RANGER-3076[New UI] if service side bar expanded then include/exclude toggle button in hive policy gets shrink
RANGER-3078Supporting import policy based on PolicyName, ServiceName and ZoneName
RANGER-3087Making db_setup.py fool-proof and robust
RANGER-3091Upgrade solr version in Ranger to Solr 8.6.3
RANGER-3096Upgrade to Kafka 2.5 with kafka_2.12 artifact in Ranger
RANGER-3103Ranger KMS should log full UGI principal
RANGER-3105Upgrade Ranger Tomcat to 8.5
RANGER-3109Ranger Access audit improvements
RANGER-3118Upgrade jackson to 2.11.3
RANGER-3119Upgrade to slf4j 1.7.30
RANGER-3120[Ranger Latest UI] Long tag based service names are not shown correctly
RANGER-3122Support delegate-admin for specific permissions
RANGER-3130[Ranger Admin UI] Improvement in Ranger Latest UI's Edit Policy Page
RANGER-3131Remove some warnings in Maven build output
RANGER-3147enhance resource-trie to enable finding evaluators for a given resource and its children
RANGER-3153Upgrade to TLS to version 1.2 and above
RANGER-3157Improvements for audit details page part-2
RANGER-3168User/Auditor should have read-only access for Servicedef via PublicAPIsv2 API
RANGER-3185Docker setup to run Ranger enabled HiveServer2
RANGER-3186[Ranger Access Audit Improvement]Changes done from one user, persists for other users as well.
RANGER-3192Use read-write locks for managing access to policy-engine and tag-repository
RANGER-3196Docker setup to cache archives to avoid repeated downloads
RANGER-3200Ranger KMS - Upgrade api-i18n jar from 1.0.0-M20 to 1.0.2+
RANGER-3201Ranger KMS - Upgrade api-i18n jar from 1.0.0-M20 to 1.0.2+
RANGER-3202Ranger KMS - Upgrade api-i18n jar from 1.0.0-M20 to 1.0.2+
RANGER-3206Enhance db_setup.py to allow reading env variables set in ranger-admin-env scripts
RANGER-3207Graceful handling of invalid usernames for usersync
RANGER-3209Upgrade netty-all.version 4.1.49.Final to 4.1.60.Final
RANGER-3210Upgrade Tomcat to 8.5.63+
RANGER-3212Java client: Support for SSL, kerberos and packaging
RANGER-3213Ranger - Upgrade to velocity 2.3
RANGER-3214Configure default audit filters when ranger repo is created
RANGER-3223Documentation of Ranger Java Client
RANGER-3227Get Exception when visit result of RangerClient.findRoles()
RANGER-3228Improvement in audit filter feature
RANGER-3239Ranger : Add checkbox for default audit filters on Service Creation page
RANGER-3240Show Latest Response from Server on all pages of Ranger UI
RANGER-3246Upgrade netty-all version to 4.1.61.Final +
RANGER-3247[UI-improvement] Ranger admin audit log does not show service/repo name in the policy operation
RANGER-3250Add relevant indexes to database table to speed up ingress processing of tagged entities
RANGER-3251[Ranger Audit Filters UI] Tag, KMS service not showing the audit filters in UI section
RANGER-3052Cannot search by object name in page /reports/audit/admin
RANGER-3253Make incremental policy change computation more resilient
RANGER-3254sync source changes when same group is present in different sync source
RANGER-3284Simplify processing of tasks scheduled to execute after current transaction is completed
RANGER-3285expose user source details in ranger UI
RANGER-3287Improve Tagsync authentication error reporting
RANGER-3293Show user source details on user tab in ranger UI.
RANGER-3295Update Ranger Policy Engine capability matrix
RANGER-3305Service version update improvements
RANGER-3306Allow comma in policy resource text field.
RANGER-3308Create python script to test stability of policy CRUD
RANGER-3309Support batch upload of tags to Ranger
RANGER-3324Make optimised db schema script idempotent for all DB Flavors.
RANGER-3328RANGER-KMS : code improvement
RANGER-3334Enhance Ranger admin REST Client to use cookie for policy, tag and role download
RANGER-3339Make Ranger Solr audit collection storage configurable
RANGER-3347Add default policy for hbase user in hdfs services
RANGER-3349Handling multiple grant role command for same user
RANGER-3357Ranger HivePlugin Authorization for a new Hive operation
RANGER-3358Ranger - Upgrade Tomcat to 8.5.69
RANGER-3360Best Practice: Use updated policy object after pruning the policy object
RANGER-3361Ranger Admin : Improve error message while deleting users and groups associated with role.
RANGER-3362UI Improvements
RANGER-3363Support Session Inactivity Timeout for Ranger
RANGER-3371Update algorithm to build Ranger policy-database object from Ranger policy-view object
RANGER-3374Syncing 300K+ user group mappings to ranger is causing ranger to go out of memory
RANGER-3376Add policy_guid column in x_policy_change_log table
RANGER-3381Upgrade to junit 4.13.1
RANGER-3384Metric Get API add input validation
RANGER-3388Session Inactivity Timeout: Ranger UI part
RANGER-3396RangerPolicyItemRowFilterInfo::toString() method shows “RangerPolicyItemDataMaskInfo” as class name
RANGER-3447Ranger startup optimization: reduce number of DB queries to read service-defs

Bugs fixed

JIRASummary
RANGER-2940Added code to update user roles when group memberships are changed with AD/LDAP incremental sync
RANGER-2981Unwanted popup display on Security Zone Tab
RANGER-2985User with all permission in ranger is not able to update volume
RANGER-2987Remove unused ratis jars in ranger admin packaging for ozone plugin
RANGER-2988Role Name Search filter is not available on policy listing page
RANGER-2991Ranger should close solrclient connection
RANGER-2997Ranger usersync role assignment issues
RANGER-3002Query info popup stuck in Ranger access audits view
RANGER-3007Ozone & Ranger Upgrade: Not able to access volume after Upgrade
RANGER-3014Revert RANGER-2789 GET API service/xusers/users turns very slow when there are more than 1000 users
RANGER-3021RangerRole Version update is not in correct format in an upgraded cluster
RANGER-3034Remove cached policies in plugin if the service is deleted in Ranger admin
RANGER-3037Import policy API is not returning proper response in case pre authorization fails
RANGER-3038Group memberships not getting updated to ranger
RANGER-3058create table fails when ViewDFS(client side HDFS mounting fs) mount points are targeting to Ozone/S3 FS
RANGER-3060Maven build failing due to PMD violations
RANGER-3061Default configuration error when enable ssl for ranger admin
RANGER-3062Even after removing ‘Security Zone’ permission for an user, UI still shows ‘Security Zone’ tab
RANGER-3064Make policy API consistent with the UI behavior for keyadmin role
RANGER-3068Ranger Usersync is not handling error during initialization process
RANGER-3070Add Support for using {OWNER} placeholder in Ozone Ranger Plugin
RANGER-3071Supporting character set which is not included in latin1
RANGER-3073Incorrect UI hint message for password validation in FIPS environment
RANGER-3074Fix build issues
RANGER-3079Fix build failures for ranger-2.2 branch
RANGER-3083denyAllElse policy does not handle access request with access-type of ‘_any’
RANGER-3084Ranger database connection fails when postgres is SSL enabled & postgresql-42.2.14 driver jar is used
RANGER-3088Build tagged-resource-cache using memory optimization flags identical to policy-cache
RANGER-3090KMS setup.sh fails due to blank property value of ranger.ks.db.ssl.certificateFile
RANGER-3093Add required libraries to ranger-tools to ensure that perftester scripts run correctly
RANGER-3094Ranger HDFS audit not capturing the correct path for write rename operations
RANGER-3095not able to list the keys with a user whose id contains non latin character
RANGER-3098Updates to validity period of tag are not reflected in Ranger database
RANGER-3101Ranger usersync not recovering from initial errors in subsequent syncs
RANGER-3104Ranger Hive policy with nested Roles failed to authorize request
RANGER-3107Optimize memory requirements for storing Tag/Policy/Zone trie - Trade-off processing time for memory
RANGER-3112Ranger usersync unit test cases are failing on mac
RANGER-3117Need feature to capture URL of a particular instance of audit event
RANGER-3121HBase list command authorization issue in Ranger
RANGER-3124Search filter with user name having non latin character is not working on Audit>>Access tab
RANGER-3129Python client uses incorrect default value assignment for method parameters
RANGER-3134Remove global JAAS Configuration for Ranger auditing to SOLR
RANGER-3140Ranger ShutdownHook hook to be called in RangerHBaseCoprocessor preShutdown apis for a clean shutdown of HBase
RANGER-3143Ranger usersync, user group mapping for user deletion is not syncing up, if only one user is present in the group
RANGER-3149Adding exisitng policy check for PatchForKafkaServiceDefUpdate_J10033
RANGER-3156RangerResouceTrie.add() and RangerResourceTrie.delete() do not work correctly for the resources containing wildcards
RANGER-3159Having any permission on hbase tables should allow listing of tables
RANGER-3163Ranger Database deadlock when Service creation and user sync are running parallel
RANGER-3169Ranger Usersync config for keystore type and truststore type for LDAPS are not effective
RANGER-3171Ranger ui became broken after logout in Firefox
RANGER-3172Patch to migrate old policy to use new Policy Ref table
RANGER-3175Add back the support to provide option to retrieve users from group member attribute
RANGER-3178Fix spurious full policy/tag downloads when incremental policy/tag updates are enabled
RANGER-3187Roles download failed in Ranger after upgrade
RANGER-3190Skip python unit tests if requests library not present
RANGER-3194Ranger Access Audits page not loading
RANGER-3199illegal reflective access operation warning in KMS catalina.out logs
RANGER-3203Add back the support to provide option to retrieve groups from user memberof attribute
RANGER-3205Policy Item not render in report page
RANGER-3207Graceful handling of invalid usernames for usersync
RANGER-3208NPE in Ranger policy engine when processing SELF_OR_CHILD scoped search
RANGER-3218User getting denied even after having tag based policy
RANGER-3220Zone name is not getting populated for tag based policy.
RANGER-3224Not able to delete security-zone
RANGER-3229Correct Kafka default policy item for all-delegation token and rangerlookup user
RANGER-3233Ranger Kafka Plugin changes to get the UGI from Kafka client JAAS config instead of Subject from Kafka LoginManager
RANGER-3234Ranger db patch no 045 is failing for oracle db.
RANGER-3235Remove hive-exec dependency from Ranger audit frame work
RANGER-3238Incorrect response for ‘ranger_metric denyconditions’ in Collect Diagnostic Data
RANGER-3252Inconsistent behavior in Ranger Role authorization with in same hive beeline session
RANGER-3259[Ranger Audit Filter] Ranger role is allowed to delete, even if its used in audit filters
RANGER-3260Update default hdfs audit filters to filter out unwanted audits
RANGER-3261Remove unused .htaccess file from component
RANGER-3262Ranger group memberships are not working for LDAP sync
RANGER-3263libthrift 0.14.x exclude tomcat-embed-core from dependency
RANGER-3264[Solr Ranger Plugin] Add support/Fix Test connection with Solr service
RANGER-3266Solr inter-node communication not working after enabling Ranger
RANGER-3268Ranger Audit filter should filter audits that are created by Hive Role command operations
RANGER-3272Zone tag policies are getting deleted when zone is updated
RANGER-3275Need to update solr-config.xml in the ranger-audits collection config-set
RANGER-3277Number of users/groups marked for delete are not shown in logs
RANGER-3280Ensure that the policy/tag versions gets correctly updated for every change to service/policy/tag
RANGER-3286Oracle upgrade fails with oracle: SQLSyntaxErrorException in 052-add-unique-constraint-on-change-logs
RANGER-3288Ranger Audit Filters doesn't filter hdfs read operation when filter is set to not audit read
RANGER-3291NPE in BasePlugin if the first policy download contains no policies and no policy-deltas
RANGER-3292Fix ConcurrentModificationException from RangerTransactionSynchronizationAdapter
RANGER-3294AccessResult attribute with isAudited as false not filtered in Ranger Audit Filter
RANGER-3297Internal user is not marked as external after the user sync source details are changed
RANGER-3301[UI] in admin audit log tables not formatted correctly for long string value for resources.
RANGER-3304Create solr audit conf zip archive
RANGER-3311Ranger Usersync not retrying failed updates for unix or file sync source
RANGER-3312Role is getting removed from policy when user present in that policy is deleted
RANGER-3320ranger tags are not added for when tagging identically named database/tables in two different Ranger services
RANGER-3322remove grant of public synonym privileges for oracle db
RANGER-3323Ranger Hive Table lookup is not working
RANGER-3325Roles information not present in the Excel and CSV files which are downloaded from Reports page
RANGER-3333Ozone Ranger Audits are not showing up in Ranger Admin UI for “om” service user
RANGER-3336All policies are exported, when searching reports using roles
RANGER-3337Ranger policy not taking effect with HDFS Snapshots
RANGER-3338Masking and Row filter policy are getting exported from report page when Policy type=Access
RANGER-3341External user's role creation may fail in certain version of MariaDB
RANGER-3343Ranger policy cache is incorrect in some scenario
RANGER-3344Ranger Admin fails to start with java.lang.NoClassDefFoundError: org/apache/htrace/core/Tracer$Builder
RANGER-3345Default Ranger policy for KMS should include “om” user for Ozone bucket level encryption to work
RANGER-3350Ranger HivePluginAuthorizer SHOW CURRENT ROLES not fetching the role set in current hive beeline session
RANGER-3351Incorrect hive query displayed for grant and revoke role command
RANGER-3353Show roles is not listing all roles
RANGER-3355Ranger Admin : Update the current logging mechanism to use custom log4j conf
RANGER-3366Cluster type is missed in copy constructor of RangerAccessRequestImpl
RANGER-3367[Intermittent] Ranger Admin perf logs are not getting logged after Spring Security upgrade
RANGER-3372Issue in policies search on report page with user having more than one unix group
RANGER-3385Duplicate SQL prefix should not be allowed
RANGER-3387Ranger Admin Header Validation
RANGER-3398Duplicate JAVA patch suffix should not be allowed
RANGER-3404user with no permissions can access and edit delegate admin only policies
RANGER-3419compressDeltas method returns two ranger policy entries for policy create+update case when provided lastKnownVersion is previous to create call
RANGER-3441PropertiesUtil (Admin) logging potentially sensitive data
RANGER-3446log4j initialization failure in docker setup
RANGER-3455[Logout-Ranger] Should either be disabled/ should redirect to knox logout page
RANGER-3462User with delegated admin permission on a resource cannot fetch policy for the resource
RANGER-3480Policy version in access audit is not matching with the policy version seen in policy view
RANGER-3481Incremental policy updates do not work correctly for multiple security zones
RANGER-3489Add htrace-core.jar as dependency for various Ranger Plugins

Further reading