ЛР 7: TLS, mTLS, OpenBao и безопасность — на 3
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-22 06:03:17 +03:00
parent 20afc2c790
commit 9fb7dde29b
112 changed files with 6226 additions and 80 deletions
+10
View File
@@ -0,0 +1,10 @@
$ErrorActionPreference = 'Stop'
Set-Location (Split-Path -Parent $PSScriptRoot)
if (!(Test-Path -LiteralPath secrets)) {
New-Item -ItemType Directory -Path secrets | Out-Null
$identity = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
icacls.exe secrets /inheritance:r /grant:r "*${identity}:(OI)(CI)F" "*S-1-5-18:(OI)(CI)F" | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Could not restrict the local private directory' }
}
py -3 scripts/init_env.py
if ($LASTEXITCODE -ne 0) { throw 'PKI/configuration bootstrap failed' }