Skip to content

Commit

Permalink
Fix MySQL update
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanneuhaus committed Oct 4, 2020
1 parent 7b04580 commit 907ac01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initialize_security.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ CREATE USER 'dc-update'@127.0.0.1 IDENTIFIED BY '<DC_UPDATE_PASSWORD>';
GRANT SELECT, INSERT, DELETE, UPDATE ON dependencycheck.* TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.save_property TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.merge_ecosystem TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.update_ecosystems TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.update_ecosystems2 TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.cleanup_orphans TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.update_vulnerability TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.insert_software TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.update_ecosystems TO 'dc-update'@127.0.0.1;
GRANT EXECUTE ON PROCEDURE dependencycheck.update_ecosystems2 TO 'dc-update'@127.0.0.1;

-- dependency-check user: restrict to read-only access
REVOKE ALL PRIVILEGES, GRANT OPTION FROM '<MYSQL_USER>';
Expand Down

0 comments on commit 907ac01

Please sign in to comment.