live wire
▸JAVA · Quarkiverse tests AI incident analysis against 19 scenarios using traces, logs and metrics (Nov. 17)Quarkus Blog▸SECURITY · Quarkus advises rebuilding JVM containers on patched UBI Java images for CVE-2026-114938 (Nov. 20)Quarkus Blog▸PLATFORM · Red Hat and CODESYS outline virtual PLC deployment on Red Hat Device EdgeRed Hat Blog▸PLATFORM · Red Hat and EDB test cross-site recovery for Ansible Automation Platform 2.6Red Hat Blog▸AI · Red Hat shows how IdeaBot uses MLflow to trace agent calls without double-counting tokensRed Hat Emerging Technologies▸SECURITY · AI Inference 3.5.4 gets CUDA security update in RHSA-2026:103421Red Hat Product Errata▸SECURITY · Helm 3.20.2.4 fixes five CVEs for OpenShift 4.19 developer toolsRed Hat Product Errata▸SECURITY · AI Inference Server 3.2.2 CUDA update lists eight CVEsRed Hat Product Errata▸AI · Red Hat and ZenML show how to benchmark embedding models for RAG on OpenShift AIRed Hat Blog▸SECURITY · Red Hat tags OpenShift Jenkins 4.19 update RHSA-2026:103321 as CriticalRed Hat Product Errata▸AI · vLLM-GR adds catalog-constrained beam search for generative recommendationvLLM Blog▸SECURITY · Red Hat updates the OpenShift Service Mesh Proxy V2 image for Istio 1.24Red Hat Product Errata▸SUPPLY CHAIN · Red Hat shows how a Pi-hole rebuild on a minimal base preserves RPM inventory for scanningRed Hat Developer▸JAVA · JBoss EAP 8.2 Beta adds early Java 25 support and previews automated provisioningRed Hat Developer▸JAVA · Quarkiverse tests AI incident analysis against 19 scenarios using traces, logs and metrics (Nov. 17)Quarkus Blog▸SECURITY · Quarkus advises rebuilding JVM containers on patched UBI Java images for CVE-2026-114938 (Nov. 20)Quarkus Blog▸PLATFORM · Red Hat and CODESYS outline virtual PLC deployment on Red Hat Device EdgeRed Hat Blog▸PLATFORM · Red Hat and EDB test cross-site recovery for Ansible Automation Platform 2.6Red Hat Blog▸AI · Red Hat shows how IdeaBot uses MLflow to trace agent calls without double-counting tokensRed Hat Emerging Technologies▸SECURITY · AI Inference 3.5.4 gets CUDA security update in RHSA-2026:103421Red Hat Product Errata▸SECURITY · Helm 3.20.2.4 fixes five CVEs for OpenShift 4.19 developer toolsRed Hat Product Errata▸SECURITY · AI Inference Server 3.2.2 CUDA update lists eight CVEsRed Hat Product Errata▸AI · Red Hat and ZenML show how to benchmark embedding models for RAG on OpenShift AIRed Hat Blog▸SECURITY · Red Hat tags OpenShift Jenkins 4.19 update RHSA-2026:103321 as CriticalRed Hat Product Errata▸AI · vLLM-GR adds catalog-constrained beam search for generative recommendationvLLM Blog▸SECURITY · Red Hat updates the OpenShift Service Mesh Proxy V2 image for Istio 1.24Red Hat Product Errata▸SUPPLY CHAIN · Red Hat shows how a Pi-hole rebuild on a minimal base preserves RPM inventory for scanningRed Hat Developer▸JAVA · JBoss EAP 8.2 Beta adds early Java 25 support and previews automated provisioningRed Hat Developer
upstreambeat.ai
guideJAVA

Quarkus turns agent security advice into Java enforcement points

A live-coding session maps prompt injection, broken authorization and excessive agency to OIDC, tool boundaries, ordered guardrails and deterministic tests.

By The News Desk· Nov 16, 2026the quick take — two AI hosts go live when you do

Quarkus has followed its broad agent-security guidance with a code-level walkthrough for LangChain4j applications. The session and companion workshop start from four failure classes—prompt injection, broken authorization, excessive agency and sensitive-information disclosure—and place controls in the application path rather than relying on the model’s system prompt.

That makes this distinct from Red Hat’s earlier enterprise roundtable. The roundtable argued for human approvals, audit trails and sandboxed execution as operating policy. This Quarkus material shows where Java developers can enforce narrower permissions and validate model traffic inside an application.

Carry identity to the action

The authentication step adds the Quarkus OIDC extension and configures a hybrid application so the same service can accept browser code-flow sessions and bearer tokens. The example protects every HTTP path, while also showing @Authenticated and @RolesAllowed as endpoint-level alternatives.

The important implementation choice is to inject Quarkus SecurityIdentity into the application rather than treating login as a front-door check. That identity can travel with the request to the point where a tool or API decision is made. It is the concrete answer to broken authorization: a model deciding to call a function does not grant the caller permission to perform it.

Make tools explicit and guardrails ordered

The workshop registers an external location lookup as a LangChain4j @Tool and exposes it to the AI service through @ToolBox. That small example makes the agency boundary visible in code: the model can choose among only the capabilities developers register, while the underlying REST client remains an ordinary Quarkus integration where authentication, authorization and logging can be applied.

Input and output controls are separate. A configurable MaxLength input guardrail counts Unicode code points and returns a fatal result before the model is called when the request exceeds its budget. An AllowedLocationsGuardrail checks the generated answer against an application allowlist and reprompts when the output does not contain an approved value.

The workshop recommends one rule per guardrail and emphasizes ordering: the first fatal failure stops the chain, so cheap and likely rejection paths should run early. That is a more testable design than one large prompt that asks the model to police itself.

Test policy without paying for inference

The final step adds LangChain4j’s test helpers and exercises guardrails as deterministic Java functions. Tests assert success, reprompt and fatal outcomes in milliseconds without contacting an LLM. Teams can therefore put input budgets and output-policy checks in ordinary CI, reserving model-based scoring for cases where semantic comparison is actually needed.

The result is defense in depth rather than a complete agent sandbox. Quarkus supplies identity, endpoint policy, explicit tool registration, ordered validation and observable integration points; runtime isolation and human approval still belong around consequential actions. The practical shift is that those controls now have named Java enforcement points developers can review and test.

Filed by The News Desk. Corrections: desk@upstreambeat.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.