Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44816DD25 for ; Tue, 10 Jul 2012 16:07:23 +0000 (UTC) Received: (qmail 20622 invoked by uid 500); 10 Jul 2012 16:07:22 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 20570 invoked by uid 500); 10 Jul 2012 16:07:22 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 20562 invoked by uid 99); 10 Jul 2012 16:07:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 16:07:22 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dcapwell@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 16:07:18 +0000 Received: by yenl1 with SMTP id l1so166491yen.32 for ; Tue, 10 Jul 2012 09:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dGDnwkebOaLu7NNO52Fljc1RFuKH7RaBR9uHk9ptN6I=; b=I/K30/R9n0vmq4+iurJkhLxkWuaQNDqXAvjdKzt1FMYx/sQwbKDnUKckDydzPGFXfI mW2aRmDm9T45HlQFyotQ/0KzxAW+BmDSZA/fCdBKk5g49eS08i9+XkUzJJuD1x1ENI2h VYhKmNdMt0ysF/2BybryH9cNLTwHlUeqd2QBZdwA04zyGB4eJLkQb3hKYt68URMDq5rJ OVRL/AaK5lGv8rwVLQWiP91L1DLnJeXOaafxLJZSl7AMZDNRPVZoqgoDGOZfO4dMpz1c Th3/YhQzcYUPdTlA5JTP6GsuHeasi5AdYybYlq2Bl2QaZR2tmQFDVNON6mV8yZxMgo/O Wqyg== MIME-Version: 1.0 Received: by 10.50.156.133 with SMTP id we5mr11612574igb.62.1341936417710; Tue, 10 Jul 2012 09:06:57 -0700 (PDT) Received: by 10.231.44.137 with HTTP; Tue, 10 Jul 2012 09:06:57 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Jul 2012 09:06:57 -0700 Message-ID: Subject: Re: how to hide user and password in sftp in for statement From: David Capwell To: users@camel.apache.org Content-Type: multipart/alternative; boundary=e89a8f2350097d235e04c47beb7b X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f2350097d235e04c47beb7b Content-Type: text/plain; charset=ISO-8859-1 Ill try to setup jasypt to hide the password. Is there a way to paramiterize the from URI? I can see strings getting longer and longer with only slight differences, so would be good to reuse. When I was doing some digging I saw a way in spring to have the from reference a bean, but in a non spring context i haven't found something yet. thanks for your time On Sat, Jul 7, 2012 at 1:09 AM, Claus Ibsen wrote: > Hi > > You can encrypt parameters of the endpoints using jasypt > http://camel.apache.org/jasypt.html > > > > On Fri, Jul 6, 2012 at 10:16 PM, David Capwell wrote: > > Hi, I am trying to use camel to get data out of an sftp end point. At > the > > moment I have two issues. First, I want to hide the username and > password. > > Second I would like to be able to reuse the uri and allow the sftp's > > directory to be paramiterized. Going over the docs online, I don't see a > > clear way to do this. I have found > > > http://camel.465427.n5.nabble.com/Using-dynamic-parameter-values-in-XML-DSL-Route-td4414073.htmltalk > > about using header and recipientList to allows params, but that only > > effects the to, is there another way to do this in from (can't use direct > > since we won't know the routes till runtime)? > > > > Below is my current XML for this (java code is not using spring): > > > > > xsi:schemaLocation="http://camel.apache.org/schema/spring > > http://camel.apache.org/schema/spring/camel-spring.xsd"> > > > > > > > uri="sftp:// > > > myuser@example.com/path/to/data?password=password&initialDelay=200&delay=200000&binary=true&idempotent=true&noop=true > > "/> > > > > inbox/${in.header.CamelFileName} > > > > > > uri="aws-s3://mybucket?amazonS3Client=#amazonS3Client&delay=5000&maxMessagesPerPoll=5"/> > > > > > > > > > > > > thanks for your time reading this email > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cibsen@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > --e89a8f2350097d235e04c47beb7b--