Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
51f9d26
SENTRY-683: HDFS service client should ensure the kerberos ticket val…
pmujumdar Mar 30, 2015
a9a6c6f
SENTRY-676: Address Sentry HA issues in secure cluster. (Prasad Mujud…
pmujumdar Mar 31, 2015
80dc592
SENTRY-670: Fix the Sentry build to remove snapshot and non apache de…
pmujumdar Mar 31, 2015
0ca6883
SENTRY-687: Handle authorization for 'select <expr>' hive queries (Yi…
pmujumdar Apr 1, 2015
b4e607a
SENTRY-500: 1.4 to 1.5 upgrade needs to handle empty strings with __N…
pmujumdar Apr 3, 2015
0d3a8f6
SENTRY-681: Update the versions on trunk after branching (guoquan via…
pmujumdar Apr 3, 2015
8cc22be
SENTRY-693: The generic model has not successfully revoke part of pri…
shenguoquan Apr 7, 2015
58adbe4
SENTRY-537: Refactor AbstractTestWithHiveServer to cut down some test…
colinmjj Apr 15, 2015
8e16e87
SENTRY-646: Add Sqoop policy engine for sentry authorization (Guoquan…
shenguoquan Apr 17, 2015
fd31d2c
SENTRY-696: Improve Metastoreplugin Cache Initialization time (Arun S…
Apr 18, 2015
2448761
SENTRY-698: Uncaught OutOfMemoryError (Colin Ma, reviewed by Guoquan …
colinmjj Apr 20, 2015
7ae7fc3
SENTRY-296: Sentry Service Client does not allow for connection pooli…
sundapeng Apr 21, 2015
a3adbb3
SENTRY-703: Calls to add_partition fail when passed a Partition objec…
Apr 22, 2015
850bdb2
SENTRY-678: Sentry-Solr Binding may not load group mapping service co…
grchanan Apr 23, 2015
9195cb9
SENTRY-692: Add schema creation scripts for 1.6.0 version (Colin Ma v…
Apr 25, 2015
16ef2c3
SENTRY-699: Memory leak when running Sentry w/ HiveServer2 (Prasad Mu…
Apr 28, 2015
0b8d822
SENTRY-702: Hive binding should support RELOAD command (Dapeng Sun vi…
Apr 30, 2015
06ba44c
SENTRY-717: Fix the UDF whitelist format for functions row_number and…
colinmjj May 7, 2015
6498ce9
SENTRY-720: Patch related files should be excluded form version contr…
sundapeng May 8, 2015
357d83f
SENTRY-612: Sqoop2 integration with sentry (Guoquan Shen, reviewed by…
shenguoquan May 12, 2015
a48cc8c
SENTRY-723: Clean unused methods in HiveAuthzBindingHook (Dapeng Sun,…
sundapeng May 12, 2015
14e6bda
SENTRY-736: Add a new constructor to HadoopGroupMappingService (Guoqu…
shenguoquan May 15, 2015
024faee
SENTRY-227: Fix for "Unsupported entity type DUMMYPARTITION" (Lars Fr…
May 20, 2015
9dba28b
SENTRY-695: Sentry service should read the hadoop group mapping prope…
May 21, 2015
0416dc0
SENTRY-744: DB provider client should support grantServerPrivilege() …
May 28, 2015
67b2146
SENTRY-740: Move the class PolicyFileConstants and KeyValue to provid…
colinmjj Jun 2, 2015
4d0e2e7
SENTRY-750: Use the Sqoop Server principal as the requester when remo…
shenguoquan Jun 3, 2015
42dfe9c
SENTRY-752: Sentry service audit log file name format should be consi…
Jun 4, 2015
6baaa61
SENTRY-763: Remove multiple .gitignore files (Sravya Tirukkovalur , R…
Jun 9, 2015
ee90393
SENTRY-764: Update the LICENSE file (Sravya Tirukkovalur, Reviewed by…
Jun 11, 2015
198bef5
SENTRY-721: HDFS Cascading permissions not applied to child file ACLs…
Jun 12, 2015
4e03bdb
SENTRY-767: SENTRY jenkins support test the patch for branch ( Dapeng…
Jun 18, 2015
c56f1d2
SENTRY-774: *.rej files should be added to rat ignore list (Dapeng Su…
sundapeng Jun 23, 2015
9943a33
SENTRY-776: Sentry client should support cache based kerberos ticket …
Jun 29, 2015
1556781
SENTRY-777: SentryServiceIntegrationBase#after() should be run under …
sundapeng Jun 29, 2015
17fcc4d
SENTRY-789: Jenkins should support test branch with special character…
sundapeng Jul 2, 2015
ce60020
SENTRY-788: Fix mysql and postgres scripts of generalized model (Srav…
Jul 2, 2015
c8d5fce
SENTRY-791: java.lang.AbstractMethodError when using HDFS sync (Sravy…
Jul 8, 2015
9876181
SENTRY-647: Add e2e tests for Sqoop Sentry integration (Guoquan Shen,…
shenguoquan Jul 9, 2015
499074e
SENTRY-794: TestHDFSIntegrationWithHA#testEnd2End fails( Sravya Tiruk…
Jul 7, 2015
8bd827b
SENTRY-797: TestHDFSIntegration#testEngToEnd is flaky (Sravya Tirukko…
Jul 9, 2015
c9276fa
SENTRY-800: Oracle: first run A1.Scope invalid identifier (Sravya Tir…
Jul 13, 2015
fe8e7d9
SENTRY-792: Throw underlying exception if SentryService start fails (…
Jul 13, 2015
9dff149
SENTRY-802: SentryService: Log error if you processor cannot be regis…
Jul 13, 2015
77ac995
SENTRY-803: Fix role cleanup for Sqoop test - fails with SentryAlread…
lskuff Jul 16, 2015
7c2da74
SENTRY-805: Reclassify CoreAdminHandler Actions (Gregory Chanan, Revi…
Jul 20, 2015
7eb7c7d
SENTRY-778: CredentialProvider for Sentry DB password ( Sravya Tirukk…
Jul 17, 2015
f5445bb
SENTRY-804: Add Audit Log Support for Solr Sentry Handlers (Gregory C…
Jul 20, 2015
412eea3
SENTRY-796: Fix log levels in SentryAuthorizationInfo (Colin Ma, Revi…
colinmjj Jul 21, 2015
58a8358
SENTRY-741: Add a test case for hive query which creates dummy partit…
Jul 21, 2015
0dc5aa4
SENTRY-530: Add thrift protocol version check ( Dapeng Sun, Reviewed …
Jul 21, 2015
806953c
SENTRY-485: Add test coverage for auditing in E2E, secure environment…
colinmjj Jul 22, 2015
09d1a92
SENTRY-806: Fix unit test failure: TestMetastoreEndToEnd.testPartionI…
lskuff Jul 23, 2015
b7469a1
SENTRY-799: Fix sentry unit test error: testNonDefault - drop table/d…
lskuff Jul 23, 2015
18ba71b
SENTRY-801: Update README: Does not compile with JDK8 (Colin Ma via G…
shenguoquan Jul 24, 2015
100e239
SENTRY-790: Remove MetaStoreClient interface ( Sravya Tirukkovalur, R…
Jul 21, 2015
a5b37c7
SENTRY-755: HDFS access of data files should be disabled for user wit…
Jul 24, 2015
4da9dc2
SENTRY-808: Change default protocol version to V2 (Sravya Tirukkovalu…
Jul 25, 2015
4a5c9c2
SENTRY-684: Upgrade to Apache Curator 2.7.1 (Dapeng Sun, reviewed by …
sundapeng Jul 27, 2015
6c3184a
SENTRY-822: OutOfMemory in hive e2e test (Colin Ma, Reviewed by Dapen…
colinmjj Jul 28, 2015
92cde11
SENTRY-197: Create tool to dump and load of entire Sentry service (Co…
colinmjj Jul 30, 2015
4622aa4
SENTRY-821: Add thrift protocol version check for generic model (Dape…
sundapeng Jul 30, 2015
789af33
SENTRY-825: SecureAdminHandler no longer pulls collection name for cr…
Jul 31, 2015
4440314
Clean up roles properly in TestHDFSIntegration
Aug 3, 2015
7613ede
SENTRY-810: CTAS without location is not verified properly (Ryan P vi…
lskuff Aug 5, 2015
1e26d56
SENTRY-827: Server scope always grants ALL (Ryan P via Lenni Kuff)
lskuff Aug 5, 2015
19bbaac
SENTRY-829: Fix Sentry Hive Test Failures in TestDbCrossDb class when…
lskuff Aug 5, 2015
6adcf78
SENTRY-834: Fix hive e2e real cluster failures in TestDbConnections, …
lskuff Aug 9, 2015
30c2eaf
SENTRY-780: HDFS Plugin should not execute path callbacks for views (…
Aug 9, 2015
7dd0219
SENTRY-824: Enable column level privileges e2e tests on real cluster …
Aug 9, 2015
1712142
SENTRY-842: Fix typos in pom.xml (Dapeng Sun, reviewed by Guoquan Shen)
sundapeng Aug 11, 2015
35c62ff
SENTRY-828: Cleanup the unnecessary ProviderBackend (Colin Ma, Review…
colinmjj Aug 12, 2015
2265ab8
SENTRY-843: Add the link of wiki page in README.md ( Guoquan Shen, Re…
shenguoquan Aug 12, 2015
a9c8d90
SENTRY-758: Add test cases for partition columns with column level pr…
Aug 13, 2015
5303089
SENTRY-836
Aug 13, 2015
e11062d
SENTRY-850: Fix dbprovider test failures when run on a real cluster o…
Aug 18, 2015
fd293e1
SENTRY-590: Client factory for generic authorization model (Dapeng Su…
sundapeng Aug 20, 2015
d8063f5
SENTRY-839: posexplode() missing from HIVE_UDF_WHITE_LIST (Li Li via …
lskuff Aug 22, 2015
0a93259
SENTRY-739: when user doesn't have admin privileges, show grant throw…
colinmjj Aug 26, 2015
e90a1b6
SENTRY-847: [column level privilege] if grant column level privilege …
shenguoquan Aug 28, 2015
b99fa75
SENTRY-746: After revoke select from view, select fails with a confus…
colinmjj Aug 31, 2015
d4e6bbf
SENTRY-860: Fix intermittent test failure for TestPrivilegesAtFunctio…
colinmjj Aug 31, 2015
f0714a2
SENTRY-864: Update the version to 1.7.0-incubating-SNAPSHOT on trunk …
sundapeng Sep 1, 2015
3d53d25
SENTRY-841: Revoke on SERVER scope breaks Client API, allows any stri…
sundapeng Sep 6, 2015
9129d6f
SENTRY-878: collect_list missing from HIVE_UDF_WHITE_LIST (Li Li via …
lskuff Sep 9, 2015
6203a7a
SENTRY-884: Give execute permission by default to paths managed by se…
lskuff Sep 13, 2015
c9e47c8
SENTRY-881: Allow some metadata operations with column-level privileg…
Sep 15, 2015
9ab8daa
SENTRY-886: HDFSIntegration test testAccessToTableDirectory should wa…
lskuff Sep 15, 2015
5f19d33
SENTRY-885: DB name should be case insensitive in HDFS sync plugin ( …
Sep 11, 2015
dd074b9
SENTRY-892: parsePath should handle empty paths well ( Sravya Tirukko…
Sep 22, 2015
3c3fc5a
SENTRY-893: Synchronize calls in SentryClient and create sentry clien…
Sep 24, 2015
cedfc57
SENTRY-900: User could access sentry metric info by curl without auth…
sundapeng Sep 25, 2015
66b7096
SENTRY-812: Generate audit trail for Sentry generic model when author…
colinmjj Sep 29, 2015
00f74f3
SENTRY-570: Bug fixing for the test case TestMetaStoreWithPigHCat (Co…
colinmjj Oct 8, 2015
b20f200
SENTRY-888: Exceptions in Callable tasks in MetaStoreCacheInitializer…
Oct 9, 2015
557c818
SENTRY-769: [Improve error handling] Make sure groups in list_sentry_…
Oct 12, 2015
7fe082a
SENTRY-913: Thread safe improvement for sqoop binding singleton (Dape…
sundapeng Oct 14, 2015
6c7c5f6
SENTRY-904: Set max message size for thrift messages ( Li Li, Reviewe…
Oct 21, 2015
0263cd4
SENTRY-914: Sentry default webserver port needs to change out of ephe…
sundapeng Oct 22, 2015
fd84139
SENTRY-748: Improve test coverage of Sentry + Hive using complex view…
Oct 23, 2015
11f25c1
SENTRY-748: Improve test coverage of Sentry + Hive using complex view…
Oct 24, 2015
8695570
SENTRY-917: Improve TestRuntimeMetadataRetrieval for keeping database…
sundapeng Oct 26, 2015
b5bbcf9
SENTRY-928: Improve TestDbSentryOnFailureHookLoading for keeping data…
sundapeng Oct 27, 2015
695d60d
SENTRY-930: Improve TestDbDDLAuditLog for keep consistent with Hive m…
sundapeng Oct 27, 2015
4a4bfec
SENTRY-931: Improve TestDatabaseProvider for keep consistent with Hiv…
sundapeng Oct 27, 2015
52ec194
SENTRY-915: Improve Hive E2E tests for keep consistent with Hive meta…
sundapeng Oct 28, 2015
9615cc5
SENTRY-936: getGroup and getUser should always return orginal hdfs va…
Oct 30, 2015
a1feebe
SENTRY-934: Update plugin versions ( Colm O hEigeartaigh, Reviewed b…
Nov 2, 2015
cccebe0
SENTRY-902: SimpleDBProviderBackend should retry the authrization pro…
colinmjj Nov 3, 2015
2bd2581
SENTRY-510: Metrics collection for Sentry HDFS plugin (Li Li via Lenn…
lskuff Nov 3, 2015
0b5ff10
SENTRY-742: Add describe, show/compute stats tests for column level p…
Nov 5, 2015
3d6d69e
SENTRY-742: Add describe, show/compute stats tests for column level p…
Nov 6, 2015
f0aebaa
SENTRY-952: Update source to JDK 7 (Colm O hEigeartaigh via Dapeng Sun)
sundapeng Nov 9, 2015
17a4c97
SENTRY-944: Setting HDFS rules on Sentry managed hdfs paths should no…
Nov 9, 2015
d3793ed
SENTRY-955: Add more meta data operation tests for column level privi…
Nov 9, 2015
25d0fef
SENTRY-923: Fix SentryStore getPrivileges when table require some (Da…
sundapeng Nov 12, 2015
774afb7
filterIndexNames should return the whole indexList
sundapeng Nov 12, 2015
f0b9367
Revert: "filterIndexNames should return the whole indexList"
sundapeng Nov 12, 2015
e6e7d73
SENTRY-945: Avoid logging all DataNucleus queries when debug logging …
lskuff Nov 14, 2015
439d5f2
SENTRY-962: Fix SentryStore getPrivileges when column require some (D…
sundapeng Nov 18, 2015
a83c094
SENTRY-958: TestGrantPrivilege fails on JDK8 (Colm O hEigeartaigh via…
lskuff Nov 20, 2015
0b18f45
SENTRY-960: Blacklist reflect,java_method using hive.server2.builtin.…
Nov 24, 2015
b2d71a8
SENTRY-565: Improve performance of filtering Hive SHOW commands (Coli…
lskuff Nov 25, 2015
5e58f3f
SENTRY-498: Sentry integration with Hive authorization framework V2 (…
sundapeng Nov 26, 2015
80b543f
SENTRY-971: Add profile to enable Hive AuthZ v2 (Dapeng Sun, reviewed…
sundapeng Nov 27, 2015
d2913b8
SENTRY-970: Use random free port for Sqoop tests (Colm O hEigeartaigh…
sundapeng Nov 27, 2015
6052eb2
SENTRY-966: SqoopAuthBindingSingleton uses bad double check locking i…
sundapeng Nov 27, 2015
d2a512e
SENTRY-965: Solr /terms request handler broken because of components …
grchanan Nov 19, 2015
c2747d9
SENTRY-835: Drop table leaves a connection open when using metastorel…
lskuff Dec 3, 2015
0c6062b
SENTRY-972: Include sentry-tests-hive hadoop test script in maven pro…
lskuff Dec 6, 2015
0e2e678
Revert "SENTRY-972: Include sentry-tests-hive hadoop test script in m…
lskuff Dec 9, 2015
7d6390e
SENTRY-972: Include sentry-tests-hive hadoop test script in maven pro…
lskuff Dec 9, 2015
422a175
SENTRY-932: TestColumnEndToEnd error check should non-case sensitive …
sundapeng Dec 11, 2015
8a7b621
SENTRY-979: Speed up the build by avoiding a fork for every test (Col…
lskuff Dec 13, 2015
8624435
SENTRY-973: Bump hamcrest version (Colm O hEigeartaigh via Lenni Kuff)
lskuff Dec 13, 2015
9fe7202
SENTRY-957: Exceptions in MetastoreCacheInitializer should probably n…
lskuff Dec 13, 2015
4b33ad9
SENTRY-953: External Partitions which are referenced by more than one…
Dec 17, 2015
06688ce
SENTRY-988: It's better to let SentryAuthorization setter path always…
Dec 17, 2015
f1a2efa
SENTRY-968: Uri check needs to be case sensitive (Li Li via Lenni Kuff)
lskuff Dec 19, 2015
aca4d0e
SENTRY-987: Move general (non specific handler) solr-sentry code to s…
grchanan Dec 15, 2015
a661c18
SENTRY-832: Clean dependences of sentry-provider-db (Dapeng Sun, revi…
sundapeng Dec 31, 2015
0adfc73
SENTRY-749: Create simple shell for sentry(Colin Ma, reviewed by Hao …
colinmjj Jan 4, 2016
3ee3e93
SENTRY-994: SentryAuthorizationInfoX should override isSentryManaged …
lskuff Jan 6, 2016
6703113
SENTRY-826: TRUNCATE on empty partitioned table in Hive fails (Li Li …
lskuff Jan 10, 2016
5a827f6
SENTRY-906: Add concurrency sentry client tests. (Anne Yu, reviewed b…
Jan 15, 2016
95b1e40
SENTRY-986: Apply PMD plugin to Sentry source (Colm O hEigeartaigh vi…
lskuff Jan 21, 2016
cb92ceb
SENTRY-1015: Improve Sentry + Hive error message when user has insuff…
lskuff Jan 21, 2016
1b6fe62
SENTRY-991: Roles of Sentry Permission needs to be case insensitive (…
lskuff Jan 21, 2016
2ae1bef
SENTRY-1008: Path should be not be updated if the create/drop table/p…
lskuff Jan 21, 2016
0ce626c
SENTRY-1018: HiveServer is not properly shutdown cause BindException …
Jan 22, 2016
ef9b738
Sentry-1009: Improve TestDatabaseProvider to validate test object nam…
anneyu Jan 21, 2016
0f0fd35
SENTRY-1003: Support "reload" by updating the classpath of Sentry fun…
anneyu Jan 25, 2016
8529f8e
SENTRY-995: Simple Solr Shell (Gregory Chanan, reviewed by Colin Ma, …
grchanan Jan 20, 2016
d96f951
SENTRY-1002: PathsUpdate.parsePath(path) will throw an NPE when parsi…
lskuff Jan 28, 2016
20f3960
SENTRY-1036: Move ProviderConstants from sentry-provider-common to se…
colinmjj Jan 29, 2016
a01a750
SENTRY-1037: Set "hadoop.security.authentication" to "kerberos" in th…
grchanan Jan 29, 2016
6ed0a17
SENTRY-1007: Sentry column-level performance for wide tables (Dapeng …
lskuff Jan 30, 2016
39d0731
SENTRY-1044: Tables with non-hdfs locations breaks HMS startup ( Hars…
Feb 2, 2016
a442fa6
SENTRY-1039: Sentry shell tests assume order of option group privileg…
grchanan Jan 31, 2016
597a3cd
SENTRY-1038: More strict checking of SOLR actions in shell (Gregory C…
grchanan Feb 1, 2016
7f12300
Fix PMD error for unused field when enable Hive authz V2 (Dapeng Sun,…
sundapeng Feb 3, 2016
cda611a
SENTRY-997: Update HiveAuthorizer of Sentry after HiveAuthorizer inte…
sundapeng Feb 3, 2016
488f880
SENTRY-1047: Use existing validators in SentryShellSolr (Gregory Chan…
grchanan Feb 3, 2016
25f88cb
SENTRY-1032: Rename shell command group/role shell commands and imple…
grchanan Jan 27, 2016
fba1267
SENTRY-1052: Sentry shell should use kerberos requestor and give bett…
grchanan Feb 5, 2016
cd4e142
SENTRY-1050: Improve clearAll method to avoid throwing exceptions bec…
anneyu Feb 9, 2016
f49fb8d
SENTRY-1011: Add Kafka binding (Ashish K Singh, reviewed by HaoHao an…
anneyu Feb 9, 2016
89828a2
Revert "SENTRY-1011: Add Kafka binding (Ashish K Singh, reviewed by H…
anneyu Feb 10, 2016
8a66930
SENTRY-1054: Updated Apache Shiro dependency ( Hao Hao, Reviewed by: …
Feb 11, 2016
5c2597d
SENTRY-993: list_sentry_privileges_by_authorizable() gone in API v2 (…
Feb 11, 2016
5659d39
SENTRY-1060: Improve the SentryAuthFilter error message when authenti…
anneyu Feb 11, 2016
1665b93
SENTRY-1048: Fix "Critical" issues identified by analysis.apache.org …
Feb 11, 2016
65eda01
SENTRY-1064: Fix TestDbOperations#testCaseSensitivity ( Anne Yu, Revi…
Feb 13, 2016
5a352bf
SENTRY-1055: Sentry service solr constants refer to clusters rather t…
grchanan Feb 17, 2016
219f6bc
SENTRY-1066: fix Sentry oracle upgrade script failed with ORA-0955 du…
anneyu Feb 17, 2016
e6f6c1f
SENTRY-974: create a script to generate large size of sentry and hive…
anneyu Feb 18, 2016
03b2f18
SENTRY-1035: Generic service does not handle group name casing correc…
Feb 22, 2016
59bbfdc
SENTRY-989: RealTimeGet with explicit ids can bypass document level a…
grchanan Feb 19, 2016
cee6233
SENTRY-1097: Fix compilation errors from SentryGenericPolicyProcessor…
sundapeng Feb 23, 2016
2195347
SENTRY-1095: Insert into requires URI privilege on partition location…
Feb 24, 2016
8669f8a
SENTRY-1096: Fix TestDbOperations#testCaseSensitivity failure on a re…
anneyu Feb 23, 2016
bbef55f
SENTRY-1109: Fix mvn clean install fails with PMD validation: Unneces…
anneyu Mar 1, 2016
a0215ee
SENTRY-520: Use the twitter Bootstrap kit (or similar) to beautify th…
lskuff Mar 2, 2016
f727a0c
SENTRY-1099: JDK8 autoboxing compilation failure for SecureRealTimeGe…
anneyu Mar 2, 2016
34b5afc
SENTRY-1087:Capture URI when using Hive Serdes (Hao Hao, Reviewed by:…
haohaoc Mar 2, 2016
13a61bf
SENTRY-1058: remove duplicate junit versions in the root pom and reso…
anneyu Mar 2, 2016
36125fd
SENTRY-1105: Fix unittest TestMetastoreEndToEnd.testAddPartion (Sravy…
haohaoc Mar 2, 2016
a962e24
SENTRY-1065: Make SentryNoSuchObjectException exception error message…
anneyu Mar 3, 2016
1c32c13
SENTRY-1112: Change default value of "sentry.hive.server" to "server1…
lskuff Mar 5, 2016
cfaa570
SENTRY-1021: Add PMD to Sentry tests (Colm O hEigeartaigh, Reviewed b…
haohaoc Mar 7, 2016
36db9ba
SENTRY-1116: Fix PMD violation for Sentry tests after missing commits
haohaoc Mar 7, 2016
b095b5b
SENTRY-1078: Add servlet for dumping configurations (Li Li, Reviewed …
haohaoc Mar 8, 2016
f5989d2
SENTRY-1114: Wrong classname and incorrect _CMD_JAR var in sentryShel…
haohaoc Mar 10, 2016
3d05db9
SENTRY-1111: Apache Sentry should depend on the same version of metri…
haohaoc Mar 10, 2016
baad976
SENTRY-1122: Allow Solr Audit Log to Read Impersonator Info (Gregory …
grchanan Mar 8, 2016
0619d8a
SENTRY-922: INSERT OVERWRITE DIRECTORY permission not working correct…
Mar 11, 2016
e3b77f0
SENTRY-1119: Allow data engines to specify the ActionFactory from con…
colinmjj Mar 11, 2016
c330a21
SENTRY-1136: Remove /Ping and /HealthCheck from Sentry Service Webpag…
haohaoc Mar 15, 2016
bc5c434
SENTRY-1071: Update thrift gen-file with maven plugin (Dapeng Sun, re…
sundapeng Mar 16, 2016
1434d15
SENTRY-869: Add a test where we have multiple column level privileges…
Mar 21, 2016
326c38d
SENTRY-1135: Remove deprecated junit.framework dependencies (Colm O h…
Mar 21, 2016
ac6c0f0
SENTRY-1012: Add core model for Kafka (Ashish K Singh via Dapeng Sun)
sundapeng Jan 26, 2016
2575add
SENTRY-1013: Add policy engine for Kafka (Ashish K Singh via Dapeng Sun)
sundapeng Feb 1, 2016
7ce0373
SENTRY-1011: Add Kafka binding (Ashish K Singh, reviewed by HaoHao an…
Feb 10, 2016
184a32d
SENTRY-1029: Address review comments for Kafka model that came after …
Feb 16, 2016
c117c65
SENTRY-1098: Make Kafka dependency as provided (Ashish K Singh, revie…
haohaoc Mar 2, 2016
51f4e8d
SENTRY-1056: Get service name from Kafka's server properties. (Ashish…
haohaoc Mar 2, 2016
734e190
SENTRY-1030: Restrict Kafka Cluster authorizable to only have "kafka-…
haohaoc Mar 2, 2016
01ed124
SENTRY-1057: Add implementations for acls' CRUD (Ashish K Singh, revi…
haohaoc Mar 5, 2016
9b43369
SENTRY-1113: Fix test failures due to missing files.
haohaoc Mar 7, 2016
00a14d9
SENTRY-1014: Add end-to-end tests for Kafka (Ashish K Singh, Reviewed…
haohaoc Mar 10, 2016
07df5fb
SENTRY-1142: Rebase on master (Ashish K Singh via Hao Hao)
haohaoc Mar 22, 2016
5720b64
SENTRY-1088: PathsUpdate should log invalid paths to make troubleshoo…
haohaoc Mar 22, 2016
4643f98
SENTRY-1157: Fix Unit Tests TestAclsCrud&TestAuthorize failed (Dapeng…
sundapeng Mar 22, 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
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.class
classes/
target/
.classpath
.project
Expand All @@ -16,3 +17,7 @@ sentry-core/sentry-core-common/src/gen
*.ear
test-output/
maven-repo/
*.orig
*.rej
.DS_Store
**/thirdparty/*
67 changes: 67 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,70 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

================================================================================

The Apache Sentry (incubating) distribution includes the following sources/binaries.
The use of these sources/binaries is subject to the terms and conditions of
their respective licenses.

For sentry-tests/sentry-tests-solr/src/test/resources/solr/collection1/conf/velocity/jquery.autocomplete.js:

The MIT License (MIT)

Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For sentry-tests/sentry-tests-solr/src/test/resources/solr/collection1/conf/lang:
stopwords_ar.txt
stopwords_bg.txt
stopwords_fa.txt
stopwords_hi.txt
stopwords_ro.txt

BSD License

Copyright (c) 2005, Jacques Savoy.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

For sentry-tests/sentry-tests-solr/src/test/resources/solr/collection1/conf/lang:
stopwords_da.txt
stopwords_de.txt
stopwords_es.txt
stopwords_fi.txt
stopwords_fr.txt
stopwords_hu.txt
stopwords_it.txt
stopwords_nl.txt
stopwords_no.txt
stopwords_pt.txt
stopwords_ru.txt
stopwords_sv.txt

BSD License

Copyright (c) 2001, Dr Martin Porter, and (for the Java developments) Copyright (c) 2002, Richard Boulton.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ Bug and Issues tracker

* https://issues.apache.org/jira/browse/SENTRY

Wiki

* https://cwiki.apache.org/confluence/display/SENTRY/Home

Building Sentry

Building Sentry requires the following tools:

* Apache Maven 3.0+
* Java JDK 1.6+

Running hive end to end tests requires:
* wget
* Apache Maven 3.2.5+ (Might hit issues with pentaho library with older maven versions)
* Java JDK7 (can't access TBase errors with JDK8)

To compile Sentry, run:

mvn install -DskipTests

To run Sentry tests, run:

mvn test -Pdownload-hadoop
mvn test

To build a distribution, run:

Expand Down
71 changes: 71 additions & 0 deletions bin/sentryShell
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/usr/bin/env bash

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

bin=`dirname "$0"`
myhome=`cd "$bin/.."; pwd`

if [[ -z $SENTRY_HOME ]] ; then
export SENTRY_HOME=$myhome
fi

# check for hadoop in the path
HADOOP_IN_PATH=`which hadoop 2>/dev/null`
if [ -f ${HADOOP_IN_PATH} ]; then
HADOOP_DIR=`dirname "$HADOOP_IN_PATH"`/..
fi
# HADOOP_HOME env variable overrides hadoop in the path
HADOOP_HOME=${HADOOP_HOME:-${HADOOP_PREFIX:-$HADOOP_DIR}}
if [ "$HADOOP_HOME" == "" ]; then
echo "Cannot find hadoop installation: \$HADOOP_HOME or \$HADOOP_PREFIX must be set or hadoop must be in the path";
exit 4;
fi

HADOOP=$HADOOP_HOME/bin/hadoop
if [ ! -f ${HADOOP} ]; then
echo "Cannot find hadoop installation: \$HADOOP_HOME or \$HADOOP_PREFIX must be set or hadoop must be in the path";
exit 4;
fi

export _CMD_JAR=${SENTRY_SHELL_JAR:-sentry-provider-db-*.jar}
for f in ${SENTRY_HOME}/lib/*.jar; do
HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${f}
done
export HADOOP_CLASSPATH

for f in ${SENTRY_HOME}/lib/server/*.jar; do
HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${f}
done
for f in ${SENTRY_HOME}/lib/plugins/*.jar; do
HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${f}
done

args=()
# get the type argument for the command, and check use the shell for hive model or for generic model.
# todo: currently, supoort hive only, need add generic model support
while [ $# -gt 0 ]; do # Until you run out of parameters . . .
if [[ "$1" = "-t" || "$1" = "--type" ]]; then
# currently, only support the hive model
if ! [[ $2 =~ ^[H|h][I|i][V|v][E|e]$ ]]; then
echo "Doesn't support the type $2!"
exit 1
fi
fi
args+=" $1"
shift
done

exec $HADOOP jar ${SENTRY_HOME}/lib/${_CMD_JAR} org.apache.sentry.provider.db.tools.SentryShellHive ${args[@]}
46 changes: 46 additions & 0 deletions build-tools/sentry-pmd-ruleset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ruleset name="sentry-pmd" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>
A PMD ruleset for Apache Sentry
</description>

<rule ref="rulesets/java/basic.xml">
<exclude name="CheckResultSet"/>
<exclude name="AvoidUsingOctalValues"/>
</rule>
<rule ref="rulesets/java/unusedcode.xml"/>
<rule ref="rulesets/java/imports.xml"/>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/empty.xml">
<exclude name="EmptyCatchBlock" />
</rule>
<rule ref="rulesets/java/migrating.xml">
<exclude name="JUnitUseExpected" />
<exclude name="JUnit4TestShouldUseAfterAnnotation" />
<exclude name="JUnit4TestShouldUseBeforeAnnotation" />
</rule>
<rule ref="rulesets/java/unnecessary.xml">
<exclude name="UselessParentheses" />
</rule>

</ruleset>
2 changes: 1 addition & 1 deletion conf/sentry-site.xml.hive-client.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</property>
<property>
<name>sentry.service.server.principal</name>
<value>hivemeta/centos64.cloudera.com@HS2.CLOUDERA.COM</value>
<value>sentry/centos64.example.com@EXAMPLE.COM</value>
</property>
<property>
<name>sentry.metastore.service.users</name>
Expand Down
4 changes: 2 additions & 2 deletions conf/sentry-site.xml.hive-client.template
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<property>
<name>sentry.hive.failure.hooks</name>
<value> </value>
<description>Deprecated Name: hive.sentry.failure.hooks. Any failure hooks to be configured like navigator (i.e. com.cloudera.navigator.audit.hive.HiveSentryOnFailureHook)</description>
<description>Deprecated Name: hive.sentry.failure.hooks</description>
</property>

<property>
Expand All @@ -97,4 +97,4 @@
</description>
</property>

</configuration>
</configuration>
Empty file modified dev-support/smart-apply-patch.sh
100644 → 100755
Empty file.
12 changes: 11 additions & 1 deletion dev-support/test-patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def jira_post_comment(result, defect, branch, username, password):
# hack (from hadoop) but REST api doesn't list attachments?
def jira_get_attachment(result, defect, username, password):
html = jira_get_defect_html(result, defect, username, password)
pattern = "(/secure/attachment/[0-9]+/%s[0-9\.\-]*\.(patch|txt|patch\.txt))" % (re.escape(defect))
pattern = "(/secure/attachment/\d+/%s[\w\.\-]*\.(patch|txt|patch\.txt))" % (re.escape(defect))
matches = []
for match in re.findall(pattern, html, re.IGNORECASE):
matches += [ match[0] ]
Expand Down Expand Up @@ -282,6 +282,16 @@ def post_jira_comment_and_exit():
print "ERROR: No attachments found for %s" % (defect)
sys.exit(1)
result.attachment = attachment
# parse branch info
branchPattern = re.compile('/secure/attachment/\d+/%s(\.\d+)-(\S+)\.(patch|txt|patch.\txt)' % (re.escape(defect)))
try:
branchInfo = re.search(branchPattern,attachment)
if branchInfo:
branch = branchInfo.group(2)
print "INFO: Branch info is detected from attachment name: " + branch
except:
branch = "master"
print "INFO: Branch info is not detected from attachment name, use branch: " + branch
patch_contents = jira_request(result, result.attachment, username, password, None, {}).read()
patch_file = "%s/%s.patch" % (output_dir, defect)
with open(patch_file, 'a') as fh:
Expand Down
Loading