Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
276a3da
RANGER-550 Hive plugin: Add support for allowed/denied auditing for m…
Jun 11, 2015
df753e8
RANGER-549 updating the tests so it would have failed without the fix…
Jun 12, 2015
e487741
RANGER-553 Default policy creation during service creation should han…
Jun 13, 2015
157f0f8
RANGER-554: Pagination support in KMS Keys listing page
vperiasamy Jun 15, 2015
d650c91
RANGER-555: Fixed x_data_hist query for Oracle DB
vperiasamy Jun 15, 2015
74522f3
RANGER-557: Ranger Storm authorizer to be consistent with default au…
Jun 17, 2015
5d31553
RANGER-558 Hbase plugin: unless user has READ access at any level acc…
Jun 11, 2015
60ae013
RANGER-559 : Fix ID preservation for MSSQL
gautamborad Jun 18, 2015
19aa95e
RANGER-562: Policy migration updated to ignore incorrect permission t…
gautamborad Jun 19, 2015
10f2194
RANGER-565: Fixed Oracle JDBC driver issue causing dba_script/db_setu…
vperiasamy Jun 23, 2015
89f6eed
RANGER-566: modified to use private synonym for ranger-admin installa…
sneethiraj Jun 24, 2015
5ad0820
RANGER-564: added incubating as part of the release filename
sneethiraj Jun 23, 2015
70887df
RANGER-561: YARN plugin updated to fallback to YARN ACL, instead of c…
mneethiraj Jun 19, 2015
cc690cd
RANGER-568: fixed RangerTimeOfDayMatcher condition to handle 12am/12p…
mneethiraj Jun 25, 2015
babc79c
RANGER-570 Knox plugin: added shell classes with old class names so t…
Jun 25, 2015
6af6fe3
RANGER-569: Do not modify hbase.rpc.protection when ranger hbase plug…
vperiasamy Jun 25, 2015
1dbb9b0
RANGER-563: permissions are duplicated in some policyItems after upgrade
mneethiraj Jun 21, 2015
3c509cd
RANGER-571 Storm plugin: added shell classes with old class names so …
Jun 26, 2015
de946a3
RANGER-552 Ranger KMS not able to audit to kerberos HDFS
boscodurai Jun 12, 2015
34f7e3b
RANGER-552 Need to get UGI from keytab, instead of subject
boscodurai Jun 13, 2015
69e0e8c
RANGER-574: fixes to add hdfs jars to knox/kms/storm bundles (Changes…
sneethiraj Jun 30, 2015
b0d3cfb
RANGER-574: resubmitting the additional jar as the htrace lib should …
sneethiraj Jul 1, 2015
6729af5
RANGER-575 : Allow KMS policies to be assigned to all users
gautamborad Jul 6, 2015
353d1a5
RANGER-576:Storm audit not showing access type in the Ranger Admin Au…
Jul 10, 2015
4874016
RANGER-614.2 : Provide support of SQL Anywhere as a DB in Ranger
gautamborad Aug 17, 2015
a451e02
RANGER-622 Hive plugin - add jar via beeline throws NPE in ranger code
aloklal99 Aug 21, 2015
3b3b8d9
RANGER-615 Audit to db: Truncate all string values of audit record so…
aloklal99 Aug 13, 2015
fc66b15
RANGER-624 : Fix Windows installation issue after SQLAnywhere support
gautamborad Aug 21, 2015
4a5a4f2
RANGER-625:Change db flavor input parameter value from SQLAnywhere to…
vperiasamy Aug 25, 2015
c2a6eb6
RANGER-587 : fixed issue: ranger-admin-site.xml not getting updated w…
gautamborad Jul 30, 2015
5ed0e6e
RANGER-598: Update Ranger config migration script to work with Ranger…
vperiasamy Aug 7, 2015
67e845a
RANGER-588 : Take care of Ranger KMS installation even if java is not…
gautamborad Aug 7, 2015
7e2677b
BUG-41359 : UserSync process performance issue due to user group cach…
Jul 28, 2015
9e0f2da
RANGER-551 Policy Validation: If resource levels are not valid for an…
Jun 12, 2015
6087c37
RANGER-560 Policy validation: user friendly error messages about vali…
Jun 18, 2015
7a6f88a
RANGER-560 Apache license added to test file
Jul 29, 2015
5fa82cb
RANGER-584 User friendly error messages for service validation error …
Jul 30, 2015
eab51d4
RANGER-593 User friendly error messages for service def validation er…
aloklal99 Aug 3, 2015
77e3408
RANGER-594 User friendly error messages for policy validation error f…
aloklal99 Aug 4, 2015
5d9dc85
RANGER-618 : KMS gets slower in key creation once Database grows
gautamborad Aug 18, 2015
c353845
RANGER-623 : Enable plugin scripts should handle file permissions for…
gautamborad Aug 25, 2015
7ccb14e
RANGER-628 : Make filters for ranger-admin search binds configurable
gautamborad Aug 31, 2015
44a23ef
RANGER-637 : Make REFERRAL property in Ranger User sync configurable
gautamborad Sep 2, 2015
28f7d1f
RANGER-638 : Ranger admin should redirect back to login page when log…
gautamborad Sep 2, 2015
a18a9db
Merge branch 'ranger-0.5' of https://git-wip-us.apache.org/repos/asf/…
sneethiraj Sep 8, 2015
72b4df5
RANGER-639 Package commons-lang, which is a required dependency, as p…
aloklal99 Sep 8, 2015
a3c9d8c
RANGER-642 : Update USERSEARCHFILTER for Ranger Authentication on Win…
gautamborad Sep 9, 2015
8d7b6cd
RANGER-621 - Updated Solr service-def to fix incorrect impliedGrants
Sep 9, 2015
9adc04e
RANGER-641 : Ranger KMS startup fails if java not set and started usi…
gautamborad Sep 3, 2015
ff75b9b
RANGER-627 Add start/stop/progress log messages so processing of Audi…
aloklal99 Aug 29, 2015
e6ac04c
RANGER-632 Simplify policy and service-def validation related error m…
aloklal99 Sep 5, 2015
97453ff
RANGER-632 Added validation error msg on Ranger UI in service/policy …
fni3galave Sep 15, 2015
1dbc7a1
RANGER-630 : Data consistency across API and UI
gautamborad Sep 15, 2015
b82ff28
Revert "RANGER-632 Added validation error msg on Ranger UI in service…
aloklal99 Sep 16, 2015
4f4be95
RANGER-632 : Added validation error msg on Ranger UI in service/polic…
gautamborad Sep 16, 2015
bcd8ca1
RANGER-653 : Delegated Admin check has been moved to Mgr level
gautamborad Sep 18, 2015
a551995
RANGER-654: Component process goes in a tight loop if audit destination
boscodurai Sep 19, 2015
46e28d5
RANGER-654: Increasing interval time to fix junit error
boscodurai Sep 20, 2015
9a6dc0c
RANGER-659:Package commons-io, which is a required dependency, as par…
Sep 22, 2015
3a86171
RANGER-672 v0.4 plugins are unable to download policies from 0.5 server
aloklal99 Sep 30, 2015
0761452
RANGER-658 : Make ranger_credential_helper.py available in usersync path
gautamborad Sep 23, 2015
e2bb41a
RANGER-656 : Ranger UI - KMS Need to handle 404 error when clicked on…
gautamborad Sep 25, 2015
18d1abf
RANGER-665 : ranger.ldap.ad.referral property is not getting updated …
gautamborad Sep 25, 2015
04d1da2
RANGER-666 : Add support for Azure SQL Database
gautamborad Sep 28, 2015
eb4c5e2
RANGER-671 : Add support to retrieve permissions for the logged in us…
gautamborad Oct 8, 2015
132f3f2
RANGER-677 : Ranger Admin fails to render policies referring to group…
gautamborad Oct 6, 2015
4568ff5
RANGER-682 Add support for audit to Azure Blob Storage via HDFS audit…
aloklal99 Sep 21, 2015
7296109
RANGER-673 : Setup changes to allow Ranger service to installed using…
gautamborad Oct 6, 2015
4c29c54
RANGER-652: Adding support for ldap connection check tool
spolavarapu1 Oct 9, 2015
275736b
RANGER-590: Escape spaces in the user and group names which are part …
Jul 30, 2015
ecdaa6c
RANGER-664:Ranger PolicyRefresh REST Client timeout parameter should …
Sep 29, 2015
bd8caf4
RANGER-526 : Provide REST API to change user role
gautamborad Oct 13, 2015
86d0ba0
RANGER-681 : Update default sync intervals for LDAP and UNIX
gautamborad Oct 13, 2015
a94e793
RANGER-697 : KeyAdmin role user should see only KMS related audit acc…
gautamborad Oct 13, 2015
b63e202
RANGER-663: fix to handle simultaneous updates to service-def/service…
mneethiraj Sep 24, 2015
6dbc623
RANGER-661: fixed policy-download to return error, instead of empty p…
mneethiraj Sep 24, 2015
7bce053
RANGER-688 : Handle scenario where ids of XUser and XPortalUser are n…
gautamborad Oct 14, 2015
c82c0c8
RANGER-687: Service update should ignore user provided values for int…
mneethiraj Oct 15, 2015
c0a5f53
RANGER-652: Include ldapconfigcheck tool in main pom.xml
vperiasamy Oct 16, 2015
47c1f94
RANGER-701 : Update setup scripts to allow special characters in pass…
gautamborad Oct 26, 2015
2885928
RANGER-674 : Ranger public rest api gives 200 response for wrong cred…
gautamborad Oct 1, 2015
3b848bd
RANGER-705:Ranger Usersync should provide summary logs on the sync pr…
Oct 27, 2015
fac88a2
RANGER-586:Ranger plugins should not add dependent libraries to compo…
Oct 27, 2015
709f6ff
RANGER-700:Provide a wrapper shell script to run the FileSourceUserGr…
Oct 28, 2015
f47cbd1
RANGER-706 : Optimize audit db upgrade patches to minimize timeout is…
gautamborad Oct 28, 2015
3a4372e
Ranger-684: Added support for Ranger Usersync to transform AD usernam…
spolavarapu1 Oct 28, 2015
684b096
Ranger-684: Fixed some minor issues found during unit testing
spolavarapu1 Oct 29, 2015
16b3387
Ranger-684: Modified code to incorporate review comments
spolavarapu1 Oct 29, 2015
f15f87a
Ranger-684: Using Class type as Mapper (which is the interface) inste…
spolavarapu1 Oct 30, 2015
801ec66
RANGER-713:Knox-plugin failed to enable after plugin modification for…
Oct 31, 2015
a340b2b
Ranger-715:Fix issues reported by coverity test in Ranger Plugin Clas…
Nov 3, 2015
a9e73dd
Ranger-652: Excluding windows azure package dependency in Ldap Config…
spolavarapu1 Nov 3, 2015
7852c6c
RANGER-608: fix - denied access due to lack of traverse access does n…
mneethiraj Nov 5, 2015
cee8c46
RANGER-712 Create a sub-project to serve as not only a repository for…
aloklal99 Oct 30, 2015
ae36975
RANGER-724: AuditBatchQueue.waitToComplete() updated to recompute pre…
mneethiraj Nov 8, 2015
2c8c3c7
RANGER-717:Hive and Hbase ranger plugin Audit to DB failed to log aft…
Nov 9, 2015
97d2ab3
RANGER-714 : Enhancements to the db admin setup scripts
gautamborad Nov 9, 2015
4ce6953
RANGER-725 Add the correct .gitignore file to projects, refactor exis…
aloklal99 Nov 9, 2015
e7d1811
RANGER-702: optimize policy download performance
mneethiraj Nov 11, 2015
3c20302
RANGER-727:Knox Plugin failed to AuditToSpool file when Audit Destina…
Nov 13, 2015
80dcf52
RANGER-680 : Default policies for KMS repo
gautamborad Oct 6, 2015
b116731
RANGER-731: Ranger plugin for YARN doesn't seem to be able to write a…
Nov 16, 2015
836aa92
RANGER-602: Solr client in SolrCloud mode should work with zookeeper
boscodurai Sep 10, 2015
d557e97
RANGER-657: Solr plugin doesn't support for user principals with /$HOST
boscodurai Oct 12, 2015
04f3fa4
RANGER-737: updated Ranger Kakfa plugin for recent changes in Kafka a…
mneethiraj Nov 19, 2015
41166a5
RANGER-733 : Implement best coding practices to resolve issues found …
gautamborad Nov 18, 2015
a2075c3
Ranger-652: excluded org.apache.hadoop dependecy with ranger-util as …
spolavarapu1 Nov 20, 2015
bca2c40
RANGER 739 :Ranger HBase Plugin returning null for RegionObserver.pre…
Nov 20, 2015
9cbff66
RANGER-720: Handling some error cases and fixing the issues that were…
spolavarapu1 Nov 16, 2015
4993b50
RANGER-740: Kafka Authorizer interface has added close() method. Ranger
boscodurai Nov 24, 2015
e4a286e
RANGER-602: Solr client in SolrCloud mode should work with zookeeper
boscodurai Nov 24, 2015
dbe192c
RANGER-744: Kafka Authorizer has updated how IP/Host is passed
boscodurai Nov 25, 2015
a5ea6e3
RANGER-747:RangerAdmin is considering "none" as valid ZK Host Name for
boscodurai Nov 26, 2015
5a62620
RANGER-741 : Fix installation script to skip Audit DB password check …
gautamborad Nov 25, 2015
2073c0a
RANGER-743 : External users with Admin Role should be allowed to crea…
gautamborad Nov 25, 2015
cb8f30c
RANGER-745: Upgrade Apache commons-collections
vperiasamy Nov 25, 2015
3c42cf2
RANGER-755,756,757: ldaptool fixes (Sailaja Polavarapu via Velmurugan…
vperiasamy Dec 1, 2015
049723c
Ranger-742: Made code changes to complete user search before performi…
spolavarapu1 Nov 30, 2015
5bebb54
RANGER-749 : Ranger KMS to support multiple KMS instances with keys a…
gautamborad Nov 25, 2015
f9fc17f
RANGER-748 : Fix - Users in policy got changed after upgrade
gautamborad Nov 24, 2015
eb966b3
RANGER-754:Ranger YARN Plugin lookup and test connection should suppo…
Dec 2, 2015
371293a
RANGER-607 : Allow to create multiple policy items for same user or g…
gautamborad Aug 17, 2015
ad53935
RANGER-758 : Handle special characters in passwords starting from -r
gautamborad Dec 3, 2015
740fa95
RANGER-761 : Transaction logs not getting generated under audit menu …
gautamborad Dec 3, 2015
56c9192
RANGER-737 Kafka plugin: add create/delete operation types added as v…
aloklal99 Dec 4, 2015
e9dd408
RANGER-766:Yarn Plugin Config hadoop.security.authentication should b…
Dec 4, 2015
299cbfa
RANGER-742 : Removed the dependency on groupUserMapSyncEnabled flag (…
vperiasamy Dec 5, 2015
053fccc
Ranger-767: Refactored org.apache.ranger.ldapusersync.process.PolicyM…
spolavarapu1 Dec 4, 2015
6d4ea47
Ranger-767: Removed the init() & addOrUpdate() methods from derived c…
spolavarapu1 Dec 5, 2015
5be2cdb
RANGER-733 : Implement best coding practices to resolve issues found …
gautamborad Dec 5, 2015
a2b96f6
RANGER-772 Hive plugin: IMPORT table should authorize database level …
aloklal99 Dec 8, 2015
389b20c
Ranger-767: Fixing a coverity issue CID 133255: FindBugs: Bad practic…
spolavarapu1 Dec 8, 2015
689339f
RANGER-773 : Fix newly found Coverity scan issues for Ranger KMS
gautamborad Dec 9, 2015
ba0d2e3
RANGER-778: Fix user update issue
vperiasamy Dec 10, 2015
b205c08
RANGER-266: Solr configuration and setup files and documentation (che…
boscodurai Sep 20, 2015
8e74e5a
RANGER-173: Utility scripts to create HDFS audit folders and policies…
boscodurai Oct 5, 2015
f48ad91
RANGER-173: Applied review feedback to use variables for user/group (…
boscodurai Oct 6, 2015
262da5a
RANGER-728: Update Solr script to resolve issues with ZK and creating
boscodurai Dec 10, 2015
0b73cdf
RANGER-777 Kafka plugin builds against released version of kafka jars…
aloklal99 Dec 10, 2015
96c2b4b
RANGER-769: placing httpcore and httpclient in ranger-hbase-plugin-im…
Jan 1, 2016
6bd35c6
RANGER-808: Updated LICENSE.txt
mneethiraj Jan 10, 2016
b234d38
RANGER-804 : Delete groups associated with User causes Exception in U…
gautamborad Dec 28, 2015
13ad496
RANGER-810 : Audit page should show most recent audit log at the top
gautamborad Jan 12, 2016
43274ca
RANGER-777 Remove the mavn profile that was added for building kafka …
aloklal99 Jan 25, 2016
10970b3
RANGER-821 Ranger shutdown hook should not only do its processing asy…
aloklal99 Jan 21, 2016
291215d
RANGER-825 groupId in ranger's child poms should be consistent and fo…
aloklal99 Jan 28, 2016
04daba4
RANGER-798 : Handle different timezone issue while saving audit logs …
gautamborad Feb 1, 2016
0b09a87
RANGER-789 : Fix incorrect policy list paging for non-admin users
gautamborad Jan 18, 2016
24406a0
RANGER-771 : Fix 4+ Log entries upon login in in X_AUTH_SESS
gautamborad Jan 28, 2016
0c9418c
RANGER-831: policy version incremented twice when resources are updated
gautamborad Jan 15, 2016
56d1a03
RANGER-833 : Add support for usernames containing a plus + symbol
gautamborad Jan 28, 2016
c829f26
RANGER-218 : LDAP Groups incorrectly labelled internal
gautamborad Feb 2, 2016
18f216d
RANGER-834 Correct the excludes flag's treatment when resource value …
aloklal99 Feb 1, 2016
4290d58
RANGER-834: fixed apache2 copyright headers for the java source code
sneethiraj Feb 4, 2016
3c11aee
RANGER-204: Not able to delete user or group if user/group has any po…
gautamborad Feb 10, 2016
4b6b641
RANGER-841 Remove deprecated junit.framework dependencies
coheigea Feb 11, 2016
082d0f2
RANGER-799 : Ranger UI fixes - partial search not working on Policy l…
gautamborad Feb 12, 2016
9075f89
RANGER-843: Add indexes to improve DB query performance
gautamborad Feb 23, 2016
9084979
RANGER-848 : Policy Listing page fix: users column is empty for non-a…
gautamborad Feb 23, 2016
a8d5eac
RANGER-863 : Make parameters like maxHttpHeaderSize configurable for …
pradeepagrawal8184 Mar 3, 2016
9a0614b
RANGER-882 Scrub received policies before policy engine uses it to gu…
aloklal99 Mar 12, 2016
f7e0e07
RANGER-881: sample application and its Ranger plugin to help understa…
mneethiraj Mar 9, 2016
97cf9c3
RANGER-806 : Ranger utility to delete users from Ranger
pradeepagrawal8184 Mar 16, 2016
de2f17e
RANGER-882 Add a catch all policy engine initialization to ensure tha…
aloklal99 Mar 17, 2016
9578a68
RANGER-875: Restrict Grantor privileges of Ranger db user for Oracle …
pradeepagrawal8184 Mar 7, 2016
927b0b5
RANGER-794 - commit id fbf4f3533d0c39d018d2ac92538f77761ca461d3
Dec 22, 2015
e72cb20
RANGER-794: ranger-perf tool: fix README.txt and location of the logf…
Dec 22, 2015
bec2fef
RANGER-794: commit id f79bc59a0b4756ca5195a2ffb30759b4a82175ef
Jan 13, 2016
36fbb78
RANGER-794: commit id fc5314e8b79e9d754c12a63bb67a0f0190ddfe9f
Jan 18, 2016
d3a2964
RANGER-836: commit id 4e2e83eef660fae5287d4d1dc7bbea68015445ee
Mar 20, 2016
9e49cc6
RANGER-844: commit id c20a0d1ad1995c404c0d32e85f820397226ea882
Feb 1, 2016
df2d4ec
RANGER-836: Optimize policy retrieval for non-admin users
mneethiraj Mar 21, 2016
3bfc2e1
RANGER-889: Policy engine API to find list of users/groups having acc…
mneethiraj Mar 21, 2016
d762ebd
RANGER-857 - Unify (and update) Tomcat versions
coheigea Mar 22, 2016
bc776c0
RANGER-882 : Policy engine initialization should handle incorrect val…
pradeepagrawal8184 Mar 23, 2016
ffe0013
RANGER-746: Addressing suggestions from Review - Add wildcard, multip…
vperiasamy Mar 23, 2016
303ce30
RANGER-882 : Policy engine initialization should handle incorrect val…
sneethiraj Mar 24, 2016
29cf453
Ranger-894: Fixing few issues in the ldap tool when user search base …
spolavarapu1 Mar 23, 2016
4e73a3a
RANGER-910 : Improve db and java patches execution logic to make that…
pradeepagrawal8184 Apr 4, 2016
8618870
RANGER-921 : Improve implementation of internal SQL calls
pradeepagrawal8184 Apr 12, 2016
514ed05
RANGER-927: modified version number to 0.5.3-SNAPSHOT
sneethiraj Apr 14, 2016
7cb5951
RANGER-888 : Provide support to delete Users and Groups from Ranger A…
pradeepagrawal8184 Apr 15, 2016
e5fc0c2
RANGER-885 - ClassCastException in SolrClient
coheigea Mar 15, 2016
9be1e04
RANGER-950: updated pom.xml to release version 0.5.3
sneethiraj Apr 25, 2016
0c9b8be
RANGER-934: Ranger should use released version of EclipseLink (Pradee…
vperiasamy Apr 26, 2016
0fef5d8
RANGER-960: service-def update should preserve the permission order
mneethiraj Apr 29, 2016
6d6e773
RANEGR-964: updated copyright years & NOTICE file content
sneethiraj May 3, 2016
f4ca3b0
RANGER-966 - Add Apache licenses for .py files
coheigea May 3, 2016
1b833fd
Removing MIT licenses from NOTICE.txt
coheigea May 16, 2016
70eee67
RANGER-964: Fix NOTICE and LICENSE file contents
gautamborad May 17, 2016
077c63f
RANGER-964: Fix LICENSE.txt
vperiasamy May 17, 2016
40d18cf
RANGER-964: cleanup LICENSE.txt for not used libraries
vperiasamy May 18, 2016
6e7b33b
RANGER-891: Audit shutdown hook to be registered with Hadoop Shutdown…
aloklal99 Apr 28, 2016
90b20df
RANGER-964 - Fix licensing ordering in the headers.
coheigea May 25, 2016
bcefdca
Audit summary statistics (such as event_count, event_dur_ms, seq_num)…
Jun 4, 2016
412f709
RANGER-950: updated pom.xml to release version 0.5.4-SNAPSHOT
vperiasamy Jul 13, 2016
5f778cf
RANGER-950: updated all pom.xml to release version 0.5.4-SNAPSHOT
vperiasamy Jul 13, 2016
087a7c8
RANGER-1144: Policy engine optimization: quick skip of policy based o…
Aug 10, 2016
141018c
RANGER-1161: Policy evaluation optimization by using trie lookup to r…
mneethiraj Aug 26, 2016
ed4b898
RANGER-1161: Policy evaluation optimization: trie updated for evaluat…
mneethiraj Aug 27, 2016
410e047
RANGER-1161: Policy evaluation optimization: added more trie data in …
mneethiraj Aug 28, 2016
987d959
RANGER-1161: Policy evaluation optimization: updating ranger-0.5 bran…
mneethiraj Aug 29, 2016
bc0d196
RANGER-1161: trie prefilter updated to handle empty resource value
mneethiraj Sep 2, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
/target/
winpkg/target
.DS_Store
.gitignore
.idea
**/target/
208 changes: 14 additions & 194 deletions LICENSE.txt

Large diffs are not rendered by default.

31 changes: 1 addition & 30 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
Apache Ranger
Copyright 2011-2013 The Apache Software Foundation
Copyright 2014-2016 The Apache Software Foundation

This product includes software developed at The Apache Software
Foundation (http://www.apache.org/).


This product includes jQuery (http://jquery.org - MIT license), Copyright © 2014, John Resig.
This product includes jQuery UI (http://jqueryui.com - MIT license), Copyright © 2013 jQuery Foundation.
This product includes Backbone (http://backbonejs.org - MIT license), Copyright © 2010-2014 Jeremy Ashkenas, DocumentCloud.
This product includes underscore (http:underscorejs.org - MIT license), Copyright © 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors.
This product includes Backbone.Marionette (http://marionettejs.com/ - MIT license).
This product includes Backbone.Wreqr (http://marionettejs.com/ - MIT license) Copyright ©,2012 Derick Bailey, Muted Solutions, LLC.
This product includes Backbone.BabySitter (http://marionettejs.com/ - MIT license), Copyright ©2013 Derick Bailey, Muted Solutions, LLC.
This product includes Backbone fetch cache (https://github.com/mrappleton/backbone-fetch-cache - MIT license), Copyright © 2012-2013 Andrew Appleton.
This product includes Backbone-forms (https://github.com/powmedia/backbone-forms - MIT license), Copyright © 2013 Charles Davison.
This product includes Backbone localStorage Adapter v1.1.7 (http://documentup.com/jeromegn/backbone.localStorage - MIT license), Copyright © 2010 Jerome Gravel-Niquet.
This product includes Backbone.BootstrapModal (https://github.com/powmedia/backbone.bootstrap-modal - MIT license), Copyright © 2013 Charles Davison.
This product includes X-editable - v1.5.0 (http://vitalets.github.io/x-editable/ - MIT license), Copyright © 2013 Vitaliy Potapov;
This product includes Bootstrap Datepicker (http://www.eyecon.ro/bootstrap-datepicker - Apache License - 2.0), Copyright 2012 Stefan Petre.
This product includes bootstrap-transition.js v2.3.2 (http://twbs.github.com/bootstrap/javascript.html#transitions - Apache License - 2.0), Copyright 2013 Twitter, Inc.
This product includes backgrid 0.3.5 (http://backgridjs.com/ - MIT license), Copyright © 2014 Jimmy Yuen Ho Wong and contributors.
This product includes backgrid-paginator (http://github.com/wyuenho/backgrid - MIT license), Copyright © 2013 Jimmy Yuen Ho Wong and contributors. This product includes backgrid-filter (http://github.com/wyuenho/backgrid - MIT license), Copyright © 2013 Jimmy Yuen Ho Wong and contributors.
This product includes backbone-pageable 1.3.2 (http://github.com/wyuenho/backbone-pageable - MIT license), Copyright © 2013 Jimmy Yuen Ho Wong.
This product includes jQuery Cookie Plugin v1.4.0 (https://github.com/carhartl/jquery-cookie - MIT license), Copyright 2013 Klaus Hartl
This product includes jQuery Toggles v2.0.4 (http://simontabor.com/labs/toggles - MIT license), Copyright 2013 Simon Tabor.
This product includes jQuery UI Tag-it! (http://aehlke.github.com/tag-it/ - MIT license), Copyright 2011, Levy Carneiro Jr.
This product includes Select2 3.4.3 (http://ivaynberg.github.io/select2/ - Apache License - 2.0), Copyright 2012 Igor Vaynberg.
This product includes bootbox.js v3.3.0 (http://bootboxjs.com/ - MIT license), Copyright © 2011-2014 by Nick Payne.
This product includes jQuery Pines Notify (pnotify) Plugin 1.2.0 (http://sciactive.com/pnotify/- MPL), Copyright © 2009-2012 Hunter Perrin.
This product includes moment.js (http://moment.js - MIT license), Copyright © 2011-2014 Tim Wood, Iskren Chernev, Moment.js contributors.
This product includes VisualSearch.js 0.4.0 (http://documentcloud.github.com/visualsearch - MIT license), © 2011 Samuel Clay, @samuelclay, DocumentCloud Inc.
This product includes Globalize (http://github.com/jquery/globalize - MIT license), Copyright Software Freedom Conservancy, Inc.
This product includes RequireJS 2.1.8 (http://github.com/jrburke/requirejs - New BSD or MIT licensed), Copyright © 2010-2012, The Dojo Foundation All Rights Reserved.
This product includes Handlebars.js (http://handlebarsjs.com/ - MIT license), Copyright © 2011-2014 by Yehuda Katz.
This product includes Require.js Handlebars Plugin (https://github.com/SlexAxton/require-handlebars-plugin - WTFPL + requirejs + handlebars), Copyright © 2011-2014 by Yehuda Katz.
5 changes: 2 additions & 3 deletions agents-audit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>security_plugins.ranger-plugins-audit</groupId>
<artifactId>ranger-plugins-audit</artifactId>
<name>Audit Component</name>
<description>Auth Audit</description>
Expand All @@ -28,12 +27,12 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>0.5.0</version>
<version>0.5.4-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>security_plugins.ranger-plugins-cred</groupId>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-plugins-cred</artifactId>
<version>${project.version}</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import javax.persistence.Persistence;

import org.apache.ranger.audit.dao.DaoManager;
import org.apache.ranger.audit.entity.AuthzAuditEventDbObj;
import org.apache.ranger.audit.model.AuditEventBase;
import org.apache.ranger.audit.provider.MiscUtil;

Expand Down Expand Up @@ -63,9 +64,11 @@ public DBAuditDestination() {
public void init(Properties props, String propPrefix) {
logger.info("init() called");
super.init(props, propPrefix);

// Initial connect
connect();

// initialize the database related classes
AuthzAuditEventDbObj.init(props);
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import java.util.*;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
Expand Down Expand Up @@ -99,7 +96,7 @@ public void init(Properties prop, String propPrefix) {
logger.info("logFolder=" + logFolder + ", destName=" + getName());
logger.info("logFileNameFormat=" + logFileNameFormat + ", destName="
+ getName());

logger.info("config=" + configProps.toString());
initDone = true;
}

Expand Down Expand Up @@ -127,7 +124,15 @@ synchronized public boolean logJSON(Collection<String> events) {
for (String event : events) {
out.println(event);
}
out.flush();
// flush and check the stream for errors
if (out.checkError()) {
// In theory, this count may NOT be accurate as part of the messages may have been successfully written.
// However, in practice, since client does buffering, either all of none would succeed.
addDeferredCount(events.size());
out.close();
logWriter = null;
return false;
}
} catch (Throwable t) {
addDeferredCount(events.size());
logError("Error writing to log file.", t);
Expand Down Expand Up @@ -207,7 +212,7 @@ synchronized private PrintWriter getLogFileStream() throws Throwable {
currentTime.getTime());
String parentFolder = MiscUtil.replaceTokens(logFolder,
currentTime.getTime());
Configuration conf = new Configuration();
Configuration conf = createConfiguration();

String fullPath = parentFolder
+ org.apache.hadoop.fs.Path.SEPARATOR + fileName;
Expand All @@ -216,7 +221,7 @@ synchronized private PrintWriter getLogFileStream() throws Throwable {
FileSystem fileSystem = FileSystem.get(uri, conf);

Path hdfPath = new Path(fullPath);
logger.info("Checking whether log file exists. hdfPath=" + fullPath);
logger.info("Checking whether log file exists. hdfPath=" + fullPath + ", UGI=" + MiscUtil.getUGILoginUser());
int i = 0;
while (fileSystem.exists(hdfPath)) {
i++;
Expand All @@ -243,6 +248,22 @@ synchronized private PrintWriter getLogFileStream() throws Throwable {
return logWriter;
}

Configuration createConfiguration() {
Configuration conf = new Configuration();
for (Map.Entry<String, String> entry : configProps.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
// for ease of install config file may contain properties with empty value, skip those
if (StringUtils.isNotEmpty(value)) {
conf.set(key, value);
}
logger.info("Adding property to HDFS config: " + key + " => " + value);
}

logger.info("Returning HDFS Filesystem Config: " + conf.toString());
return conf;
}

private void createParents(Path pathLogfile, FileSystem fileSystem)
throws Throwable {
logger.info("Creating parent folder for " + pathLogfile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public class SolrAuditDestination extends AuditDestination {

public static final String PROP_SOLR_URLS = "urls";
public static final String PROP_SOLR_ZK = "zookeepers";
public static final String PROP_SOLR_COLLECTION = "collection";

public static final String DEFAULT_COLLECTION_NAME = "ranger_audits";
SolrClient solrClient = null;

public SolrAuditDestination() {
Expand All @@ -55,7 +57,7 @@ public void init(Properties props, String propPrefix) {
super.init(props, propPrefix);
connect();
}

@Override
public void stop() {
super.stop();
Expand All @@ -67,13 +69,12 @@ synchronized void connect() {
if (solrClient == null) {
String urls = MiscUtil.getStringProperty(props, propPrefix
+ "." + PROP_SOLR_URLS);
if( urls != null) {
if (urls != null) {
urls = urls.trim();
}
if (urls != null && urls.equalsIgnoreCase("NONE")) {
urls = null;
}


List<String> solrURLs = new ArrayList<String>();
String zkHosts = null;
Expand All @@ -84,11 +85,32 @@ synchronized void connect() {
zkHosts = null;
}

try {
if (zkHosts != null && !zkHosts.isEmpty()) {
String collectionName = MiscUtil.getStringProperty(props,
propPrefix + "." + PROP_SOLR_COLLECTION);
if (collectionName == null
|| collectionName.equalsIgnoreCase("none")) {
collectionName = DEFAULT_COLLECTION_NAME;
}

LOG.info("Solr zkHosts=" + zkHosts + ", solrURLs=" + urls
+ ", collectionName=" + collectionName);

if (zkHosts != null && !zkHosts.isEmpty()) {
LOG.info("Connecting to solr cloud using zkHosts="
+ zkHosts);
try {
// Instantiate
solrClient = new CloudSolrClient(zkHosts);
} else if (solrURLs != null && !solrURLs.isEmpty()) {
CloudSolrClient solrCloudClient = new CloudSolrClient(
zkHosts);
solrCloudClient.setDefaultCollection(collectionName);
solrClient = solrCloudClient;
} catch (Throwable t) {
LOG.fatal("Can't connect to Solr server. ZooKeepers="
+ zkHosts, t);
}
} else if (solrURLs != null && !solrURLs.isEmpty()) {
try {
LOG.info("Connecting to Solr using URLs=" + solrURLs);
LBHttpSolrClient lbSolrClient = new LBHttpSolrClient(
solrURLs.get(0));
lbSolrClient.setConnectionTimeout(1000);
Expand All @@ -97,10 +119,10 @@ synchronized void connect() {
lbSolrClient.addSolrServer(solrURLs.get(i));
}
solrClient = lbSolrClient;
} catch (Throwable t) {
LOG.fatal("Can't connect to Solr server. URL="
+ solrURLs, t);
}
} catch (Throwable t) {
LOG.fatal("Can't connect to Solr server. URL=" + solrURLs,
t);
}
}
}
Expand All @@ -111,7 +133,7 @@ public boolean log(Collection<AuditEventBase> events) {
try {
logStatusIfRequired();
addTotalCount(events.size());

if (solrClient == null) {
connect();
if (solrClient == null) {
Expand Down
Loading