python - Can a Django application authenticate with MySQL using its linux user? -
the company work starting development of django business application use mysql database engine. i'm looking way keep having database credentials stored in plain-text config file.
i'm coming windows/iis background vhost can impersonate existing windows/ad user, , use credentials authenticate ms sql server.
as example: if django application running apache2+mod_python on ubuntu server, sane add "www-data" user mysql , let mysql verify credentials using pam module?
hopefully of makes sense. in advance!
mysql controls access tables own list of users, it's better create mysql users permissions. might want create roles instead of users don't have many manage: admin, read/write role, read-only role, etc.
a django application runs web server user. change "impersonate" ubuntu user, if user deleted? leave "www-data" , manage database role way.
Comments
Post a Comment