Request Timeout for malicious Graphql queries #274
                  
                    
                      Thinkenterprise
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment 8 replies
-
| A quick Google search led me to this StackOverflow issue suggesting a solution for a regular Spring Boot  Maybe instead of  | 
Beta Was this translation helpful? Give feedback.
                  
                    8 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
To prevent malicious Graphql Queries, I would like to abort requests on the server that are too long. So I need a request timeout. There is no configuration for this in Java EE Servlet, right!? In Spring Boot you can e.g. configure
server.connection-timeout, which does not the same as a request timeout!! Would it be possible to provide anSimpleInstrumentationfor exampleRequestTimeoutInstrumentationwhich implementation request timeout. I know that instrumentations likeMaxQueryComplexityInstrumentationalready exist for other types of malicious Graphql Queries. In this context, another instrumentation for throttling likeThrottlingInstrumentationwould be conceivable and would round off the DDOS topic very nicely. From my point of view, these are important points, or should infrastructure do that? https://www.howtographql.com/advanced/4-security/Beta Was this translation helpful? Give feedback.
All reactions