Why NeMo Guardrails fits customer-facing AI features in SaaS
Your product team has added an AI feature to a multi-tenant SaaS application, and enterprise customers' security reviews now ask how that feature is controlled, which tenant data it can reach, and what happens when a user tries to break it. NeMo Guardrails fits this problem because it is a library you run inside your own infrastructure, licensed under Apache 2.0, that places checks around the model without tying the feature to a single vendor's moderation service. Its five rail types map to the places where a SaaS feature can fail: input rails screen what users send, dialog rails keep multi-turn conversations on approved topics, retrieval rails check the chunks pulled from tenant data, execution rails validate custom actions and tool calls, and output rails inspect what the model returns before a customer sees it.
Two facts need confirmation before anyone commits a design to this toolkit. The current library release is 0.25.0, published on 19 November 2026 to PyPI under Apache-2.0, and it requires Python 3.11, 3.12 or 3.13. NVIDIA has also sunset the NeMo Guardrails microservice container, stating on the NGC catalog that NeMo microservices reached end of life as of October 1, 2026 and that the artifact is no longer supported. Ask NVIDIA directly what applies to your deployment, and check the NeMo Guardrails releases page before you pin a version. Your product team should decide early whether the guardrails server runs as your own container image built from the library or as a component of a different NVIDIA platform, because that choice changes your upgrade and support obligations.
For the security review, the practical question is which controls your team can show and who owns them. Keep the config.yml, Colang files and custom actions for each tenant or tier in version control, record which configuration served each request, and decide which rails are fixed platform policy and which may vary by customer. Those decisions feed directly into the evidence your customers will ask for. Your compliance lead should confirm with your SOC 2 auditor how the guardrail configuration, its change history and its test results will be described in your system description and which controls they support.
What SaaS customers and auditors require from AI features
This table maps each requirement that SaaS customers, SOC 2 auditors and EU processor rules place on an AI feature to what it means for tenant isolation, logging and rail design. Read each row as a question to answer before the guardrail configuration is written, since several rows change how tenants are separated and what the logs can contain.
| Requirement | What it asks for | What it means for NeMo Guardrails design |
|---|---|---|
| SOC 2 security (CC6 and CC7) | Logical access controls and monitoring of system operations, assessed as design (Type 1) and operating effectiveness over a period (Type 2) | Each tenant's configuration directory should be access-controlled, and rail blocks, refusals and tool denials should produce logs that show who was affected and when |
| SOC 2 confidentiality | Information designated as confidential is protected through its lifecycle | Prompts, retrieved chunks and model outputs must not leak across tenants through shared caches, shared knowledge bases or shared log sinks |
| SOC 2 processing integrity | Processing is complete, valid, accurate and authorized as the system describes it | Output rails and fact-checking rails need documented test sets and a record of configuration versions that were live during the audit period |
| SOC 2 privacy | Personal information is collected, used, retained and disposed of as the notice describes | Input and output masking should run before content reaches logs or traces, and log retention should match the privacy commitments in your system description |
| GDPR Article 28(3) processor terms | Processing only on documented instructions, and Article 32 security measures | Tenant configurations and rail settings become part of documented instructions; confirm who may change them and how changes are recorded |
| EU Data Act switching rules | Customers can switch to another provider or to on-premises infrastructure, with notice and transition periods set by the regulation | Keep rail configurations, Colang files and custom actions in version control outside any single hosted service so a tenant can move them to another deployment |
| Customer security questionnaires | Written answers on AI data handling, model hosting, logging, red teaming and incident response | Answers should point to a specific configuration, test report and log schema, so the questionnaire response matches what is deployed |
How tenant-specific rail configurations are structured
The first decision is whether each tenant gets its own guardrails configuration or all tenants share one rail set that reads tenant parameters at runtime. A shared rail set keeps one config.yml, one set of Colang flows and one Python actions package, with tenant settings such as allowed topics, refusal wording, blocked categories and content thresholds loaded from your own tenant store. Each change is made once and tested once, but every tenant shares the same rail logic, so a fix for one customer's edge case reaches everyone. Separate configurations per tenant or per plan tier give tenants different flows and actions, at the cost of more files to version, test and keep in step. Most SaaS teams land on a shared base with a small number of tier-level overlays, and reserve fully separate configurations for contractual requirements such as a dedicated model endpoint or a customer-specific refusal policy. Ask engineering to show how a tenant parameter reaches a flow, because that path is where tenant isolation bugs usually appear.
Treat each configuration folder as code. Keep config.yml, Colang files and Python actions in one repository, tag each release, and promote the same artifact through development, staging and production instead of editing configurations in place. Every change should pass a review by someone who can read Colang, plus a regression run against the tenant test cases that matter most. Record which configuration version served each request so that a customer query about a blocked answer can be traced to a specific build. Confirm whether your hosting approach loads configurations from a mounted folder or from a packaged image, because that determines how rollbacks work. NeMo Guardrails on GitHub is the primary source for the configuration format.
Colang 1.0 is the default language version, and Colang 2.0 is supported. Choose one version for the whole configuration set before building tenant overlays, because mixing versions across tenants multiplies test effort. If you are starting a new build, confirm with your engineers whether Colang 2.0 suits your flows. If an existing configuration must move from 1.0 to 2.x, NVIDIA's nemoguardrails convert tool helps, but the converted output still needs manual review. Plan that review as a separate work item with its own tests, and do not let converted tenant overlays reach production until each one has passed the same regression run as the original. The NeMo Guardrails Colang 2 migration guide describes the steps.
Modules and settings that matter for SaaS AI features
A SaaS assistant needs more than one rail type, and each one sits on a different path through the request. The cards below cover the rails, the server that hosts them, and the runtime they need, so the team can decide which components fit its latency budget and tenant model before building.
Input rails for abuse and jailbreak screening
Input rails run on every user message before the model sees it, so they are the first place abuse and jailbreak attempts are stopped. The library includes self-check input moderation, NVIDIA content safety and topic safety models, and jailbreak and injection detection. Each one adds a call on the request path, so measure each component against the latency budget before enabling it for all tenants. Check whether the checks run per tenant or globally.
NeMo Guardrails docsOutput rails for leakage and off-scope answers
Output rails inspect what the model returns before the customer sees it. For a SaaS product, this is where responses that expose another tenant's data, internal prompts or out-of-scope advice are caught. Self-check output moderation and topic safety can serve this role, but each one needs its own test set built from the product's real support topics and its own cost in response time. Confirm which outputs are logged, and where, before this rail goes live.
Retrieval rails for tenant-scoped RAG chunks
Retrieval rails check the chunks returned from a knowledge base before they reach the prompt. In a multi-tenant product, the main risk is a chunk from one tenant reaching another tenant's answer, so the rail should verify tenant identity on every chunk and not rely on the retriever alone. Ask the team whether the retriever already filters by tenant, and test a deliberate cross-tenant query as part of acceptance.
Execution rails for tool calls against customer data
Execution rails validate custom actions and tool calls before they run against customer systems. They are the control point for deciding which tenant ID a tool may use, which fields it may return and which writes need confirmation. Keep each action narrow, pass the tenant identity from the authenticated session rather than from model output, and log every call so a customer's security team can see what the assistant accessed.
Guardrails server, HTTP API and Dockerfile
The guardrails server loads configurations from a folder and exposes an HTTP API, and the project provides a Dockerfile to build a server image. This lets the product team run one guardrails service that several product services call, with configurations versioned alongside application code. Confirm how tenant-specific configurations are selected per request, and whether the server layout fits the team's deployment pipeline.
NeMo Guardrails on GitHubPython 3.11 to 3.13 runtime requirement
NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so the runtime image and any shared base image must match one of those versions. Teams that standardize on an older interpreter across services will need a separate image for the guardrails service. Check this requirement before the first build, and include the upgrade path for future Python versions in the release plan.
- Supported Python versions
- 3.11 to 3.13
How a tenant request passes through the rails
A request starts at the customer's tenant application, is authenticated against that tenant's identity, and then enters the NeMo Guardrails input rails before anything reaches the model. Retrieval rails only query content scoped to that tenant, and execution rails check any tool the model asks to call. Output rails run before the answer returns, and every decision is written to the customer's audit store. Check that the tenant identifier is carried through every hop, and that the trust boundary sits where your control plane hands data to the model endpoint.
Tenant request flow through NeMo Guardrails rails, with the trust boundary to the model endpoint.
Setting a latency budget for guardrails in a live product
This sequence turns an end-to-end response target into a per-rail latency allocation that product, platform and security teams have agreed and that has been measured against real tenant traffic. It produces a configuration that stays inside the budget and a retest record for every change.
Agree the end-to-end response target
Product owners, platform engineers and security leads agree on the response time the feature must meet for each route, such as first token for a chat widget versus full completion for a batch summary. Record the target per route, the percentile it applies to (for example p95), and whether streaming output counts toward it. The step is done when the target is written into the scope document and each route has a named owner who can approve changes to it.
Measure baseline model latency without guardrails
Run the application with NeMo Guardrails bypassed and measure the model call alone on the production model, endpoint and region the feature will use. Capture time to first token, total generation time and the distribution across representative prompt lengths and tenant workloads. The output is a baseline table per route. The step closes when the team can state how much of the target the model call already consumes, which is the headroom available for guardrails.
Allocate the remaining budget to each rail
Subtract the model baseline from the end-to-end target and divide the remaining headroom among the input rails, dialog rails, retrieval rails, execution rails and output rails that the route requires. Assign each rail a ceiling and note which rails depend on another model call, since those usually cost the most. The output is a budget sheet that lists each rail, its ceiling, and the route it applies to. The step closes when the product owner signs off on the sheet.
Benchmark each rail with representative tenant traffic
Replay anonymized or synthetic requests that reflect the real mix of tenants, languages, message lengths and configuration sizes, and time each rail in isolation and in the full pipeline. Include tenants with the largest custom configurations, since per-tenant rails and actions can change cost. Use the same hardware, model endpoints and concurrency as production. The step is complete when each rail has measured percentile latencies that can be compared with its ceiling, with any gaps recorded.
Decide parallel execution and skipped rails by route
Review which rails can run concurrently and which can be skipped for low-risk routes, such as a help-center search with no account data, while keeping the checks that the risk assessment requires on every route. Confirm with security and compliance owners that any skipped rail is covered by another control or accepted in writing. The output is a route-by-rail matrix with an explicit reason for each exclusion. The step closes when the matrix is approved and reflected in the configuration files for each tenant tier.
Confirm the configuration against the documented options
Check the chosen execution options, streaming behavior and caching settings against the NeMo Guardrails latency documentation before applying them, because the library's options for parallel rails, streaming and caching are covered in depth there. Verify the installed version on the Python version your runtime supports, since configuration behavior can differ between releases. The step is done when the settings are committed to version control, the version is pinned, and a reviewer has confirmed each setting against the matrix.
Retest after every configuration change
Rerun the benchmark set against the new configuration, comparing each rail's percentile latency and the end-to-end result to the budget sheet, and rerun the abuse and jailbreak test cases to confirm that no protection was lost when a rail was reordered or skipped. Store results with the configuration version and the model endpoint used. The step closes when every route meets its target on the test set and the results are archived for the next review.
Monitor live latency against the budget
Connect per-rail timing to your telemetry so that production percentiles can be compared with the budget sheet by route and tenant tier. Set alerts on the thresholds the product owner approved, and treat any breach as a trigger to repeat the benchmark and retest steps before changing the configuration. The output is a dashboard and an alert record that show whether the budget holds under live load. The step is complete when the team has a documented owner for budget breaches.
Handling jailbreaks and abuse across many tenants
The core decision in this section is where tenant-specific abuse policy lives. In a multi-tenant SaaS product, one set of rails serves every customer, so per-tenant rate limits, refusal wording and escalation rules should sit in your application layer and be passed into the guardrail call as context, not hard-coded into a single shared config.yml. NeMo Guardrails gives you the rails (input rails, dialog rails and output rails) and Colang flows to define what counts as a refusal, but the counters, quotas and tenant lookups are logic you write as custom actions or in the calling service. Confirm with your own tests how your chosen configuration loader handles per-request variables, and decide early whether tenants share one configuration with per-tenant parameters or run separate configuration folders, since that choice drives how many configurations you must test and upgrade.
Flagged sessions need a routing path that does not depend on the model. Have the application record each block or refusal with the tenant identifier, session identifier and which rail fired, then send sessions that cross a threshold you define to a human review queue. Keep the review data scoped to the tenant that owns it, since customers will ask who can see their prompts. Injection payloads arriving through customer documents, retrieved chunks or third-party integrations behave differently from direct user prompts: the attacker is a document author or an upstream system rather than the person typing, so retrieval rails and execution rails on tool results matter as much as input rails. Test that path separately, with planted instructions inside sample documents and integration payloads that your own test set covers, and confirm which jailbreak and injection detection components you plan to use before you claim coverage for them.
SOC 2 and customer-facing compliance evidence
SaaS customers ask how an AI feature is controlled, logged and changed, and they ask for the report that proves it. The cards below separate the SOC 2 report types, the criteria and system description behind them, and the EU obligations that shape how customer data is processed and moved. DeployOpen prepares the controls and evidence for these reviews; independent CPA firms issue SOC 2 reports.
SOC 2 Type 1 versus Type 2
A Type 1 report covers the system description and the suitability of control design as of a date. A Type 2 report adds an opinion on operating effectiveness over a period. For a guardrailed AI feature, a Type 1 shows the rails were designed; a Type 2 shows they kept working through releases and incidents. Ask your auditor which report your customers expect and what observation window it implies.
AICPA SOC 2 overviewCC1 to CC9 security criteria
The common criteria CC1 to CC9 apply to every SOC 2. For NeMo Guardrails, configuration files and Colang flows support the change-management and system-operations criteria, access to the rails server and its configuration folder support logical access, and rail decision logs support monitoring. Map each control to a named criterion and a named owner before the auditor asks.
2017 Trust Services CriteriaChange control for rail configurations
Guardrail behavior lives in config.yml, Colang files and Python actions, so a prompt or rail change is a change to the system. Keep these files in version control, require review before deployment, and record which configuration version served each customer request. Confirm with your auditor how configuration changes are sampled during a Type 2 examination.
2018 description criteria for the system
Management's description of the system is evaluated against the AICPA's 2018 description criteria, with revised implementation guidance issued in 2022. For an AI feature, the description should name the model providers, the NeMo Guardrails version, the input and output rails in use, the safety models, and where guardrail logs are stored. Vague descriptions of AI components are a common source of customer questions.
2018 description criteriaSOC 3 versus SOC 2 distribution
A SOC 2 report is generally restricted in use, so you share it under NDA with customers who have a need. A SOC 3 covers the same categories in less detail and can be freely distributed, which suits a public trust page. Publishing a SOC 3 does not replace a SOC 2 for enterprise review. Confirm with your CPA firm which category scope covers the AI feature.
GDPR processor and EU switching limits
GDPR Article 28(3) requires processor contracts to bind you to process personal data only on documented instructions, including for transfers, and to meet the security measures of Article 32. The EU Data Act requires data processing providers to let customers switch to another provider or to on-premises infrastructure, with a two-month maximum notice period. From 12 January 2027, switching charges are not permitted, so keep prompts, logs and configurations exportable.
GDPR text on EUR-LexWhat SaaS teams ask before hiring a partner for NeMo Guardrails
What drives the cost of a NeMo Guardrails implementation for a SaaS product?
The main drivers are the number of rails you need, how many tenant-specific configurations must be built and tested, how many model endpoints and safety models sit in the path, and how much integration work touches your product, identity provider and logging stack. Cost is paid for design, configuration, custom actions, integration, testing and handover. Some items are one-time, such as the initial build and evaluation suite, while others recur, such as upgrades, retesting after model or config changes, and support. DeployOpen does not publish a price list. A quote follows from a written scope that names the rails, tenant model, hosting target and deliverables, and you should ask for the assumptions behind each line item.
How long does a NeMo Guardrails rollout take across many tenants?
Duration depends mainly on the number of distinct tenant configurations, the rails each tenant needs, and whether tenants share a single base configuration with overrides or need separate ones. A shared base with a small number of per-tenant settings is usually far quicker to validate than many independent configurations. Plan for evaluation time for each rail, load testing against your latency budget, and a staged rollout. No fixed duration applies to every SaaS product, so ask any partner to show the phases and the tenant groups in the written scope before you commit to a timeline.
What does our team need to provide for the engagement?
The work needs input from three groups. Product owners define which topics the assistant may cover, what refusals should say, and how tenant-specific policies differ. Security staff set the abuse and jailbreak response rules, approve logging and retention, and review the findings. Platform engineers provide the runtime, container registry access, secrets handling, identity integration, and observability tooling. Your team also needs a named decision maker who can sign off on policy trade-offs, since some rails add latency or block legitimate requests. Agree these responsibilities in the written scope so no group becomes a bottleneck.
Can an internal team build NeMo Guardrails without a partner?
Yes, a capable internal team can build NeMo Guardrails, because the project is open source under the Apache 2.0 license and runs on your own infrastructure. The harder parts are usually the evaluation suite, per-tenant configuration management, latency tuning under load, and operating the stack after launch. Ask yourself whether your engineers can own those tasks for the life of the product. A partner can take on part of the work under a fixed-scope engagement, a retainer for upgrades and testing, or both, while your team keeps control of the policies and the running system.
How do the Colang migration and the LLMRails deprecation affect our plan?
Both change the work you must schedule before building. NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, and NVIDIA publishes a 0.25 migration guide. Colang 1.0 is still the default, while Colang 2.0 is supported. NVIDIA documents a conversion path with the nemoguardrails convert tool, and states that converted configurations still need manual review. Decide early which Colang version and Python API you will target, and budget review time for any existing flows. Confirm the current version and migration steps against the NVIDIA documentation before you start.
What SOC 2 evidence can a partner provide, and what can it not provide?
A partner can help prepare the controls, configuration records, test results, logging design and access evidence that your SOC 2 examination will review. Examples include documented change control for guardrail configurations, evaluation results per rail, and records of blocked abuse attempts. A partner cannot issue a SOC 2 report, an attestation or a certification. Only an independent CPA firm performing the examination under the AICPA attestation standards can do that. SOC 2 reports also carry use restrictions, so share them only as your auditor and contracts allow. Ask the auditor which evidence they will sample before the work begins.
What should a SaaS team check before choosing a partner for this work?
Ask for a written scope that names the rails, tenant model, hosting environment, evaluation approach, deliverables and handover. Confirm that the partner builds in infrastructure you control and that the artifacts stay with you. DeployOpen plans, implements, customizes, tests, documents and supports self-hosted open-source platforms inside your cloud accounts, data centers or air-gapped networks, and most engagements are fixed-scope with agreed deliverables and timelines. Also confirm how the partner handles the NeMo Guardrails microservice sunset, the Colang and LLMRails changes, and how they will test jailbreak and abuse handling at your expected volume.
Rolling out guardrails to tenants in phases
The sequence moves guardrails from a scoped feature and tier model to a tested baseline, a design-partner pilot, adversarial testing and tier-by-tier expansion, each phase closing with written acceptance criteria and evidence the customer's security team can review.
Scope the feature and tenant tiers
Before any configuration is written, your product and security leads, with DeployOpen, list every AI feature in scope, the data each one reads and writes, the tools it can call, and the tenant tiers that will receive different rail settings. The output is a written scope document with acceptance criteria for each phase, signed off before build starts. Each tier should state which topics, languages, data sources and latency expectations it inherits from the baseline.
Build the baseline rail set
DeployOpen builds a shared NeMo Guardrails configuration with a config.yml file, Colang flows and any Python actions, covering input rails, output rails, dialog rails, and retrieval or execution rails where the feature uses RAG or tools. Tenant-specific values sit in separate overlays so the baseline stays identical across customers. The step closes when the baseline passes its agreed unit tests and the team has confirmed which Colang version it uses, since Colang 1.0 is the default and 2.x requires a manual-review migration path if the team converts later.
Pilot with internal and design-partner tenants
Internal staff and a small set of design-partner tenants use the feature under monitoring, with agreed consent terms and data handling for each partner. The team records false positives, blocked legitimate requests, and latency at the agreed percentiles. The pilot closes when the written acceptance criteria are met or the team has documented why a change is needed and re-tested it. Do not widen access on the basis of informal feedback alone.
Run security testing and red teaming
DeployOpen tests the configured feature against prompt injection, jailbreaks, cross-tenant data exposure, tool misuse and abuse at volume, and runs automated vulnerability scans alongside manual attempts. Findings are ranked, fixed in the configuration or custom actions, and retested against the same cases. The step closes with a findings report, a retest result for every high-severity finding, and a list of residual risks that the product owner accepts in writing.
Expand by tier with monitoring
Access widens one tier at a time, starting with the tier whose data and use cases most closely match the pilot. Each expansion goes live only when the monitoring dashboards show block rates, latency and error rates within the agreed thresholds, and alerts route to a named on-call owner. Tenants on higher tiers may receive stricter topic or data rails, which are added through overlays and tested against the baseline before release. The step closes with a per-tier sign-off recorded in the change log.
Hand over runbooks and evidence packs
DeployOpen delivers configuration runbooks covering how to change tenant overlays, roll back a rail change, investigate a blocked request and rotate model or safety-service credentials. The evidence pack gathers the scope document, test results, retest records, change logs and monitoring samples that your team can share with customers during their security reviews. DeployOpen prepares this material but does not issue SOC 2 reports, which an independent CPA firm issues after its examination. The step closes when your operators have run each runbook once in a non-production environment.
What to confirm with the vendor and your own environment
Start by confirming the support status of the library itself. NeMo Guardrails is Apache 2.0 licensed and NVIDIA still publishes releases, with 0.25.0 the current one, but the NeMo Guardrails microservice has been sunset and no longer receives releases or support. Ask NVIDIA, in writing, what support exists for the open-source library, whether any paid NVIDIA AI Enterprise or hosted add-on is needed for production use in your SaaS, and what the path is for customers who ran the microservice. Your NVIDIA account team is the named contact in the archived NeMo Microservices documentation, so start there rather than assuming a community channel covers you.
Next, decide whether the NeMo Helix control plane is part of the plan, and confirm its status before you design around it. The repository that the old NeMo Platform link now points to documents NeMo Guardrails running as an inference gateway middleware plugin. Check its maturity, its release cadence, its support terms and how its tenant model maps to your own customer tenants. Also confirm the model and safety-model licensing for each classifier you intend to run in your stack, including the NVIDIA content safety and topic safety models, any jailbreak or injection detectors and any third-party moderation model. A permissive library license does not automatically cover the weights, and your customer contracts may restrict which providers can process their prompts.
Finally, check your own engineering standards against the library's requirements. NeMo Guardrails 0.25.0 supports Python 3.11, 3.12 and 3.13, so confirm that your approved runtime matches one of them and that your container base images, dependency scanning and internal package mirror accept the library's dependencies. Confirm whether your platform team allows the provided server Dockerfile as the basis for your image, and whether the guardrails server with its HTTP API fits your ingress, authentication and per-tenant configuration loading. Record the results in your evaluation file so that the next library upgrade is a checked change, not a surprise.
How DeployOpen scopes and delivers SaaS guardrail implementations
DeployOpen plans, builds, tests, documents and supports NeMo Guardrails inside infrastructure you control, so each tenant-facing AI feature has a written scope, a tested rail set and records your customers can review. We work from your product architecture, your latency targets and the evidence your customers ask for during security reviews.
How we scope
- We map which AI features, tenants and customer tiers need rails, and which tenant settings may differ.
- We agree the rail types in scope, such as input rails, output rails and retrieval rails, and the models that will run them.
- Engagements are fixed-scope, with deliverables, timelines and responsibilities agreed in writing before work starts.
How we build
- We build the config.yml, Colang files and any Python actions in a Git repository that your engineers can review.
- We deploy the guardrails server in your cloud accounts or data centers, with latency budgets measured against your real request paths.
- We test abuse and jailbreak cases at expected tenant volume, then retest after each rail or configuration change.
How we hand over
- You receive the configuration, deployment code, test results and an operations runbook your platform team can follow.
- We document tenant-specific settings, logging and content capture decisions, so your security team can explain them to customers.
- We prepare the evidence customers ask for in SOC 2 reviews, such as control descriptions and test records, for your auditor to assess.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, including tracking of NeMo Guardrails releases.
- We plan version upgrades against the configuration, Python API and server changes that each release introduces.
- We keep the test suite current as your AI features, models and tenant requirements change over time.

