Documentation / Use Shield
Applications and portfolio
A scan tests one bot. Applications say which product and which environment that bot belongs to, and the portfolio shows at a glance where each application stands, environment by environment.
On this page
Application, environment, bot
| Level | What it is | What it carries |
|---|---|---|
| Application | An AI product: a customer assistant, an internal agent. | A name (up to 100 characters), an optional owner (a team or a person) and a criticality: Low, Medium (the default), High or Critical. |
| Environment | A stage where the application runs: dev, uat, preprod, prod or a name of your own (up to 50 characters). | An optional minimum score, a whole number from 0 to 100: this environment's threshold. |
| Bot | The address Shield attacks. Shield recognises a bot by its address. | Its scans. A bot belongs to one environment only. |
- Applications in the sidebar lists your applications, their environments and the bots of each.
- Portfolio shows them as a grid, one row per application and one column per environment. The portfolio view
- An account holds up to 100 applications and 1000 bots, an application up to 20 environments.
Add an application
On the Applications page, Add an application opens a four-step assistant. No JSON file to write.
- Application. The name, the owner and the criticality.
- Environments. Keep the ones the application uses among
dev,uat,preprodandprod, or name another with Other environment. At least one is needed. For each, Minimum score (optional) sets its threshold. - Bots. One bot per environment: its URL, the method, the field that carries the message, the field that carries the reply and the authentication (None, Bearer token or API key in a header). Test the connection sends one message to the bot from this instance and shows its reply.
- First scan. Download an environment's
shield.config.jsonand run the CLI, or launch a quick scan from the instance. That second button exists only when scheduled scans are enabled on this instance.
Encrypted credentials. Under the Secret field, the assistant says so: "Stored encrypted on this instance and never shown again." The downloaded file does not contain it: in its place it reads an environment variable ($SHIELD_TARGET_TOKEN for a Bearer token, $SHIELD_TARGET_API_KEY for an API key), to set in your shell before the scan.
npx shield-llm login --api-url https://shield-llm.com --key <API_KEY>
export SHIELD_TARGET_TOKEN=<BOT_SECRET>
npx shield-llm scan --config shield.config.jsonThe downloaded file already carries the application and the environment: this scan files itself in the right place. One bot cannot serve two environments: the assistant refuses the same address twice, and refuses a bot already declared in another application. The Applications page moves only the bots of Unclassified: a bot already filed changes place through the application and environment fields of its config, within the limits of File the scan in an application. Download config on that page gives the file again for a bot whose connection settings the assistant saved.
Unclassified
Unclassified gathers the bots nobody has filed yet:
- the bots of your scans from before applications existed, filed there automatically the first time you open Applications or Portfolio;
- the bots of a CLI scan or a scheduled scan that declares no application and no environment, the first time Shield sees them.
This group has no threshold and is not part of the portfolio grid: it shows apart, under the grid. File each bot with Move to on the Applications page. A CLI config cannot file a bot here: naming this group, as Non classées or Unclassified in any case, gets the scan refused or leaves the bot where it is with a warning. Neither name can be given to an application; one already named so before this rule keeps its name and is used as such.
Renaming this group turns it into an ordinary application, with its bots. The next unknown bot scanned without a declaration creates a new Unclassified group.
The portfolio view
Portfolio shows one row per application and one column per environment name. Names are grouped regardless of case and of surrounding spaces: Prod and prod make one column, titled with the most used spelling. The CLI and the pages use the same rule: "environment": "Prod" in shield.config.json finds prod, and a new application or environment cannot take a name that differs from an existing one only by case.
Above the grid, four counters: Applications, Environments under threshold, Old scans and Environments never scanned. They count what the grid shows, filters included.
Once your account has a named application, the app's home opens the portfolio; before that, it opens Dashboard.
Reading a cell
- A cell keeps the latest completed scan of each bot of the environment. A scan still running or failed does not change it.
- With several bots, it shows the weakest: the lowest score, and on a tie the older scan.
- It shows the grade and the score, the number of open critical findings of its bots (a finding a retest proved fixed no longer counts) and the date of the scan.
- "never scanned": no bot of the environment has a completed scan. "no bot yet" is added when the environment has no bot at all. A hatched cell: the application has no such environment.
- Click a cell: a panel lists each bot of the environment with its latest scan.
The lock under the threshold
When an environment has a minimum score, its cell is blocked in two cases. It then carries a lock and says why:
| Case | What the cell says |
|---|---|
| The weakest bot scores below the threshold. | "62, below the prod threshold of 75" |
| No bot of the environment has a completed scan. | "never scanned, prod threshold of 75" |
Never scanned counts as blocked: without evidence, an environment does not pass its threshold. Without a minimum score, a cell is never blocked. If an application spells the same environment two ways (Prod and prod), its cell applies the stricter of the two thresholds.
"old" after 30 days
A cell is marked old when the latest completed scan of one of its bots is more than 30 days old. It blocks nothing: it reminds you that the grade describes a bot that may have changed since. The Old scans counter adds them up.
Sort and filter
| Sort | Order |
|---|---|
| Criticality | The default. Critical first, then High, Medium and Low; by name at equal criticality. |
| Name | Alphabetical order. |
| Worst grade | The lowest score first. An application never scanned comes last: no evidence is not a good grade. |
The Criticality and Owner filters apply with Apply and clear with Reset. Sort and filters live in the page address: a shared link opens the same view. While a filter is on, the Unclassified block is hidden.
Which threshold applies
An environment's minimum score is used twice: by the portfolio, for the lock, and by the CLI, for a scan whose shield.config.json declares that application and that environment, whatever their case. Where an application has two spellings of one environment from before this rule, both apply the stricter threshold.
Edit next to an environment on the Applications page renames it or changes its minimum score; empty means no threshold. A name that differs from another environment of the application only by case is refused. The next scan reads the new threshold. After a rename, update environment in the shield.config.json of its bots: until then each scan keeps the bot where it is and warns.
On the CLI side, the --min-score option wins over thresholds.minScore in the config, which wins over the environment's threshold. Only the score is taken from the environment: with no thresholds block in the config, a critical finding still does not fail the run. The application and environment fields