ЛР 7: TLS, mTLS, OpenBao и безопасность — на 3
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Set-Location (Split-Path -Parent $PSScriptRoot)
|
||||
function Check-Exit {
|
||||
if ($LASTEXITCODE -ne 0) { throw "Network check failed with exit $LASTEXITCODE" }
|
||||
}
|
||||
docker compose run --rm --no-deps -T `
|
||||
-v "${PWD}/student-tests/tls.py:/probe.py:ro" `
|
||||
-v "${PWD}/secrets/pki/lb-client:/run/probe/correct:ro" `
|
||||
-v "${PWD}/secrets/pki/wrong-ca:/run/probe/wrong-ca:ro" `
|
||||
-v "${PWD}/secrets/pki/wrong-san:/run/probe/wrong-san:ro" tools python /probe.py
|
||||
Check-Exit
|
||||
foreach ($service in @('api1', 'worker')) {
|
||||
Get-Content student-tests/dependencies.py -Raw | docker compose exec -T $service python -
|
||||
Check-Exit
|
||||
}
|
||||
docker compose run --rm --no-deps -T `
|
||||
-v "${PWD}/student-tests/telemetry_acl.py:/probe.py:ro" `
|
||||
-v "${PWD}/secrets/generated/collector.json:/run/check/collector.json:ro" `
|
||||
-v "${PWD}/secrets/generated/datasources.json:/run/check/datasources.json:ro" tools python /probe.py
|
||||
Check-Exit
|
||||
py -3 scripts/stack_audit.py
|
||||
Check-Exit
|
||||
Reference in New Issue
Block a user