-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grant should not be included for db user #209
Comments
Most definitely. |
Isn't this just granting the permissions in the comma separated list to the user? Not granting GRANT. Perhaps I'm misunderstanding. |
I just looked at the three line snippet and thought a user supplied USER was being given those perms. So I took a look at the whole file to get context. It's pretty clear that the script is only giving those perms to the |
Yeah that's what I was thinking too. So are we thinking just leave it? |
I read it wrong initially, but we still need to pull alter and drop off the list just in case someone gets an injection and calls them. Alternatively, we could migrate it to a dev setup only. The production setup though should have the absolute minimum rights needed to operate for the game. |
Okay I see what you're saying now! |
We should remove grant as a general perm to avoid potential permission leaks here. The DB user has no actual need for grant and really any non-CRUD related function, including alter.
riftshadow/user-customizations.sh
Lines 11 to 13 in 8a67246
The text was updated successfully, but these errors were encountered: