tkobayas commented on issue #6573: URL: https://github.com/apache/incubator-kie-drools/issues/6573#issuecomment-3839119728
@petrroda Thank you for reporting. When `jakarta.ws.rs.Path` exists in classpath, REST endpoint is created per `query` in your rule. As a global switch, `kogito.generate.rest=false` in `apprication.property` can disable the REST endpoint generation in Kogito (https://kie.apache.org/docs/10.1.x/kogito/). But unfortunately, it doesn't work in the Drools+Quarkus use case. I'm working on a fix in https://github.com/apache/incubator-kie-drools/pull/6578 Until the fix will be available, possible workarounds (you may not like all of them, sorry): - Replace a query with java logic : You can get items in DataSource via java logic - Remove REST dependincies (e.g. `quarkus-rest-jackson`) : when you don't need REST at all - Block the unnecessary endpoint access using a reverse proxy or ContainerRequestFilter : this doesn't solve the generation itself, but is an amendment from securiy perspective - Use Kogito instead of Drools+Quarkus -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
