Corporate Scenario: Division-Level Model Governance
A realistic enterprise demo showing how a CIO rolls out Models as a Service across an organization. Three divisions get differentiated access to on-prem and cloud models, each with appropriate token budgets - all enforced by the platform through policy, not code.
This is the recommended starting point when you want to show Models as a Service to stakeholders who care about governance, cost control, and multi-team model access.
All file paths and oc apply commands in this guide are relative to the CAI-Field-Manual-MaaS repository root. Make sure you have cloned it and are working from its root directory (see Getting Started).
The scenario
A CIO at a mid-size company assigns three divisions access to AI models. Each division has different needs and different budgets:
| Division | General Purpose (on-prem) | Code Model - DeepSeek R2 (on-prem) | Multimodal - Gemini Flash (cloud) |
|---|---|---|---|
| Sales | Yes (500 tok/min) | No | No |
| Engineering | Yes (500 tok/min) | Yes (1000 tok/min) | Yes (20 tok/min) |
| Products | Yes (500 tok/min) | Yes (500 tok/min) | No |
The cloud model is expensive, so only Engineering gets access - and with a tight cap. Engineering gets higher limits on the code model because they use it more heavily. Sales only needs the general purpose chatbot.
Each division gets ONE subscription covering all their allowed models. One API key per user, full access to everything their division is entitled to.
Prerequisites
- Complete the guide through Phase 5 with at least the simulator model deployed
oclogged into the cluster as cluster-adminhtpasswd,curl,jqavailable on PATH
Deploy the simulator if not already done:
Architecture
Models
All three models are backed by the CPU-only simulator (llm-d-inference-sim) - no GPU required. The namespace appears in the URL path, which is how you visually distinguish on-prem from cloud.
| Model | Namespace | Type | Served name |
|---|---|---|---|
| facebook-opt-125m-simulated | llm | On-prem (existing) | facebook/opt-125m |
| deepseek-r2-llmd | llm | On-prem (new) | deepseek/deepseek-r2 |
| gemini-flash-cloud | cloud-models | Cloud (new) | google/gemini-flash |
URL examples:
- On-prem:
https://maas.<domain>/llm/deepseek-r2-llmd/v1/chat/completions - Cloud:
https://maas.<domain>/cloud-models/gemini-flash-cloud/v1/chat/completions
Users and groups
Six users across three groups, created via htpasswd identity provider (corp-demo):
| Group | Users | Division |
|---|---|---|
corp-sales | sales-1, sales-2 | Sales |
corp-engineering | eng-1, eng-2 | Engineering |
corp-products | prod-1, prod-2 | Products |
MaaS CRDs
The governance is expressed through three CRD types:
MaaSAuthPolicy controls who can see which models:
corp-deepseek-access- grantscorp-engineering+corp-productsaccess todeepseek-r2-llmdcorp-cloud-access- grantscorp-engineeringONLY access togemini-flash-cloud- The existing
simulator-accessalready grantssystem:authenticatedaccess to the general model
MaaSSubscription controls how much each division can consume:
| Subscription | Division | Models and limits |
|---|---|---|
corp-sales | Sales | general: 500 tok/min |
corp-engineering | Engineering | general: 500 tok/min, deepseek: 1000 tok/min, gemini: 20 tok/min |
corp-products | Products | general: 500 tok/min, deepseek: 500 tok/min |
All subscriptions use priority 30 to outrank the shipped simulator-premium (priority 20) which targets system:authenticated.
MaaSModelRef registers each model with the MaaS control plane. Must be in the same namespace as its LLMInferenceService.
Step 1: Setup
The setup script creates everything: users, groups, models, and governance CRDs.
Set DEMO_PASSWORD to skip the interactive prompt:
The script:
- Checks that the general-purpose model (
facebook-opt-125m-simulated) is deployed and Ready - Creates 6 htpasswd users and adds the
corp-demoidentity provider (additive, does not touch existing providers) - Creates 3 OpenShift groups (
corp-sales,corp-engineering,corp-products) - Deploys the
cloud-modelsnamespace with gateway labels - Deploys 2 new LLMInferenceService resources (simulator-backed, CPU-only)
- Waits for simulator pods to start Running
- Applies MaaSModelRef, MaaSAuthPolicy, and MaaSSubscription resources
- Waits for both MaaSModelRefs to reach Ready
- Prints a summary of all resources
The oauth pods restart after adding the identity provider. Wait about a minute before trying to log in as the demo users.
What gets created
After setup completes, verify the state:
Step 2: Run the demo
The script logs in as one user per division (sales-1, eng-1, prod-1), mints an API key, and tests:
- Model visibility - which models each user can see in the catalog
- Inference on allowed models - sends 8 requests per model, shows tokens consumed
- Denied model access - proves 403 for unauthorized models
- Rate limiting - eng-1’s 20 tok/min cloud limit triggers within the burst
Expected output
Key observations:
- sales-1 sees only one model, gets 403 on the other two - Sales has no code model or cloud access
- eng-1 sees all three models, on-prem requests sail through, cloud model hits rate limiting at ~20 tokens - the CIO’s cost control in action
- prod-1 sees two models (no cloud), both on-prem models work fine
Step 3: Verify
The automated verification script runs 15 tests covering access control, rate limiting, key multiplication, and config drift.
What it tests
| Test suite | What it proves |
|---|---|
| Access control (9 tests) | Full 3x3 matrix of users x models: 6 should allow (200), 3 should deny (403) |
| Rate limiting (1 test) | eng-1 hits 429 on the cloud model within 15 requests |
| Key multiplication (1 test) | eng-2 mints two keys, exhausts quota with key-1, verifies key-2 is also rate-limited immediately. Proves rate limits are per subscription, not per credential. |
| Config drift (4 tests) | Subscription token limits match expected values (catches manual edits or drift) |
Expected result:
Step 4: Cleanup
Removes all demo resources (subscriptions, auth policies, MaaSModelRefs, LLMInferenceServices, namespace, groups, users, IDP). The existing general-purpose model is not touched.
Talk track
Use this flow when presenting the scenario to stakeholders.
1. Start with the CIO’s problem
Three divisions, each with different needs. Sales wants a chatbot. Engineering wants code assistance plus cloud model access. Products needs the code model for sprint reviews. How do you give each team exactly what they need - no more, no less?
2. Show the manifests
Open auth-policies.yaml and subscriptions.yaml. Point out how MaaSAuthPolicy controls visibility (who can see which models) and MaaSSubscription controls consumption (how much each group can use). The combination is the full governance picture.
One subscription per division, covering all their models with per-model limits. One key, full access.
3. Show the model catalog per user
Log in to the Red Hat OpenShift AI Dashboard as each division user:
- sales-1 sees one model
- prod-1 sees two models
- eng-1 sees all three models
The platform hides what you cannot access. There is no “request access” button for models outside your policy.
4. Run the burst
Point out that Engineering hits rate limiting on the cloud model (20 tokens/min) but not on the on-prem models. That is the CIO’s intent: cloud is expensive, keep it tight. On-prem is cheaper, give them room.
5. Try denied access
Sales calling the DeepSeek model gets a clean 403. Not a 500, not a timeout - the platform knows the policy and enforces it before the request reaches the model.
6. Key multiplication does not help
Run verify-scenario.sh and point at the key multiplication test. Minting a second API key does not reset the quota. The rate limit is per subscription, not per credential.
7. Change a limit live
Patch a subscription to show that governance is policy, not deployment:
Re-run ./run-demo.sh - Engineering no longer hits rate limiting on the cloud model. No redeployment, no restart, instant policy change.
Restore the original limit:
How the governance works
MaaSAuthPolicy - who can see what
Each MaaSAuthPolicy grants access to one or more models for specific groups or users. If a user is not covered by any auth policy for a model, the model does not appear in their catalog and API calls return 403.
The existing simulator-access policy grants system:authenticated access to the general purpose model. The corporate policies add group-specific access to the two new models without touching the existing setup.
MaaSSubscription - how much they can use
Each division gets ONE subscription covering all their allowed models, with per-model token rate limits. When a user mints an API key, the platform resolves the highest-priority subscription they match and attaches it.
All corporate subscriptions use priority 30 to outrank the shipped simulator-premium (priority 20, targeting system:authenticated). Without this, the shipped tier would win and the corporate limits would not apply.
Priority resolution
- Subscriptions are selected, not accumulated. A user gets ONE subscription - the highest priority match.
- A single subscription can cover multiple models with different limits per model.
- Minting multiple API keys does not multiply the quota. Rate limits are per subscription, not per credential.
- Priority 30 for all corporate-scenario subscriptions means they win over shipped defaults (priority 10 and 20).
MaaSModelRef governance pairing
A MaaSModelRef reaches Ready only when BOTH a MaaSSubscription AND a MaaSAuthPolicy reference it. This is the governance pairing - without both, the model is not accessible through the MaaS control plane.