You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to alter the tests to use a specific test user with restriced rights.
CREATEUSERclient WITH PASSWORD 'YOUR_PASSWORD';
REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA public FROM client;
GRANTSELECT(id, name, uri, filename, branch, commit_hash, categories, machine_id, job_id, start_measurement, end_measurement, measurement_config, machine_specs, machine_id, usage_scenario, created_at, invalid_run, phases, logs, failed) on TABLE runs TO client;
GRANT INSERT ON TABLE runs TO client;
GRANTUPDATE(start_measurement, end_measurement, phases, logs, machine_id, machine_specs, measurement_config, usage_scenario, gmt_hash, invalid_run, failed) ON TABLE runs TO client;
GRANTSELECT, INSERT, UPDATEON TABLE machines TO client;
GRANT INSERT on TABLE optimizations to client;
GRANT USAGE, SELECTON SEQUENCE optimizations_id_seq TO client;
GRANTSELECTon TABLE optimizations to client;
GRANTSELECTon TABLE categories to client;
GRANTSELECTon TABLE notes to client;
GRANTSELECTon TABLE network_intercepts to client;
GRANTSELECT,INSERT,DELETEON TABLE jobs TO client;
GRANT USAGE, SELECTON SEQUENCE jobs_id_seq TO client;
GRANTUPDATE(state) ON TABLE jobs TO client;
GRANTSELECT,INSERT ON TABLE client_status TO client;
GRANT USAGE, SELECTON SEQUENCE client_status_id_seq TO client;
GRANTSELECT(id) ON TABLE network_intercepts TO client;
GRANT INSERT ON TABLE network_intercepts TO client;
GRANT USAGE, SELECTON SEQUENCE network_intercepts_id_seq TO client;
GRANTSELECT, INSERT ON TABLE measurements TO client;
GRANT USAGE, SELECTON SEQUENCE stats_id_seq TO client;
GRANT INSERT ON TABLE notes TO client;
GRANT USAGE, SELECTON SEQUENCE notes_id_seq TO client;
GRANTSELECT,INSERT ON TABLE phase_stats TO client;
GRANT USAGE, SELECTON SEQUENCE phase_stats_id_seq TO client;
The text was updated successfully, but these errors were encountered:
We need to alter the tests to use a specific test user with restriced rights.
The text was updated successfully, but these errors were encountered: