You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Sathwik B P <sa...@gmail.com> on 2016/09/18 15:52:42 UTC
How to encrypt the passwords used in settings.yaml
Hi,
How do I secure my password used in settings.yaml file? The password goes
out in clear text as seen below.
** Execute
http://admin:xxxxxxxx@192.168.0.101:8080/repository/snapshots/org/apache/ode/apache-ode-docs/1.3.7-SNAPSHOT/apache-ode-docs-1.3.7-SNAPSHOT.pom
settings.yaml
--------------------
repositories:
release_to:
url: http://localhost:8080/repository/snapshots
username: admin
password: xxxxxxxx
regards,
sathwik
Re: How to encrypt the passwords used in settings.yaml
Posted by Alex Wood <aw...@redhat.com>.
On 09/18/2016 11:52 AM, Sathwik B P wrote:
> Hi,
>
> How do I secure my password used in settings.yaml file? The password goes
> out in clear text as seen below.
>
> ** Execute
> http://admin:xxxxxxxx@192.168.0.101:8080/repository/snapshots/org/apache/ode/apache-ode-docs/1.3.7-SNAPSHOT/apache-ode-docs-1.3.7-SNAPSHOT.pom
>
> settings.yaml
> --------------------
> repositories:
> release_to:
> url: http://localhost:8080/repository/snapshots
> username: admin
> password: xxxxxxxx
>
> regards,
> sathwik
>
Looks like the recommended way is to move the username and password out
to ~/.buildr/buildr.rb which is a special file private to you.
From lib/buildr/packaging/artifacts.rb
# For example, the Buildfile will contain the repository URL used by
# all developers:
# repositories.release_to[:url] ||= 'sftp://example.com/var/www/repo'
# Your private buildr.rb will contain your credentials:
# repositories.release_to[:username] = 'john'
# repositories.release_to[:password] = 'secret'
---------
Regards,
Alex