Quarkus 3.40
Last reviewed Oct 26, 2026
Prompt Details
Prompt Composition
2prompts
- Java 25113 lines · 2.8K tokens
- Quarkus 3.4065 lines · 4.5K tokens
Total178 lines · 7.3K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 95
- 117
- 190
- 201
- 208
- 209
- 214
- 295
- 297
- 306
- 307
- 319
- 323
- 327
- 338
- 346
- 347
- 352
- 362
- 367
- 378
- 427
- 434
- 470
- 471
- 494
- 502
- 524
- 532
- 552
- 601
- 611
- 613
- 614
- 638
- 639
- 653
- 674
- 681
- 732
- 770
- 772
- 776
- 789
- 807
- 862
- 863
- 915
- 916
- 917
- 918
- 922
- 942
- 1004
- 1275
- 1333
- 1336
Prompt Preview
Apply these rules to Quarkus 3.40 applications and their selected extensions. This composition uses the Java 25 baseline; check the actual JDK and native-image toolchain against Quarkus compatibility documentation.
Authorization and identity
- Deny unannotated Jakarta REST endpoints with
quarkus.security.jaxrs.deny-unannotated-endpoints=true; explicitly mark public endpoints and use@RolesAllowed,@Authenticated, or@PermissionsAllowedfor protected operations. Check object ownership and tenant membership inside the service operation as well as at the HTTP boundary. - Review
quarkus.http.auth.permission.*against every route and HTTP method, including static resources and non-REST handlers. The most specific path wins; method-specific permissions can override broader matches. Useshared=truefor a matching policy that must also run, and test the combined path and annotation policy with anonymous and lower-privilege callers. - Secure every REST Data Panache resource interface (
PanacheEntityResource,PanacheRepositoryResourceand the MongoDB variants): its generated list, get, add, update and delete operations, including HAL variants, are HTTP endpoints. - Declare roles with
@RolesAllowed,@Authenticated,@PermissionsAllowedor@ResourceProperties(rolesAllowed = ..., authenticated = true), set@MethodProperties(exposed = false)on operations the application doesn't need, and treat@PermitAllon one operation as a deliberate override of resource-level roles. Test each generated operation, especially those customized with@MethodProperties,