Re: Securing .pgpass File?

From: Darren Duncan <darren(at)darrenduncan(dot)net>
To: sthomas(at)optionshouse(dot)com
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Securing .pgpass File?
Date: 2012-10-01 17:19:42
Message-ID: 5069D0AE.4030905@darrenduncan.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You should never put your passwords (or private keys) in source control; it
would be better to use the puppet/bcfg option.

Generally you want to keep your sensitive and less sensitive info separate. If
you have passwords in version control and later want to delete them, you have to
mess with your version control history, and backups, and so on. You really
don't want to compromise the quality of your version control.

And if you ever put passwords in version control, you should change those
passwords, so the copies in version control can be left alone, but no attacker
can use them (assuming those aren't human-chosen and provide clues to discerning
how they choose other newer passwords).

-- Darren Duncan

Shaun Thomas wrote:
> Hey,
>
> So, I've searched around through the archives, and it seems this has
> come up a couple times in the past. But one scenario that was never
> explored was when using one .pgpass file in a cluster of servers, in
> which case it makes sense to save it in source control, or something
> like puppet/bcfg. So my question is this:
>
> Has anyone come up with a good solution for distributing a .pgpass file
> that doesn't expose it to anyone who has access to the distribution
> mechanism?
>
> I ask because several people can access and make pull requests to our
> configuration management system, but except for .pgpass, none of these
> files contain plain-text passwords. We have dozens of systems running
> PostgreSQL, and manually setting up each one is a waste of time; we have
> configuration management for a reason.
>
> Am I just missing something, here?
>
> Thanks, everyone!
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2012-10-01 17:26:35 Re: Securing .pgpass File?
Previous Message Phoenix Kiula 2012-10-01 16:59:40 Re: Again, problem with pgbouncer