How to hide JDBC connection credentials from git?

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: How to hide JDBC connection credentials from git?
Date: 2016-05-31 09:32:20
Message-ID: CAADeyWj=wV1iWacxEECChUwq4FEbmb19jz4HW6L1hypo4whSWw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I work on several small Java projects (using Maven+NetBeans) and store them
in a public git repository.

I would like to use PostgreSQL JDBC in some of the projects, but don't want
to make the connection credentials of my database public.

Surely there are other developers out there, who have already faced similar
problem.

Please share your solutions.

It is probably possible to put the database name/user/password into a
*.properties file and then ignore it in git repository, but keep it in the
workarea?

Thank you
Alex

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Szymon Lipiński 2016-05-31 10:33:08 Re: How to hide JDBC connection credentials from git?
Previous Message Brian Sutherland 2016-05-31 09:22:12 Re: After replication failover: could not read block X in file Y read only 0 of 8192 bytes