Выполнение шага 5:

• Updated Plan
  └ Продолжаю итерацию 5 как отдельный рабочий срез поверх текущих SSH credentials.
    □ Добавить модель/миграцию/repository для host_scans и покрыть repository тестами
    □ Добавить SSH command runner и LinuxHostScanner с whitelist read-only команд
    □ Подключить controller/routes/UI для запуска deep scan и просмотра результата
    □ Прогнать проверки и зафиксировать ограничения Docker-верификации
This commit is contained in:
2026-05-29 17:34:27 +08:00
parent 3981ffdf5e
commit dc3a466944
15 changed files with 837 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Domovoy\Tests\Security;
use Domovoy\Services\Security\CredentialVault;
use PHPUnit\Framework\TestCase;
final class CredentialVaultTest extends TestCase
{
public function testEncryptsAndDecryptsSecretWithoutStoringPlaintext(): void
{
$vault = new CredentialVault('test-key-material');
$encrypted = $vault->encrypt('secret-password');
self::assertNotSame('secret-password', $encrypted);
self::assertSame('secret-password', $vault->decrypt($encrypted));
}
}