Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2C3C188EB for ; Thu, 11 Feb 2016 02:46:57 +0000 (UTC) Received: (qmail 5700 invoked by uid 500); 11 Feb 2016 02:46:52 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 5668 invoked by uid 500); 11 Feb 2016 02:46:52 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 5649 invoked by uid 99); 11 Feb 2016 02:46:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 02:46:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 8D46329B354; Thu, 11 Feb 2016 02:46:51 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7792286570519938628==" MIME-Version: 1.0 Subject: Re: Review Request 43281: AMBARI-14885: After exporting blueprint from existing cluster knox_master_secret is exported. From: Alejandro Fernandez To: Alejandro Fernandez , Di Li , Robert Nettleton Cc: Amruta Borkar , Ambari Date: Thu, 11 Feb 2016 02:46:51 -0000 Message-ID: <20160211024651.24149.76384@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Alejandro Fernandez X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/43281/ X-Sender: Alejandro Fernandez X-ReviewBoard-ShipIt: 1 References: <20160210193700.24149.89923@reviews.apache.org> In-Reply-To: <20160210193700.24149.89923@reviews.apache.org> X-ReviewBoard-ShipIt-Only: 1 Reply-To: Alejandro Fernandez X-ReviewRequest-Repository: ambari --===============7792286570519938628== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/43281/#review118804 ----------------------------------------------------------- Ship it! Ship It! - Alejandro Fernandez On Feb. 10, 2016, 7:37 p.m., Amruta Borkar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/43281/ > ----------------------------------------------------------- > > (Updated Feb. 10, 2016, 7:37 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Di Li, and Robert Nettleton. > > > Bugs: AMBARI-14885 > https://issues.apache.org/jira/browse/AMBARI-14885 > > > Repository: ambari > > > Description > ------- > > AMBARI-14885: After exporting blueprint from existing cluster knox_master_secret is exported. This causes error while registering the blueprint. > Following error occurs while using and exported blueprint if a password or secret property is present in the blueprint: > { "status" : 400, "message" : "Blueprint configuration validation failed: Secret references are not allowed in blueprints, replace following properties with real passwords:\n Config:knox-env Property:knox_master_secret\n" } > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java de31a0d > ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java 7a77a25 > > Diff: https://reviews.apache.org/r/43281/diff/ > > > Testing > ------- > > In this patch, isPropertyIncluded() method is modified to include the properties marked as secret. Corresponding test cases are also added. > The fix excludes properties marked as 'secret' while export blueprint. > Test cases are added to test various combination by which a property can be marked as 'secret'. > Test cases verify that the properties that do not match the rule "*SECRET" are still included. > > > Thanks, > > Amruta Borkar > > --===============7792286570519938628==--