From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>, xen-devel@lists.xenproject.org
Cc: Julien Grall <julien.grall@citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [OSSTEST PATCH 03/11] Configuration: No longer set password=<~/.xen-osstest/db-password>
Date: Mon, 7 Dec 2015 09:52:29 +0000 [thread overview]
Message-ID: <1449481949.29724.25.camel@citrix.com> (raw)
In-Reply-To: <1449257734-26860-4-git-send-email-ian.jackson@eu.citrix.com>
On Fri, 2015-12-04 at 19:35 +0000, Ian Jackson wrote:
> Instead, expect the user to provide ~/.pgpass.
>
> This is a good idea because we don't really want to be handling
> passwords ourselves if we can help it. And, we are shortly going to
> want to do some exciting mangling of the database access
> configuration, which would be complicated by the presence of this
> password expansion.
>
> This may break for some users of existing Executive (non-standalone)
> setups which are using production-config-cambridge or the default
> built-in configuration.
I think you need to create a ~osstest/.pgpass in Cambridge before deploying
this.
It seems like there ought to be some docs update, but the existing bit
about DbnamePat in README doesn't mention password already, so I guess that
is ok!
Assuming Cambridge's .pgpass is created:
Acked-by: Ian Campbell < ian.campbell@citrix.com >
My personal config seems OK already. I've just moved aside what I think is
a stale db-password so I'll know for sure next time I have play.
We should delete ~osstest/.xen-osstest/db-password once this passes the
Cambridge pushgate, otherwise we'll be confused in 6 months looking at it.
I've added some CC's based on:
osstestdb=> SELECT DISTINCT username FROM tasks;
username
------------------
rogerpau@osstest
ijc@woking
iwj@osstest
iwj@woking
ianc@kazak
osstest@osstest
julieng@osstest
ianc@woking
ianj@osstest
iwj@mariner
ianc@osstest
(13 rows)
osstestdb=>
FYI a reasonable .pgpass is:
osstestdb.xs.citrite.net:*:*:<<USERNAME>>:<<YOUR PASSWORD>>
osstestdb:*:*:<<USERNAME>>:<<YOUR PASSWORD>>
>
> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
> ---
> Osstest.pm | 3 +--
> production-config-cambridge | 2 +-
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/Osstest.pm b/Osstest.pm
> index ec50d60..95e4d46 100644
> --- a/Osstest.pm
> +++ b/Osstest.pm
> @@ -191,8 +191,7 @@ sub readglobalconfig () {
>
> # dynamic default config settings
> $c{ExecutiveDbnamePat} ||= "dbname=<dbname>;user=<whoami>;".
> - "host=<dbname>.db.$c{DnsDomain};".
> - "password=<~/.xen-osstest/db-password>"
> + "host=<dbname>.db.$c{DnsDomain}"
> if defined $c{DnsDomain};
> # 1. <\w+> is replaced with variables:
> # <dbname> database name
> diff --git a/production-config-cambridge b/production-config-cambridge
> index f801303..412766c 100644
> --- a/production-config-cambridge
> +++ b/production-config-cambridge
> @@ -23,7 +23,7 @@ HostDB_Executive_NoConfigDB 1
>
> OwnerDaemonHost owner.daemon.osstest.xs.citrite.net
> QueueDaemonHost queue.daemon.osstest.xs.citrite.net
> -ExecutiveDbnamePat
> dbname=<dbname>;user=<whoami>;host=osstestdb.xs.citrite.net;password=<~/.
> xen-osstest/db-password>
> +ExecutiveDbnamePat
> dbname=<dbname>;user=<whoami>;host=osstestdb.xs.citrite.net
>
> HostnameSortSwapWords 1
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-12-07 9:53 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 19:35 [OSSTEST PATCH 00/11] Test database handling Ian Jackson
2015-12-04 19:35 ` [OSSTEST PATCH 01/11] tcl daemons: log host and port number we bind to, at startup Ian Jackson
2015-12-07 9:42 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 02/11] cri-getconfig: Break out exec_resetting_sigint Ian Jackson
2015-12-07 9:43 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 03/11] Configuration: No longer set password=<~/.xen-osstest/db-password> Ian Jackson
2015-12-07 9:52 ` Ian Campbell [this message]
2015-12-07 15:05 ` Ian Jackson
2015-12-04 19:35 ` [OSSTEST PATCH 04/11] mg-debug-fail: New utility script for debugging Ian Jackson
2015-12-07 9:55 ` Ian Campbell
2015-12-07 15:10 ` Ian Jackson
2015-12-07 15:40 ` Ian Campbell
2015-12-07 15:41 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 05/11] mg-debug-fail: Catch attempts to read from a tty Ian Jackson
2015-12-07 9:55 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 06/11] cri-getconfig: Provide get_psql_cmd and get_pgdump_cmd Ian Jackson
2015-12-07 9:57 ` Ian Campbell
2015-12-07 14:59 ` Ian Jackson
2015-12-04 19:35 ` [OSSTEST PATCH 07/11] cri-getconfig: Provide debugging for get_psql_cmd Ian Jackson
2015-12-07 10:00 ` Ian Campbell
2015-12-07 15:02 ` Ian Jackson
2015-12-07 15:38 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 08/11] Osstest.pm: Break out and export globalconfigfiles Ian Jackson
2015-12-07 10:03 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 09/11] mg-schema-test-database: New script Ian Jackson
2015-12-07 10:12 ` Ian Campbell
2015-12-07 15:12 ` Ian Jackson
2015-12-07 15:42 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 10/11] mg-schema-test-database: Move setting of test_cfg_setting to dbname Ian Jackson
2015-12-07 10:12 ` Ian Campbell
2015-12-04 19:35 ` [OSSTEST PATCH 11/11] mg-schema-test-database: Sort out daemons; provide `daemons' subcommand Ian Jackson
2015-12-07 10:18 ` Ian Campbell
2015-12-07 15:16 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449481949.29724.25.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=julien.grall@citrix.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.