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 F3474200C55 for ; Thu, 13 Apr 2017 12:33:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1E63160B98; Thu, 13 Apr 2017 10:33:23 +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 431BE160B8B for ; Thu, 13 Apr 2017 12:33:23 +0200 (CEST) Received: (qmail 74163 invoked by uid 500); 13 Apr 2017 10:33:22 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 74151 invoked by uid 99); 13 Apr 2017 10:33:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2017 10:33:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AD6F4CCE16 for ; Thu, 13 Apr 2017 10:33:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id n5SxZSgLQhQQ for ; Thu, 13 Apr 2017 10:33:20 +0000 (UTC) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9D1B65FB5C for ; Thu, 13 Apr 2017 10:33:20 +0000 (UTC) Received: by mail-yw0-f171.google.com with SMTP id v207so7863602ywc.2 for ; Thu, 13 Apr 2017 03:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jApgw1qy/0j6OS4bakSez9DYqfY8vOIKCPQMNyJfBFQ=; b=bUNa8/aKoqluQWUZ9sOZAMxyVUDU82lO9oHnC292I+mkxAodFn+wtYBltOq5BN0WsE F6VLoh87h5apx/rxWWiiscSTfFOYsA2fWx7Zpge9pqdhtpyiex7my6yD2BGgdxIropss ITWTnxJKWVhw1lxjYvl9vOYODQtiKGk+xiPcPRkGETVOjC8p/ersmuUo6nlVr+Z7umx2 rSlivKK/6JRqF8T7Yv2F/14IdO5XT03x7TsML/oPWo4PYzhTQZumYLN3Cv12SIUdWiEO EgOz/9AsRmdbc26rmTARO1NMVwxEWhChgoI1fI7kHilDfXJ8veDLZz7s0KZkTSrAZz6u LtHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jApgw1qy/0j6OS4bakSez9DYqfY8vOIKCPQMNyJfBFQ=; b=csTflcjLB+3ct/Mp0JnpTsWSEAuimEI4LcRJdeFI6Z89gZBbp/uqUBhiU+oEG0BFfR a2qXX0v6BCJKEegmmAUbKyb34WWA11PRay4WHk8jOf4u9+/Wb9KLsnUv4groVzYkKlEr S35yyFGz2jeUtVuabuAPor4ggXk3mg4NGs77H6WYNMo9D19ozZaovvDbZ6pARlyW1eQz LCE4/45JRTb9spCiy/IXGOTaZN1+h/IKVMTOBa7wI12axl7zubkunnWAnbGAIiOU2Zqc Nyz/OKjPRoH8m7Ju3iG6aBBZPKLrgmCQ07/WC4FtCCNOiEfwNJzF0qDGMUCagD0jnb9X LkoQ== X-Gm-Message-State: AN3rC/7vdhTMk6m94zL9izu2pFWRcpeGfZUj29QjYsVK94oTWRTOuh8N SPxnnga9aCwyMFk/FY4H6SrdqI+hfjbV X-Received: by 10.129.124.214 with SMTP id x205mr1596238ywc.8.1492079599735; Thu, 13 Apr 2017 03:33:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.171.52 with HTTP; Thu, 13 Apr 2017 03:33:19 -0700 (PDT) In-Reply-To: References: From: Joe Gresock Date: Thu, 13 Apr 2017 10:33:19 +0000 Message-ID: Subject: Re: AWS processor credentials question To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary=001a1149258284f312054d09dab7 archived-at: Thu, 13 Apr 2017 10:33:24 -0000 --001a1149258284f312054d09dab7 Content-Type: text/plain; charset=UTF-8 Actually it's a little more complicated than the code I suggested, since DefaultAWSCredentialsProviderChain.getInstance() is an AWSCredentialsProvider, not an AWSCredentials object. But the idea would be similar. On Thu, Apr 13, 2017 at 10:21 AM, Joe Gresock wrote: > AWS-related devs (I'm looking at James Wing and Adam Lamar), > > I just added [1] to propose allowing AWS processors to specify whether to > use anonymous credentials or to use the default AWS client credentials > provider chain. The driver for this is that we would like to use EC2 > instance profiles with the NiFi AWS processors, but this is not currently > possible because NiFi passes in AnonymousAWSCredentials to the AWS client > constructor if no credentials are explicitly configured in the processor. > If we use the DefaultAWSCredentialsProviderChain.getInstance(), I think > it would find our EC2 instance profile. > > My question to you is how you'd like to see this implemented. Shall we > add a property to AbstractAWSProcessor called "Allow Anonymous > Credentials"? Then in AbstractAWSProcessor.getCredentials(ProcessContext > context), the return statement could be: > > return allowAnonymousCredentials > ? new AnonymousAWSCredentials > : DefaultAWSCredentialsProviderChain.getInstance(); > > I thought I'd ask here first, because I see many of the AWS methods marked > Deprecated, and I didn't want to start adding code if it was going to go > away soon. > > [1] https://issues.apache.org/jira/browse/NIFI-3703 > > Thanks, > Joe > > -- > I know what it is to be in need, and I know what it is to have plenty. I > have learned the secret of being content in any and every situation, > whether well fed or hungry, whether living in plenty or in want. I can > do all this through him who gives me strength. *-Philippians 4:12-13* > -- I know what it is to be in need, and I know what it is to have plenty. I have learned the secret of being content in any and every situation, whether well fed or hungry, whether living in plenty or in want. I can do all this through him who gives me strength. *-Philippians 4:12-13* --001a1149258284f312054d09dab7--