You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "petrroda (via GitHub)" <gi...@apache.org> on 2026/01/28 09:18:46 UTC

[I] Disable generation of REST endpoints for rule units in Quarkus [incubator-kie-drools]

petrroda opened a new issue, #6573:
URL: https://github.com/apache/incubator-kie-drools/issues/6573

   How can I disable the generation of rest endpoints in QUarkus for the rule units.
   
   I use the following libraries and am running Quarkus 3.30.8:
   
   <dependency>
               <groupId>org.drools</groupId>
               <artifactId>drools-quarkus</artifactId>
               <version>10.1.0</version>
           </dependency>
   
           <dependency>
               <groupId>org.drools</groupId>
               <artifactId>drools-ruleunits-engine</artifactId>
               <version>10.1.0</version>
           </dependency>


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Disable generation of REST endpoints for rule units in Quarkus [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #6573:
URL: https://github.com/apache/incubator-kie-drools/issues/6573#issuecomment-4427258590

   Fixed by https://github.com/apache/incubator-kie-drools/pull/6578


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Disable generation of REST endpoints for rule units in Quarkus [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Disable generation of REST endpoints for rule units in Quarkus [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #6573: Disable generation of REST endpoints for rule units in Quarkus
URL: https://github.com/apache/incubator-kie-drools/issues/6573


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org