Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify privileged user for database drop/create (PostgreSQL only) #79

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sauliusgrigaitis
Copy link
Contributor

I'm surprised why so much people use privileged user for database access from Rails. App database user should not be allowed to drop/create databases. So I added options to specify privileged username and password (PostgreSQL only) for those who use unprivileged user for Rails app:

set :db_remote_superuser, 'postgres'
set :db_remote_superuser_password, 'secret'
set :db_local_superuser, 'postgres'
set :db_local_superuser_password, 'secret'

Solves #40

@sauliusgrigaitis sauliusgrigaitis changed the title Allow to specify privileged user for database drop/create (PostgreSQL only). Solves #40 Allow to specify privileged user for database drop/create (PostgreSQL only) Nov 22, 2015
@numbata
Copy link
Collaborator

numbata commented Nov 30, 2016

What about idea of PR #100 : allow to use local database.yml with custom credentials for remote database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants