Skip to content

Commit b78bc41

Browse files
committed
add red teaming changes
1 parent 55ba423 commit b78bc41

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

evals/safety_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def run_simulator(target_url: str, max_simulations: int):
117117
level=logging.WARNING,
118118
format="%(message)s",
119119
datefmt="[%X]",
120-
handlers=[RichHandler(rich_tracebacks=True, show_path=True)],
120+
handlers=[RichHandler(rich_tracebacks=False, show_path=True)],
121121
)
122122

123123
# Set urllib3 and azure libraries to WARNING level to see connection issues

infra/main.bicep

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,52 @@ module storage 'br/public:avm/res/storage/storage-account:0.9.1' = if (useAiProj
423423
}
424424
allowBlobPublicAccess: false
425425
allowSharedKeyAccess: false
426+
roleAssignments: [
427+
{
428+
principalId: principalId
429+
principalType: 'User'
430+
roleDefinitionIdOrName: 'Storage Blob Data Contributor'
431+
}
432+
]
433+
blobServices: {
434+
containers: [
435+
{
436+
name: 'default'
437+
publicAccess: 'None'
438+
}
439+
]
440+
cors: {
441+
corsRules: [
442+
{
443+
allowedOrigins: [
444+
'https://mlworkspace.azure.ai'
445+
'https://ml.azure.com'
446+
'https://*.ml.azure.com'
447+
'https://ai.azure.com'
448+
'https://*.ai.azure.com'
449+
'https://mlworkspacecanary.azure.ai'
450+
'https://mlworkspace.azureml-test.net'
451+
]
452+
allowedMethods: [
453+
'GET'
454+
'HEAD'
455+
'POST'
456+
'PUT'
457+
'DELETE'
458+
'OPTIONS'
459+
'PATCH'
460+
]
461+
maxAgeInSeconds: 1800
462+
exposedHeaders: [
463+
'*'
464+
]
465+
allowedHeaders: [
466+
'*'
467+
]
468+
}
469+
]
470+
}
471+
}
426472
}
427473
}
428474

0 commit comments

Comments
 (0)