-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Create the import application role. | ||
CREATE ROLE IF NOT EXISTS ispyb_import; | ||
|
||
-- You must also create a database user and grant this role to them, e.g. | ||
-- CREATE USER ispyb_uo@'%' IDENTIFIED BY 'the_uo_password'; | ||
-- GRANT ispyb_import TO ispyb_uo@'%'; | ||
-- SET DEFAULT ROLE ispyb_import FOR ispyb_uo@'%'; | ||
|
||
-- Grants for ispyb_processing | ||
GRANT SELECT ON AdminVar TO 'ispyb_import'; -- Hack TO allow ispyb_import to connect through MaxScale | ||
GRANT EXECUTE ON PROCEDURE retrieve_container_for_barcode TO 'ispyb_import'; | ||
GRANT EXECUTE ON PROCEDURE retrieve_container_for_inspection_id TO 'ispyb_import'; | ||
GRANT EXECUTE ON PROCEDURE retrieve_sample_for_container_id_and_location TO 'ispyb_import'; | ||
GRANT EXECUTE ON PROCEDURE upsert_sample_image TO 'ispyb_import'; | ||
GRANT EXECUTE ON PROCEDURE upsert_sample_image_auto_score TO 'ispyb_import'; |