buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Wood <aw...@redhat.com>
Subject Re: How to encrypt the passwords used in settings.yaml
Date Mon, 19 Sep 2016 14:05:44 GMT
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


Mime
View raw message