sergehuber opened a new pull request, #953:
URL: https://github.com/apache/unomi/pull/953

   ## Summary
   - Cap GraphQL document length and HTTP POST body size before the document is 
parsed (HTTP 413 when over the limit).
   - Prefer `Authorization` over public-operation classification so Basic/admin 
calls do not pay for a public-operation parse.
   - Apply graphql-java `MaxQueryDepthInstrumentation` / 
`MaxQueryComplexityInstrumentation` with configurable defaults that leave 
GraphiQL introspection and public `getProfile` / `processEvents` usable.
   - Ship `org.apache.unomi.graphql.cfg`, system properties / env vars, manual 
and threat-model notes.
   
   Stacked on #952 (`restrict-admin-cors-origins`).
   
   ## Test plan
   - [x] `mvn -pl graphql/cxs-impl test 
-Dtest=GraphQLRequestLimitsTest,GraphQLServletSecurityValidatorTest,GraphQLServletTest`
   - [ ] Smoke GraphiQL introspection against a local Unomi with defaults
   - [ ] Confirm a deliberately oversized query returns 413
   - [ ] Confirm public API key `getProfile` still works without `Authorization`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to