Skip to content
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

Minimal SQL database privileges #3699

Closed
baldurmen opened this issue Feb 2, 2018 · 1 comment
Closed

Minimal SQL database privileges #3699

baldurmen opened this issue Feb 2, 2018 · 1 comment

Comments

@baldurmen
Copy link

Hi!

Like a lot of people, I installed Kanboard granting all privileges to the database to my kanboard user:

GRANT ALL PRIVILEGES ON kanboard.* TO 'username'@'localhost' IDENTIFIED BY 'password';

I was wondering what are the true minimal SQL privileges Kanboard needs to run normally.

I don't normally like to grant all privileges for security reasons and would really appreciate it if you could publish a minimal SQL database privileges list.

I guess I'm expecting something like Drupal does.

  GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

At the database level, MySQL/MariaDB supports:

  • ALTER
  • CREATE
  • CREATE ROUTINE
  • CREATE TEMPORARY TABLES
  • CREATE VIEW
  • DELETE
  • DELETE HISTORY
  • DROP
  • EVENT
  • INDEX
  • INSERT
  • LOCK TABLES
  • REFERENCES
  • SELECT
  • SHOW VIEW
  • TRIGGER
  • UPDATE

Does Kanboard really need database level privileges like EVENT or CREATE ROUTINE? If not, why should I grant them?

I understand that different plugins may require different privileges and that you don't have control on that. I'm thus only asking for the minimal required privileges for Kanboard itself - minus all plugins - to work correctly.

@fguillot
Copy link
Member

Only these ones should be necessary:

  • ALTER
  • CREATE
  • DELETE
  • DROP
  • INDEX
  • INSERT
  • REFERENCES
  • SELECT
  • UPDATE

Basically, you need to be able to run SQL migrations and perform CRUD operations.

@ghost ghost removed the question label Feb 12, 2018
@kanboard kanboard locked and limited conversation to collaborators Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants