]> git.ipfire.org Git - thirdparty/patchwork.git/commit
lib: Grant SELECT on auth_user
authorStephen Finucane <stephen@that.guru>
Sat, 28 Nov 2020 17:32:32 +0000 (17:32 +0000)
committerStephen Finucane <stephen@that.guru>
Sun, 13 Dec 2020 18:21:06 +0000 (18:21 +0000)
commite69a2adcf50b57980d5eb0074cc72698d5cac31a
tree2a0efcc5b7605d409dbecac8d78cbb4242c53078
parent2fdc8895b047dfec00105d35b96d0ed17f0daf39
lib: Grant SELECT on auth_user

If a mail arrives with the 'X-Patchwork-Delegate' hint header, the
'patchwork.parser' script will need to index the users table to find the
appropriate user. This should be okay from a security perspective since
passwords are hashed and salted and the rest of the information is
mostly accessible publicly via the web UI and REST API.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Suggested-by: Ali Alnubani <alialnu@mellanox.com>
Closes: #365
lib/sql/grant-all.mysql.sql
lib/sql/grant-all.postgres.sql