njayaram2 commented on a change in pull request #399: DL: Enable transfer
learning
URL: https://github.com/apache/madlib/pull/399#discussion_r288310761
##########
File path: src/madpack/madpack.py
##########
@@ -1027,8 +1027,9 @@ def run_install_check(args, testcase, madpack_cmd):
_internal_run_query("DROP OWNED BY %s CASCADE;" % (test_user), True)
_internal_run_query("DROP USER IF EXISTS %s;" % (test_user), True)
- _internal_run_query("CREATE USER %s;" % (test_user), True)
+ _internal_run_query("CREATE USER %s WITH SUPERUSER NOINHERIT;" %
(test_user), True)
_internal_run_query("GRANT USAGE ON SCHEMA %s TO %s;" % (schema,
test_user), True)
+ _internal_run_query("GRANT ALL PRIVILEGES ON DATABASE %s TO %s;" %
(db_name, test_user), True)
Review comment:
I have not thought this through completely, but assuming you have. Would
this pose any kind of security risk?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services