You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/04 20:07:13 UTC
[GitHub] [incubator-superset] villebro commented on a change in pull request
#8867: Make schema name for the CTA queries and limit configurable
villebro commented on a change in pull request #8867: Make schema name for the CTA queries and limit configurable
URL: https://github.com/apache/incubator-superset/pull/8867#discussion_r374888673
##########
File path: .travis.yml
##########
@@ -92,7 +92,7 @@ jobs:
- redis-server
before_script:
- psql -U postgres -c "CREATE DATABASE superset;"
- - psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';"
+ - psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword' SUPERUSER;"
Review comment:
While this may be ok for CI, I wonder if this might open up possible problems where we assume that the backend db user has more rights than it should have? A quick glance at the docs revealed the following:
https://www.postgresql.org/docs/10/role-attributes.html
> superuser status
A database superuser bypasses all permission checks, except the right to log in. This is a dangerous privilege and should not be used carelessly; it is best to do most of your work as a role that is not a superuser.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org