Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Postgres user has SUPERUSER #4

Open
jbinto opened this issue Apr 21, 2014 · 0 comments
Open

Postgres user has SUPERUSER #4

jbinto opened this issue Apr 21, 2014 · 0 comments
Labels

Comments

@jbinto
Copy link
Owner

jbinto commented Apr 21, 2014

The postgresql user bikeways_staging (et al) has SUPERUSER privilege. This is necessary to create the PostGIS extension.

This violates least privilege. We could fix this using the approach suggested in GeoRails:

You'll set up two users in the database. One is the normal database user that your Rails app will connect as. The other needs to be a superuser, and is used to create the databases initially (i.e. using rake db:create). Creating a PostGIS database requires superuser privileges unless you set up a special template for it, and for simplicity, we won't do that right now.

Curious about the template hint there. Not sure exactly what it means, but perhaps we could create a PostGIS template in the Ansible playbook.

@jbinto jbinto added the bug label Apr 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant