Spring AI Privacy Guardrails¶
Keep detected PII out of the model. Reveal only what each trusted tool needs. Protect every tool result before it leaves the tool boundary.
Detection answers what text is sensitive. Spring AI Privacy Guardrails enforces where the original value may travel across model, tool, output, and request-lifecycle boundaries.
Reference¶
| Guide | Covers |
|---|---|
| Configuration | Starters, analyzers, output policy, tool disclosure, and processing limits. |
| Architecture | Module boundaries, request sessions, evidence resolution, and execution lifecycle. |
| Threat model | Trust boundaries, library controls, application responsibilities, and non-goals. |
| Evaluation | Boundary tests, the deterministic analyzer baseline, and repository benchmarks. |
Run the sample¶
The sample uses a deterministic local ChatModel and requires no cloud
credentials.
Open http://127.0.0.1:8080 to inspect the tokenized model input, scoped tool
disclosure, tool-result retokenization, and request cleanup.
See the sample application for runnable profiles and integration examples.