Skip to content

Commit 58505b6

Browse files
behnam-oBehnam Ousat
andauthored
FIX pyrit initializer config in ARM templates must be comma-separated (#1955)
Co-authored-by: Behnam Ousat <behnamousat@microsoft.com>
1 parent a37325a commit 58505b6

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

infra/DEPLOY_NEW_INSTANCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ within an instance. The trust boundary is Entra group membership.
2424
| `az login` with Graph permissions | The script creates Entra app registrations, which requires Graph API access. Run `az login --scope https://graph.microsoft.com//.default` |
2525
| Azure permissions | **Owner** (or Contributor + User Access Administrator) on the subscription, and **Application Administrator** in Entra ID for app registrations and Graph API operations |
2626
| Container image pushed to ACR | Build and push before deploying (see [Building the Image](#building-the-image)) |
27-
| A `.env` file with runtime config | Copy and fill in `infra/env.demo.template`. Contains target endpoints and content safety config. `AZURE_SQL_DB_CONNECTION_STRING` and `AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL` are auto-injected by the script — you can omit them. Required for the default `target airt` initializer. Targets can also be created manually in the GUI if deploying with the `target` initializer only |
27+
| A `.env` file with runtime config | Copy and fill in `infra/env.demo.template`. Contains target endpoints and content safety config. `AZURE_SQL_DB_CONNECTION_STRING` and `AZURE_STORAGE_ACCOUNT_DB_DATA_CONTAINER_URL` are auto-injected by the script — you can omit them. Required for the default `target, airt` initializer. Targets can also be created manually in the GUI if deploying with the `target` initializer only |
2828

2929
### What the script creates (per-instance)
3030

infra/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ needed in the container.
419419

420420
| .pyrit_conf field | Bicep param | Env var | Notes |
421421
|-------------------|-------------|---------|-------|
422-
| `initializers` | `pyritInitializer` | `PYRIT_INITIALIZER` | Default `target airt`: `target` populates the TargetRegistry (read by the GUI); `airt` loads converter, scorer, and adversarial defaults |
422+
| `initializers` | `pyritInitializer` | `PYRIT_INITIALIZER` | Default `target, airt`: `target` populates the TargetRegistry (read by the GUI); `airt` loads converter, scorer, and adversarial defaults |
423423
| `operator` || Set per-user in the GUI | |
424424
| `operation` || Set per-user in the GUI | |
425425

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ param sqlDatabaseName string
6868
// Note: operator and operation are per-user settings configured in the GUI,
6969
// not deployment-level config.
7070

71-
@description('PyRIT initializer to run. Default "target airt" registers target configs + attack defaults.')
72-
param pyritInitializer string = 'target airt'
71+
@description('PyRIT initializer to run. Default "target, airt" registers target configs + attack defaults.')
72+
param pyritInitializer string = 'target, airt'
7373

7474
@description('Key Vault secret name containing the .env file contents (all endpoints, models, and API keys). The secret is mounted as an env var and PyRIT parses it at startup.')
7575
param envSecretName string = 'env-global'

infra/parameters.demo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"value": "REPLACE_SQL_DATABASE"
3030
},
3131
"pyritInitializer": {
32-
"value": "target airt"
32+
"value": "target, airt"
3333
},
3434
"envFileContents": {
3535
"value": "PYRIT_REPLACE_ME=set-via-secure-channel"

infra/parameters.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"value": "YOUR_DATABASE_NAME"
2828
},
2929
"pyritInitializer": {
30-
"value": "target airt"
30+
"value": "target, airt"
3131
},
3232
"envSecretName": {
3333
"value": "env-global"

0 commit comments

Comments
 (0)