Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EAE162009FB for ; Fri, 6 May 2016 16:30:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E9866160A0C; Fri, 6 May 2016 14:30:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 19BCE1608F8 for ; Fri, 6 May 2016 16:30:45 +0200 (CEST) Received: (qmail 40821 invoked by uid 500); 6 May 2016 14:30:45 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 40809 invoked by uid 99); 6 May 2016 14:30:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 14:30:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A772A18014A for ; Fri, 6 May 2016 14:30:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.82 X-Spam-Level: X-Spam-Status: No, score=-1.82 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_MANYTO=0.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id g_lasfOawvAR for ; Fri, 6 May 2016 14:30:42 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 76A195F3DA for ; Fri, 6 May 2016 14:30:41 +0000 (UTC) Received: (qmail 40792 invoked by uid 99); 6 May 2016 14:30:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 14:30:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 3C5892B5D11; Fri, 6 May 2016 14:30:40 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3216375045117905976==" MIME-Version: 1.0 Subject: Re: Review Request 46699: ATLAS-661 : Rest API Authentication. From: Selvamohan Neethiraj To: Hemanth Yamijala , Velmurugan Periasamy , Larry McCay , Selvamohan Neethiraj , Erik Bergenholtz , Madhan Neethiraj , Shwetha GS Cc: atlas , Nixon Rodrigues Date: Fri, 06 May 2016 14:30:40 -0000 Message-ID: <20160506143040.1838.10181@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Selvamohan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/46699/ X-Sender: Selvamohan Neethiraj X-ReviewBoard-ShipIt: 1 References: <20160506062437.1837.87425@reviews.apache.org> In-Reply-To: <20160506062437.1837.87425@reviews.apache.org> X-ReviewBoard-Diff-For: common/src/main/java/org/apache/atlas/utils/AuthenticationUtil.java Reply-To: Selvamohan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Fri, 06 May 2016 14:30:47 -0000 --===============3216375045117905976== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46699/#review132033 ----------------------------------------------------------- Ship it! Installed standalone atlas webserver. Verified REST api accesses with no Basic auth, wrong cred and valid cred. Works as expected. - Selvamohan Neethiraj On May 6, 2016, 2:24 a.m., Nixon Rodrigues wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/46699/ > ----------------------------------------------------------- > > (Updated May 6, 2016, 2:24 a.m.) > > > Review request for atlas, Erik Bergenholtz, Larry McCay, Madhan Neethiraj, Shwetha GS, Selvamohan Neethiraj, Suma Shivaprasad, Velmurugan Periasamy, and Hemanth Yamijala. > > > Bugs: ATLAS-661 > https://issues.apache.org/jira/browse/ATLAS-661 > > > Repository: atlas > > > Description > ------- > > Introduced Rest API Authentication. > Introduced role and encoded password in user-credential file. > Authentication to fall back to file type if LDAP fails. > Changes in quick_start.py, atlas_admin.py & import_hive.sh to take password argument for basic authentication > > > Diffs > ----- > > addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java 104c0c5 > client/src/main/java/org/apache/atlas/AtlasAdminClient.java 473f72a > client/src/main/java/org/apache/atlas/AtlasClient.java be34802 > common/src/main/java/org/apache/atlas/utils/AuthenticationUtil.java PRE-CREATION > dashboardv2/public/js/utils/Utils.js 7b2db79 > distro/src/conf/users-credentials.properties 94e7cf4 > webapp/src/main/java/org/apache/atlas/examples/QuickStart.java 79b8124 > webapp/src/main/java/org/apache/atlas/web/dao/UserDao.java 76784c4 > webapp/src/main/java/org/apache/atlas/web/filters/AtlasAuthenticationEntryPoint.java b77bd28 > webapp/src/main/java/org/apache/atlas/web/security/AtlasADAuthenticationProvider.java 96dca45 > webapp/src/main/java/org/apache/atlas/web/security/AtlasAbstractAuthenticationProvider.java b2b11da > webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java 7f87bd5 > webapp/src/main/java/org/apache/atlas/web/security/AtlasFileAuthenticationProvider.java b3e3354 > webapp/src/main/java/org/apache/atlas/web/security/AtlasLdapAuthenticationProvider.java d911c1b > webapp/src/main/resources/atlas-admin-site.xml ab8ba3d > webapp/src/main/resources/spring-security.xml 8533473 > webapp/src/main/webapp/WEB-INF/web.xml deb97d9 > webapp/src/test/java/org/apache/atlas/web/resources/BaseResourceIT.java 54d8d92 > webapp/src/test/java/org/apache/atlas/web/security/FileAuthenticationTest.java 7e4c2c8 > webapp/src/test/java/org/apache/atlas/web/security/NegativeSSLAndKerberosTest.java 9aac32a > webapp/src/test/java/org/apache/atlas/web/security/SSLAndKerberosTest.java 2be52e7 > webapp/src/test/java/org/apache/atlas/web/security/UserDaoTest.java 5b5c70e > > Diff: https://reviews.apache.org/r/46699/diff/ > > > Testing > ------- > > Manual Testing done. > performed mvn clean install > performed mvn clean package -Pdist > > Found Failed tests: > HiveLineageJerseyResourceIT.setUp:52->setupInstances:169->table:234->BaseResourceIT.createInstance:129 ยป AtlasService > > Tests run: 10, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 22.476 sec <<< FAILURE! - in org.apache.atlas.repository.graph.GraphBackedRepositoryHardDeleteTest > testDisconnectBidirectionalReferences(org.apache.atlas.repository.graph.GraphBackedRepositoryHardDeleteTest) Time elapsed: 0.566 sec <<< FAILURE! > > > Thanks, > > Nixon Rodrigues > > --===============3216375045117905976==--