Ruby on Rails Monday, December 30, 2013

How can I separate the database DBA user and app access user in rails?  The app user will be able to run the app but perform no DDL.  The DBA user will be used for migrations.

I do not want the user that runs the rails app to be able to create, drop or modify database objects.  This type of user access-rights separation is a pretty minimal best practice and I am concerned that this does not seem to be the norm in the rails world.  What am I missing?

My current thinking is that I should create 2 stanzas per database in the database.yml file.  One for the dba user and one for the normal app user.  Does anyone have any better suggestions?

__
Marc

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/add2b834-6dd6-4cfd-b99f-a8eeab5bdcd2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment