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

feature/db-max-statement-time #2659

Merged

Conversation

jrouzierinverse
Copy link
Member

Description

Set a timeout for database queries for the admin

Impacts

The Admin Portal and database connections

Issue

fixes #2630

Delete branch after merge

NO

NEWS file entries

Enhancements

  • Set a timeout for database queries for the admin to avoid long running queries slowing the system.

@julsemaan
Copy link
Collaborator

Code looks good.

Just before the merge, we'll give it a test in the admin with a low timeout and then its ready for merging

@jrouzierinverse
Copy link
Member Author

Should this be a configurable value?

@julsemaan
Copy link
Collaborator

Don't really think so, it could lead a user to set this to a value that would kill his server.

That would be a case of "we know better than the user" IMO

@jrouzierinverse
Copy link
Member Author

Anything need on this one?

@julsemaan
Copy link
Collaborator

Nope, good enough, merging

@julsemaan julsemaan merged commit f0cf501 into inverse-inc:devel Nov 28, 2017
julsemaan added a commit that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin: Prevent DB denial of service via queries
2 participants