Очистить проект от сборок и отчётов, оставить README на русском

This commit is contained in:
scandalist-trash committed 2026-10-27 11:19:07 -04:00
1 parent ee5f6f580e
commit ce9fe1bb03
42 files changed
+146 -2529

No files matched your search

+6
View File
@@ -11,3 +11,9 @@ demo-project/
*.db
*.db-wal
*.db-shm
*.pyc
CMakeCache.txt
CMakeFiles/
Testing/
*.deb
*.AppImage
+4 -3
View File
@@ -3,7 +3,7 @@ project(ALDTransitionConsole VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
option(ALD_CORE_ONLY "Build portable decision engine and its tests only" OFF)
option(ALD_CORE_ONLY "Собрать только независимое ядро и его тесты" OFF)
include(CTest)
add_library(ald_rules src/core/Rules.cpp)
target_include_directories(ald_rules PUBLIC src)
@@ -18,7 +18,7 @@ if(ALD_CORE_ONLY)
endif()
find_package(Qt5 5.15.2 REQUIRED COMPONENTS Core Gui Widgets Network Sql Test)
if(NOT Qt5Core_VERSION VERSION_LESS 5.16)
message(FATAL_ERROR "This project targets the Qt 5.15 API family")
message(FATAL_ERROR "Для проекта требуется Qt семейства 5.15")
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
@@ -49,5 +49,6 @@ include(GNUInstallDirs)
install(TARGETS ald-transition-console RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# No setuid bit, daemon, package hook, or privileged operation enabled at install time.
install(TARGETS ald-transition-executor RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/ald-transition-console)
install(DIRECTORY docs data schemas resources/tasks DESTINATION ${CMAKE_INSTALL_DATADIR}/ald-transition-console)
install(DIRECTORY data schemas resources/tasks DESTINATION ${CMAKE_INSTALL_DATADIR}/ald-transition-console)
install(FILES README.md DESTINATION ${CMAKE_INSTALL_DATADIR}/ald-transition-console)
install(FILES packaging/ald-transition-console.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+85 -130
View File
@@ -1,167 +1,122 @@
# ALD Transition Console
Russian native desktop console for preparing an AD → ALD Pro 3.1.0 transition.
**0.1.0 development preview; not a validated Astra release or a completed migration.**
The selected destination remains `corp.local` in the existing IP network.
Приложение на C++17/Qt с русским интерфейсом для подготовки перехода
с Microsoft AD на ALD Pro 3.1.0. Это версия для испытаний: доступны диагностика,
инвентаризация, планирование и чек-листы. Автоматическая инициализация КД,
полная миграция и удаление AD пока заблокированы.
The C++17/Qt 5.15 source implements protected local projects, bounded native
read-only probes, fixed Windows PowerShell tasks over system OpenSSH, inventory
validation, stable identity maps, blocked migration planning, instructional
checklists with append-only observation history, HTML/JSON export, access
restoration records and a native Qt desktop shell. It does not claim that ALD
replicates AD DS or preserves SIDs, passwords, Windows profiles or GPO effects.
В репозитории находятся исходники, ресурсы, тесты и сценарии сборки.
Готовых файлов от сборки на Kali здесь нет.
## Установка пакетов на тестовой Astra
## 1. Получить чистые исходники на Astra
Команды выполняются на тестовой ВМ из штатных репозиториев выбранной Astra
или с одобренного локального носителя. Для сборки нужны C++17, CMake >= 3.13,
Qt **5.15.2–5.15.x**, плагин SQLite и Python >= 3.7. ALD Pro для самой сборки
не требуется. Зависимости действующего КД отдельно сверяются с допустимым
составом ПО его поставки.
При доступных репозиториях обновите индекс пакетов и проверьте версии:
Откройте терминал в графическом сеансе обычного пользователя:
```sh
sudo apt-get update
apt-cache policy cmake python3 qtbase5-dev qtbase5-dev-tools \
qt5-qmake libqt5sql5-sqlite
git clone https://git.ctfleague.ru/scandal/popki.git popki-astra
cd popki-astra
```
Сначала посмотрите предполагаемые изменения без установки:
Имя `popki-astra` должно быть свободно. Старую папку с вашими проектами
и результатами проверок можно сохранить отдельно. При переносе исходников
архивом распакуйте его и откройте терминал в папке, где находится `CMakeLists.txt`.
Git и интернет тогда не нужны.
```sh
apt-get -s install --no-upgrade --no-remove \
build-essential cmake make python3 git ca-certificates \
qtbase5-dev qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
```
## 2. Проверить зависимости
Если версии подходят и добавляются только недостающие пакеты, установите их:
```sh
sudo apt-get install --no-upgrade --no-remove \
build-essential cmake make python3 git ca-certificates \
qtbase5-dev qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
```
Если доступен только Qt 5.11 или симуляция предлагает обновление установленного
ПО, сохраните вывод для разбора состава репозиториев. Не подключайте Kali/Debian
и не обновляйте Astra, Qt, Python или ALD ради сборки. `--no-upgrade` не заменяет
проверку изменений зависимостей. Без интернета используйте локальный источник
пакетов с их зависимостями для той же версии Astra. Git и `ca-certificates`
нужны для получения исходников по HTTPS; при переносе архива их можно исключить.
Проверьте установленные версии, затем из корня исходников запустите сборку
и тесты **без sudo**:
Для сборки нужны C++17, CMake >= 3.13, Qt 5.15.2–5.15.x с модулями Core,
Gui, Widgets, Network, Sql, Test, плагин SQLite и Python >= 3.7.
ALD Pro для самой компиляции не требуется.
```sh
cmake --version
qmake -query QT_VERSION
python3 --version
python3 tools/build_astra_lab.py
```
Для дополнительных проверок `tools/check_assets.py` и `tools/validate_local.py`
нужен пакет `python3-jsonschema` с `Draft7Validator` из того же разрешённого источника. Он не нужен
для `build_astra_lab.py`; при необходимости проверьте и установите его отдельно:
Если зависимости уже установлены, переходите к сборке. Если чего-то нет,
проверьте доступные пакеты и предполагаемые изменения:
```sh
apt-get -s install --no-upgrade --no-remove python3-jsonschema
sudo apt-get install --no-upgrade --no-remove python3-jsonschema
python3 -c "from jsonschema import Draft7Validator; print('Draft7Validator: OK')"
apt-cache policy cmake python3 qtbase5-dev qtbase5-dev-tools \
qt5-qmake libqt5sql5-sqlite
apt-get -s install --no-upgrade --no-remove \
build-essential cmake make python3 qtbase5-dev qtbase5-dev-tools \
qt5-qmake libqt5sql5-sqlite
```
После успешной сборки обычный запуск с локальной диагностикой:
Если версии подходят и добавляются только недостающие пакеты:
```sh
sudo apt-get install --no-upgrade --no-remove \
build-essential cmake make python3 qtbase5-dev qtbase5-dev-tools \
qt5-qmake libqt5sql5-sqlite
```
Без интернета источником пакетов должен быть одобренный локальный носитель
или локальный репозиторий вашей версии Astra, со всеми зависимостями.
Сценарий сборки ничего не скачивает. Если доступен только Qt 5.11 или требуется
обновление установленного ПО, сохраните вывод для разбора. Не подключайте
репозитории Kali/Debian и не обновляйте систему ради приложения.
## 3. Собрать и проверить
Из папки `popki-astra`, **без sudo**:
```sh
python3 tools/build_astra_lab.py --jobs 2
```
Сценарий создаст `build-astra/`, соберёт приложение и запустит четыре набора
тестов. На небольшой ВМ используйте `--jobs 1`.
Успешный результат: `100% tests passed, 0 tests failed out of 4`, затем
`Результат: PASS` и полный путь для запуска. Наличие папки сборки само по себе
не означает, что программа собрана.
## 4. Запустить
В том же терминале, из той же папки, **без sudo**:
```sh
./build-astra/ald-transition-console --project ./astra-lab-project
```
Подробности и расположение отчёта — в [инструкции для стенда](docs/astra-lab.ru.md).
Откроется обычный режим с диагностикой этого компьютера. При старте доменные
настройки не изменяются. Каталог `astra-lab-project/` хранит базу проекта,
журнал и ваши отметки; не удаляйте его при обновлении исходников.
## Build
Для отдельного просмотра синтетических примеров можно добавить `--demo`
и выбрать другой каталог проекта. Для проверки настоящей Astra этот режим
не нужен.
For the Astra test machine, follow the [Russian laboratory guide](docs/astra-lab.ru.md).
The one-command handoff is `python3 tools/build_astra_lab.py`: it builds and runs
the four test suites, and saves a report archive even if a build stage fails.
It uses the Python standard library, installs nothing and never authorizes a
domain change or marks the release validated.
## Если произошла ошибка
Use an approved toolchain with CMake >= 3.13, a C++17 compiler, Qt **5.15.x**
(API baseline: 5.15.2), Core, Gui, Widgets, Network, Sql,
Test, the QSQLITE plugin, and Qt build tools. Russian Qt translations are used
when available. Do not install upstream packages on an Astra DC to force this
application to build. Validate the allowed software composition with the vendor.
Не запускайте несуществующий файл и не меняйте библиотеки наугад. Сценарий
покажет этап ошибки и сохранит архив в `artifacts/astra-lab/`.
Передайте этот архив и текст ошибки. Он содержит версии среды и журналы сборки,
но не базы проектов или ключи. Перед передачей проверьте локальные пути
и имена узлов в журнале.
Если сценарий не запустился вообще, передайте вывод:
```sh
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel 2
QT_QPA_PLATFORM=offscreen ctest --test-dir build --output-on-failure
pwd
ls
python3 --version
```
For CMake versions older than 3.20, run `ctest --output-on-failure` from `build/`
instead of using `--test-dir`. The actual validated package revisions must be
recorded in `docs/compatibility-lock.json` before packaging. Currently those
Astra fields are intentionally null.
## Что проверять дальше
The application and temporary executor were built on Kali 2026.3 with GCC
16.2.0, CMake 4.3.4 and Qt 5.15.19. All four CTest suites pass. The actual Qt
application renders and exits in explicit DEMO using the offscreen platform;
100/150/200% scale checks pass. X11 desktop validation and Astra/Windows
integration remain unverified. See [test results](docs/test-results.md).
После запуска сравните локальную диагностику с системой, проверьте страницы,
русский текст, клавиатуру и сохранение отметок после закрытия и повторного
открытия проекта. Ошибки нативных операций проверяются отдельно по журналу.
```sh
python3 tools/check_assets.py
python3 tools/run_portable_tests.py
python3 tools/validate_local.py
```
Целевая лабораторная конфигурация — ALSE 1.7.7 UU2, 6.1-generic, Смоленск,
ALD Pro 3.1.0. Поддержка операций и совместимость пакетов ещё требуют испытаний
на этой конфигурации. Совпадение имени `corp.local` не подтверждает сохранение
паролей, SID, профилей Windows или поведения политик.
## Run after a successful Qt build
The GUI refuses root. Select a dedicated project directory, owned by the
administrative user and mode `0700`. The process must already have legitimate
access to that directory; it never grants itself infrastructure privileges.
```sh
mkdir -m 700 /tmp/ald-console-demo
./build/ald-transition-console --project /tmp/ald-console-demo --demo
```
DEMO is an explicit selection and never substitutes for a failed live
connection. It uses synthetic identities and reserved documentation addresses.
For live **read-only** discovery, use another protected project directory and
omit `--demo`. The application performs local read-only probing at startup;
remote connections occur only after selecting a target and pressing an action.
No real infrastructure was changed during implementation.
## Current boundaries
- Native local probes are implemented; exact Astra integration is untested.
- Windows discovery and bounded directory inventory tasks are implemented,
but have not run against Windows 10 / Server 2019 / Server 2025 VMs.
- Full same-name migration, existing-password preservation, Windows trust and
profile continuity, ACL/application/policy equivalence and AD retirement
remain blocked. Manual PASS does not bypass capability gates.
- ALD initialization provides the documented interactive native workflow and
strict prerequisites. Automatic promotion is disabled pending the delivery,
installed help, exact package lock, same-name procedure and laboratory tests.
- Administration/policies provide guided workflows and profile comparison,
not a hidden unsupported write API. No automated infrastructure mutation is
enabled in this build.
- The temporary privileged helper allows only global `sshd -T` observation
through authenticated private local IPC. No setuid bit, daemon, polkit
auto-grant, custom root rule file or system task is installed.
- The 40 Linux recommendation cards have provisional source mapping. No
automatic remediation or regulatory certification claim is made.
- Offline JSON **data** bundles verify hashes and stage content for review;
publisher signatures, executable installation bundles and archive extraction
are not implemented. Accepted profiles are not silently changed.
Read the [operator guide](docs/operator-guide.ru.md),
[feasibility gates](docs/feasibility.md),
[adapter contracts](docs/native-adapter-contracts.md) and
[release acceptance matrix](docs/implementation-status.md).
The [next steps](docs/next-steps.ru.md) distinguish development dependencies from
the licensed vendor laboratory media. A reproducible source review archive can
be generated with `python3 tools/make_source_archive.py` after local validation;
it does not contain a binary or grant deployment/migration approval.
Сведения для допуска выпуска находятся в `packaging/compatibility-lock.json`.
Неизвестные версии оставлены пустыми; компиляция не заполняет их автоматически
и не разрешает изменения домена.
-28
View File
@@ -1,28 +0,0 @@
# Access restoration ledger
The preview does not automatically open remote access. The operator can record
manual changes with target, exact resource identity, original/applied state,
run, owner marker and restoration steps. These records are not automatic proof.
Never enter passwords, private keys or their file contents in a record.
Each resource is independently assessed by AccessLedger:
1. If the owner marker is not the relevant run's, preserve it.
2. If the host is unreachable, retain PENDING and manual instructions.
3. Observe current state through the relevant native mechanism.
4. If current differs from applied, record CONFLICT; do not overwrite newer work.
5. If equal, prepare the reviewed inverse and its concrete authorization.
6. Verify the effect separately. For the final access channel, record the need
for verification from the local console before closing it.
A result READY_FOR_REVIEW is not RESTORED. Manual descriptions cannot authorize
an automatic inverse. Pre-existing SSH/WinRM services, firewall rules and keys
are preserved. Restoration order puts credentials/groups/rules before the final
channel. A resource-specific validated restoration adapter and its GUI execution
are not yet implemented; the application saves useful manual obligations and
never claims they were removed remotely.
On normal exit, stop new read-only work, finish/cancel owned processes, persist
the project and show obligations. After a crash, mark interrupted runs
RECOVERY_REQUIRED and inspect actual state before any new change. Nothing
resumes by itself; no hidden cleanup agent is installed.
-113
View File
@@ -1,113 +0,0 @@
# Первая сборка и проверка на Astra
Для этого этапа достаточно одной тестовой Astra с графическим рабочим столом.
Развёртывать AD или устанавливать ALD ради компиляции не требуется. Целевая
лабораторная база проекта — ALSE 1.7.7 UU2, 6.1-generic, Смоленск; её соответствие
поставке ALD Pro 3.1.0 проверяется отдельно. Успешная компиляция на другой версии
подтверждает только проверенные функции приложения в этой среде.
## Получить исходники
Скопируйте и распакуйте архив исходников или получите репозиторий:
```sh
git clone https://git.ctfleague.ru/scandal/popki.git
cd popki
```
Для приватного репозитория нужен ваш доступ к серверу Git. При переносе архива
Git и доступ к серверу на Astra не нужны. Проводите сборку из каталога обычного
пользователя, а не из `/root` или системного каталога.
## Зависимости
Нужны C++17, CMake >= 3.13, make, Qt 5.15.2–5.15.x с модулями Core, Gui,
Widgets, Network, Sql, Test, инструменты Qt и плагин QSQLITE. Сценарий сборки
использует Python >= 3.7 из штатной поставки, без pip и сторонних модулей.
Проверьте установленные и доступные версии из одобренных репозиториев Astra:
```sh
cat /etc/astra/build_version
uname -r
python3 --version
apt-cache policy build-essential cmake make python3 qtbase5-dev \
qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
apt-get -s install --no-upgrade build-essential cmake make python3 \
qtbase5-dev qtbase5-dev-tools qt5-qmake libqt5sql5-sqlite
```
Последняя команда только показывает предполагаемые изменения. Если версии
соответствуют требованиям и добавляются только недостающие пакеты, установите
их штатным способом из этих же репозиториев или локального носителя. Не меняйте
репозитории на Kali/Debian и не обновляйте систему, Qt, Python или ALD ради
сборки. Если доступен только Qt 5.11 либо требуется обновление уже установленного
ПО, сохраните вывод и остановитесь на этом этапе: нужен разбор состава поставки.
Установка дополнительного ПО на действующий КД требует отдельной проверки
допустимого состава. Первую сборку удобнее делать на отдельной тестовой ВМ.
## Собрать и проверить
Из корня исходников, **без sudo**:
```sh
python3 tools/build_astra_lab.py
```
Сценарий сохраняет сведения об ОС, ядре, компиляторе, Qt и пакетах, конфигурирует
`build-astra/`, собирает два исполняемых файла и запускает четыре набора CTest
через Qt offscreen. На малой ВМ можно указать `--jobs 1`. Пакеты не скачиваются,
приложение не устанавливается в систему, привилегированный исполнитель не
запускается. Состояние `release_validated` остаётся `false`.
Итог и путь к архиву появятся в конце, в том числе при ошибке. Архив находится
в `artifacts/astra-lab/` и содержит `result.json`, `environment.json` и журналы
этапов. Базы проектов, ключи и переменные окружения туда не включаются. Вывод
сборки может содержать локальные пути и имена узлов; просмотрите его перед
передачей. Эти отчёты исключены из Git.
Ожидается `100% tests passed, 0 tests failed out of 4`. Ошибки загрузки QSQLITE,
Qt, компилятора или CMake сохраняются в журнале; успешного результата при этом
нет. Если ресурсов мало, повторите с `--jobs 1`. При остальных ошибках сначала
сохраните архив отчёта, а не меняйте системные библиотеки наугад.
## Проверить приложение в рабочем столе
После успешной сборки:
```sh
./build-astra/ald-transition-console --project ./astra-lab-project
```
Это обычный режим с чтением фактического локального окружения. Каталог проекта
создаётся с закрытыми правами; не используйте каталог существующего demo-проекта.
При старте нет удалённых подключений или изменения доменных настроек.
1. На странице «Проверка окружения» сравните версию ОС, ядро и обнаруженные
пакеты с системой. Неизвестная роль остаётся неизвестной до достаточных
наблюдений; её нельзя принимать за чистый контроллер.
2. Откройте все десять страниц, проверьте русский текст, переходы Tab/Shift+Tab,
видимый фокус, окно 1024×768 и отключение анимации.
3. Отметьте один пункт чек-листа как «Не проверено» с заметкой, закройте
приложение и откройте тот же проект. Убедитесь, что заметка сохранилась.
Экспортируйте HTML/JSON и проверьте читаемость.
4. Проверьте системный масштаб 150/200% в отдельном запуске. Offscreen-тесты
сами по себе не подтверждают работу графического сеанса Fly/X11.
5. Закройте приложение через экран завершения. Проверьте, что его процесс
завершился. Установленные доменные службы должны продолжать работать.
Для отдельно выбранного просмотра синтетических примеров можно использовать
`--demo --project ./demo-project`; это не результаты испытания Astra или AD.
## Что передать по итогам
Передайте архив отчёта `artifacts/astra-lab/*.tar.gz`, результат запуска GUI и
текст ошибки, если она появилась. Если невозможно даже запустить Python-сценарий,
достаточно вывода команд проверки зависимостей и самой ошибки.
Дальше последовательно проверяются нативная диагностика Astra, процедура
инициализации по установленной поставке, затем Windows и инвентаризация одного
исходного AD DC `corp.local`. Записи в чек-листе не разблокируют неподтверждённые
механизмы сохранения паролей, профилей и прав. Изменения домена проверяются только
по конкретному согласованному плану с восстановлением; программа сейчас не
включает автоматическое продвижение КД, полную миграцию или вывод AD из работы.
-19
View File
@@ -1,19 +0,0 @@
{
"observed_at": "2026-10-27T14:10:39.019463+00:00",
"platform": "Kali 2026.3 x86_64 development build",
"version": "ALD Transition Console 0.1.0-dev",
"binaries": [
{
"path": "build/ald-transition-console",
"size": 15983680,
"sha256": "1ab423d76a75af99eb70bb84303477fa8f71eef12a3ce877d5c65feee5111620"
},
{
"path": "build/ald-transition-executor",
"size": 1268424,
"sha256": "9623aee4e75046f1fa5c9e146e8226583254358badea1d7dbbd3aa237bfb49a1"
}
],
"unprivileged_executor_exit": 77,
"astra_validated": false
}
-29
View File
@@ -1,29 +0,0 @@
# Compatibility matrix — development preview
| Environment | GUI | Controller | Client management | Migration/hardening |
|---|---|---|---|---|
| ALSE 1.7.7 UU2 / 6.1-generic / Smolensk / ALD 3.1.0 | Not built/tested | Selected documented laboratory baseline; not tested here | Per-operation validation pending | Same-name continuity blocked; no write adapter enabled |
| Other ALSE 1.7.x updates | Unknown | Not inferred from family | Unknown | Unknown |
| Windows 10 1809+ | Not a GUI host | Not applicable | Native SSH/PS prerequisites documented; actual edition/build/features pending | ALD integration/profile/policy outcomes unverified |
| Windows Server 2019 | Not a GUI host | Source AD role must be inventoried | Native SSH/PS prerequisites documented | Migration and decommissioning procedure pending |
| Windows Server 2025 | Not a GUI host | Source/managed role must be inventoried | Transport capability separate from ALD support | ALD integration UNKNOWN even with successful SSH |
| Kali rolling 2026.3 (development machine) | Built: CMake 4.3.4, GCC 16.2.0, Qt 5.15.19; offscreen DEMO tested | Not supported as ALD target | No remote targets contacted | Four CTest suites pass; no ALD mutations |
The source uses Qt 5.15.2-era APIs and CMake language >=3.13. A newer installed
runtime is not proof of this source's target compatibility. Required Qt modules:
Core, Gui, Widgets, Network, Sql, Test; QSQLITE runtime plugin. No QtWebEngine,
Node, Chromium, ffmpeg, web server, persistent controller or Python runtime is
required by the shipped application. Python is used only for development asset
checks and evidence collection scripts.
`compatibility-lock.json` deliberately contains null target revisions. The
actual development compiler/runtime observations are in
`development-environment.json`. Do not turn them into an Astra lock.
Before packaging, inspect OS release/update, kernel, architecture, protection
level, compiler, CMake, all relevant Qt runtime/dev packages, SQLite driver,
OpenSSH, polkit and ALD/native packages. Confirm with the vendor whether this
additional desktop software and dependencies are permitted on the selected DC.
Isolation does not itself establish supported DC composition. No dependencies
are upgraded automatically. Package signatures/digests must come from the
approved target distribution channels.
-77
View File
@@ -1,77 +0,0 @@
{
"schema_version": 1,
"observed_at": "2026-10-27T14:04:17.108877+00:00",
"release_validated": false,
"os_release": "PRETTY_NAME=\"Kali GNU/Linux Rolling\"\nNAME=\"Kali GNU/Linux\"\nVERSION_ID=\"2026.3\"\nVERSION=\"2026.3\"\nVERSION_CODENAME=kali-rolling\nID=kali\nID_LIKE=debian\nHOME_URL=\"https://www.kali.org/\"\nSUPPORT_URL=\"https://forums.kali.org/\"\nBUG_REPORT_URL=\"https://bugs.kali.org/\"\nANSI_COLOR=\"1;31\"\n",
"astra_build": null,
"kernel": "7.1.5+kali-amd64",
"architecture": "x86_64",
"protection_level": null,
"commands": [
{
"argv": [
"g++",
"--version"
],
"exit_code": 0,
"stdout": "g++ (Debian 16.2.0-3) 16.2.0\nCopyright (C) 2026 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n",
"stderr": ""
},
{
"argv": [
"cmake",
"--version"
],
"exit_code": 0,
"stdout": "cmake version 4.3.4\n\nCMake suite maintained and supported by Kitware (kitware.com/cmake).\n",
"stderr": ""
},
{
"argv": [
"qmake",
"-query"
],
"exit_code": 0,
"stdout": "QT_SYSROOT:\nQT_INSTALL_PREFIX:/usr\nQT_INSTALL_ARCHDATA:/usr/lib/x86_64-linux-gnu/qt5\nQT_INSTALL_DATA:/usr/share/qt5\nQT_INSTALL_DOCS:/usr/share/qt5/doc\nQT_INSTALL_HEADERS:/usr/include/x86_64-linux-gnu/qt5\nQT_INSTALL_LIBS:/usr/lib/x86_64-linux-gnu\nQT_INSTALL_LIBEXECS:/usr/lib/x86_64-linux-gnu/qt5/libexec\nQT_INSTALL_BINS:/usr/lib/qt5/bin\nQT_INSTALL_TESTS:/usr/tests\nQT_INSTALL_PLUGINS:/usr/lib/x86_64-linux-gnu/qt5/plugins\nQT_INSTALL_IMPORTS:/usr/lib/x86_64-linux-gnu/qt5/imports\nQT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml\nQT_INSTALL_TRANSLATIONS:/usr/share/qt5/translations\nQT_INSTALL_CONFIGURATION:/etc/xdg\nQT_INSTALL_EXAMPLES:/usr/lib/x86_64-linux-gnu/qt5/examples\nQT_INSTALL_DEMOS:/usr/lib/x86_64-linux-gnu/qt5/examples\nQT_HOST_PREFIX:/usr\nQT_HOST_DATA:/usr/lib/x86_64-linux-gnu/qt5\nQT_HOST_BINS:/usr/lib/qt5/bin\nQT_HOST_LIBS:/usr/lib/x86_64-linux-gnu\nQMAKE_SPEC:linux-g++\nQMAKE_XSPEC:linux-g++\nQMAKE_VERSION:3.1\nQT_VERSION:5.15.19\n",
"stderr": ""
},
{
"argv": [
"ssh",
"-V"
],
"exit_code": 0,
"stdout": "",
"stderr": "OpenSSH_10.6p1 Debian-1, OpenSSL 3.6.5 29 Sep 2026\n"
},
{
"argv": [
"dpkg-query",
"-W",
"-f=${binary:Package}\t${Version}\t${db:Status-Status}\n",
"g++",
"gcc",
"cmake",
"qtbase5-dev",
"qtbase5-dev-tools",
"qt5-qmake",
"libqt5core5*",
"libqt5gui5*",
"libqt5widgets5*",
"libqt5network5*",
"libqt5sql5*",
"libqt5test5*",
"openssh-client",
"policykit-1",
"aldpro*",
"astra-version",
"freeipa*",
"sssd*",
"samba*"
],
"exit_code": 1,
"stdout": "cmake\t4.3.4-1\tinstalled\ng++\t4:16.1.0-3\tinstalled\ngcc\t4:16.1.0-3\tinstalled\nlibqt5core5a\t\tnot-installed\nlibqt5core5t64:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5gui5\t\tnot-installed\nlibqt5gui5-gles\t\tnot-installed\nlibqt5gui5t64:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5network5\t\tnot-installed\nlibqt5network5t64:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5sql5\t\tnot-installed\nlibqt5sql5-ibase\t\tnot-installed\nlibqt5sql5-mysql\t\tnot-installed\nlibqt5sql5-odbc\t\tnot-installed\nlibqt5sql5-psql\t\tnot-installed\nlibqt5sql5-sqlite:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5sql5-tds\t\tnot-installed\nlibqt5sql5t64:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5test5\t\tnot-installed\nlibqt5test5t64:amd64\t5.15.19+dfsg-5\tinstalled\nlibqt5widgets5\t\tnot-installed\nlibqt5widgets5t64:amd64\t5.15.19+dfsg-5\tinstalled\nopenssh-client\t1:10.6p1-1\tinstalled\npolicykit-1\t\tnot-installed\nqt5-qmake:amd64\t5.15.19+dfsg-5\tinstalled\nqtbase5-dev:amd64\t5.15.19+dfsg-5\tinstalled\nqtbase5-dev-tools\t5.15.19+dfsg-5\tinstalled\nsamba\t2:4.25.0+dfsg-1\tinstalled\nsamba-ad-dc\t\tnot-installed\nsamba-ad-provision\t\tnot-installed\nsamba-client\t\tnot-installed\nsamba-common\t2:4.25.0+dfsg-1\tinstalled\nsamba-common-bin\t2:4.25.0+dfsg-1\tinstalled\nsamba-libs:amd64\t2:4.25.0+dfsg-1\tinstalled\nsamba-vfs-ceph\t\tnot-installed\nsamba-vfs-glusterfs\t\tnot-installed\nsamba-vfs-modules\t\tnot-installed\nsssd-ad\t\tnot-installed\nsssd-ad-common\t\tnot-installed\nsssd-ipa\t\tnot-installed\n",
"stderr": "dpkg-query: no packages found matching aldpro*\ndpkg-query: no packages found matching astra-version\ndpkg-query: no packages found matching freeipa*\n"
}
]
}
-66
View File
@@ -1,66 +0,0 @@
# Feasibility and evidence register
Status: **BLOCKED migration; source development can proceed.** Access date:
2026-10-27. The sources are recorded in `data/sources.json`. `reviewed_web`
means retrieved page text, not an immutable delivery artifact or a lab test.
No original artifact digest was obtained; no digest is invented.
## Scope and questions
The owner requires replacement of the single-DC `corp.local` AD domain,
retaining its name, existing subnet and separate login/password/profile/data/
permission/application/policy outcomes. Research questions: supported 3.1
initialization, same-name authority transition, retained identities/credentials,
Windows integration, and exact Astra/DC software compatibility.
## Claims and open gates
| ID | Finding | Evidence / confidence | Consequence |
|---|---|---|---|
| F1 | Interactive native promotion is described in the 3.1 branch | ALD31_PROMOTION; documented, not tested | Guided procedure available; automated invocation disabled |
| F2 | Selected lab baseline is ALD 3.1 / ALSE 1.7.7 UU2, 6.1-generic, Smolensk | ALD_DEPLOY_COURSE; single vendor course | Exact delivery, packages and test VM still required |
| F3 | Same-name complete transition has not been established | No verified delivery/lab method supplied | Block production mutation and AD retirement |
| F4 | A repeated DNS domain label does not establish principal identity | MS_SID plus separate owner acceptance requirements | Stable GUID/SID maps; no login-based merge |
| F5 | Native Windows OpenSSH has versioned OS/PowerShell prerequisites | MS_OPENSSH; vendor documentation, no local VM | Transport observation does not authorize ALD integration |
| F6 | FSTEC original was not obtained | FSTEC_LINUX_2022 fetch timeout | `artifact_sha256=null`, `pending_original` |
| F7 | Yama value 3 has no runtime inverse during the current kernel session | KERNEL_YAMA; documented | Reboot recovery classification; no fictional inverse |
The mandatory requirements include same-name transition, credentials, computer
trust, Windows profiles (including applicable DPAPI/EFS), identity/permission
mapping, application authentication, policy outcomes and AD independence.
All are UNKNOWN / NOT_CHECKED in the released registry. Reachable SSH,
matching names, matching counts, exit zero or human checkmarks cannot turn
them into VERIFIED/PASS. A requirement change needs a new owner-reviewed
plan; there is no exception checkbox that removes these requirements.
## Contradictions and source quality
The 3.1 promotion page currently contains navigation naming a newer release;
its content describes interactive input, `-d`, `-n`, `--ip`, and `--no-reboot`.
The course uses a different long hostname option in its example. The application
retains the 3.1 page's short `-n` template and requires installed help and an
immutable delivery manual before enablement. Earlier local research includes
3.2/3.3-only content; those commands are not imported into an executable adapter.
The mutable vendor course and vendor manual are not independent laboratory
confirmations. Microsoft supports the transport technology, not an ALD domain
integration scenario. The text reproduction of the FSTEC document is explicitly
provisional and is not presented as the official artifact. Source bias is
handled through per-operation support states and pending validation rather
than a vote among derivative pages. No community claim unlocks execution.
## Next evidence needed
Obtain the selected ALD delivery, exact ALSE VM, installed installer help and
vendor-approved procedure for two successive `corp.local` authorities in the
same network. Run isolated restore rehearsal for the only source DC and each
mandatory continuity test on the named Windows builds. Freeze the relevant
manuals with real digests. An unavailable path remains a visible blocker;
changing to another target name/subnet or keeping a hidden AD/Samba domain is
not an accepted workaround.
Sources: [ALD 3.1 promotion](https://www.aldpro.ru/materials/3.1.0/Руководство%20Администратора/2_subsystems_deployment/2.1/2.1.8.html),
[deployment course](https://www.aldpro.ru/professional/ALD_Pro_Module_02/ALD_Pro_deployment.html),
[Microsoft OpenSSH](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse),
[Microsoft SIDs](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers),
[Yama](https://docs.kernel.org/admin-guide/LSM/Yama.html).
-14
View File
@@ -1,14 +0,0 @@
[
{
"scale": "1.5",
"exit_code": 0,
"stdout": "********* Start testing of UiTests *********\nConfig: Using QtTest library 5.15.19, Qt 5.15.19 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 16.2.0), kali 2026.3\nPASS : UiTests::initTestCase()\nPASS : UiTests::explicitDemoAndKeyboard()\nPASS : UiTests::importedTooltipEscaped()\nPASS : UiTests::narrowPagesKeepActionsReachable()\nPASS : UiTests::reducedMotionStopsDecoration()\nPASS : UiTests::manualPassDoesNotAuthorizeMigration()\nPASS : UiTests::cleanupTestCase()\nTotals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 1422ms\n********* Finished testing of UiTests *********\n",
"stderr": ""
},
{
"scale": "2",
"exit_code": 0,
"stdout": "********* Start testing of UiTests *********\nConfig: Using QtTest library 5.15.19, Qt 5.15.19 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 16.2.0), kali 2026.3\nPASS : UiTests::initTestCase()\nPASS : UiTests::explicitDemoAndKeyboard()\nPASS : UiTests::importedTooltipEscaped()\nPASS : UiTests::narrowPagesKeepActionsReachable()\nPASS : UiTests::reducedMotionStopsDecoration()\nPASS : UiTests::manualPassDoesNotAuthorizeMigration()\nPASS : UiTests::cleanupTestCase()\nTotals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 1720ms\n********* Finished testing of UiTests *********\n",
"stderr": ""
}
]
-51
View File
@@ -1,51 +0,0 @@
{
"observed_at": "2026-10-27T14:10:19.357780+00:00",
"platform": "Qt offscreen",
"records": [
{
"kind": "application_demo",
"scale": "1",
"exit_code": 0,
"stdout": "",
"stderr": ""
},
{
"kind": "ui_suite",
"scale": "1",
"exit_code": 0,
"stdout": "********* Start testing of UiTests *********\nConfig: Using QtTest library 5.15.19, Qt 5.15.19 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 16.2.0), kali 2026.3\nPASS : UiTests::initTestCase()\nPASS : UiTests::explicitDemoAndKeyboard()\nPASS : UiTests::importedTooltipEscaped()\nPASS : UiTests::narrowPagesKeepActionsReachable()\nPASS : UiTests::reducedMotionStopsDecoration()\nPASS : UiTests::manualPassDoesNotAuthorizeMigration()\nPASS : UiTests::cleanupTestCase()\nTotals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 1004ms\n********* Finished testing of UiTests *********\n",
"stderr": ""
},
{
"kind": "application_demo",
"scale": "1.5",
"exit_code": 0,
"stdout": "",
"stderr": ""
},
{
"kind": "ui_suite",
"scale": "1.5",
"exit_code": 0,
"stdout": "********* Start testing of UiTests *********\nConfig: Using QtTest library 5.15.19, Qt 5.15.19 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 16.2.0), kali 2026.3\nPASS : UiTests::initTestCase()\nPASS : UiTests::explicitDemoAndKeyboard()\nPASS : UiTests::importedTooltipEscaped()\nPASS : UiTests::narrowPagesKeepActionsReachable()\nPASS : UiTests::reducedMotionStopsDecoration()\nPASS : UiTests::manualPassDoesNotAuthorizeMigration()\nPASS : UiTests::cleanupTestCase()\nTotals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 1219ms\n********* Finished testing of UiTests *********\n",
"stderr": ""
},
{
"kind": "application_demo",
"scale": "2",
"exit_code": 0,
"stdout": "",
"stderr": ""
},
{
"kind": "ui_suite",
"scale": "2",
"exit_code": 0,
"stdout": "********* Start testing of UiTests *********\nConfig: Using QtTest library 5.15.19, Qt 5.15.19 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 16.2.0), kali 2026.3\nPASS : UiTests::initTestCase()\nPASS : UiTests::explicitDemoAndKeyboard()\nPASS : UiTests::importedTooltipEscaped()\nPASS : UiTests::narrowPagesKeepActionsReachable()\nPASS : UiTests::reducedMotionStopsDecoration()\nPASS : UiTests::manualPassDoesNotAuthorizeMigration()\nPASS : UiTests::cleanupTestCase()\nTotals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 1491ms\n********* Finished testing of UiTests *********\n",
"stderr": ""
}
],
"astra_validated": false,
"x11_desktop_validated": false,
"screen_reader_validated": false
}
-19
View File
@@ -1,19 +0,0 @@
{
"command": [
"xvfb-run",
"-a",
"-s",
"-screen 0 3200x2000x24 -nolisten tcp",
"/home/scandalist/migration_ALD_pro/build/ald-transition-console",
"--project",
"/tmp/ald-xcb-xjk1lymr/project",
"--demo",
"--smoke-test",
"--capture",
"/home/scandalist/migration_ALD_pro/artifacts/screenshots/overview-xcb.png"
],
"exit_code": 1,
"stdout": "",
"stderr": "qt.qpa.xcb: could not connect to display :109\nqt.qpa.plugin: Could not load the Qt platform plugin \"xcb\" in \"\" even though it was found.\nThis application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.\n\nAvailable platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.\n\nAborted (core dumped)\n",
"diagnostic": "xdpyinfo also failed: Xvfb cannot create local/unix listening sockets in this environment. No missing libqxcb linked dependencies were found."
}
-33
View File
@@ -1,33 +0,0 @@
# Implementation status and remaining work
This is a source development preview, **not the first accepted production
release**. Missing Astra/Windows VMs block laboratory validation, not the
portable core. The C++/Qt application and helper now compile on Kali; all four CTest suites
and Qt offscreen scale checks pass. This does not validate Astra or Windows. No real infrastructure was changed.
| Phase | Delivered source/data | Remaining acceptance |
|---|---|---|
| 0 | Requirements snapshot, feasibility, matrix, nullable lock, sources, adapter/access contracts | Exact delivery artifacts, real hashes and supported VM lock |
| 1 | CMake, domain records, closed JSON schemas, bounded validator, SQLite migrations/private projects | Disk-full and interrupted multi-document transaction fault injection |
| 2 | Allowlist, async read-only runner, dependency/error policies, redaction, journal, shutdown, authenticated temporary read-only helper | Helper IPC lab and privileged lifecycle validation; no mutating privileged adapter enabled |
| 3 | Local native probes, fixed Windows facts/AD inventory, strict SSH, guided access and restoration records | Actual Astra/Windows operation validation; DNS endpoints/resources/protection/locks still need fuller discovery |
| 4 | Russian native ten-page shell, model-backed tables, explicit demo, reduced motion, selectable text, keyboard controls | Offscreen screenshots and narrow navigation checked at 100/150/200%; real desktop and screen-reader inspection pending |
| 5 | Version-specific interactive initialization contract and conservative planner | Native delivery/help, namespace procedure, lab promotion/postconditions; no automatic installer |
| 6 | Import, stable identity map, item/scope gap coverage, ten-phase blocked plan, cutover preview | Real category collectors beyond directory, supported migration operations, continuity and AD independence |
| 7 | Guided domain paths, profile comparison/ownership conflicts, separate Windows guidance | Validated write/read adapters, authoritative/resultant policy collection and per-setting semantic maps |
| 8 | All 40 source cards, two specific observation paths, Astra/Windows catalogs, compliance separation | Original FSTEC artifact, version/role maps, verified remediation/restoration paths |
| 9 | Debian template/release gate, operator/recovery guide, unit sources, portable and asset checks | Astra build/install/uninstall; package artifact; all integration results |
Additional limits: data bundles are staged with digest verification only,
signature verification is not implemented; no executable bundles are imported.
No generalized WinRM adapter, continuous monitoring, automatic updates or
telemetry exists. GUI-owned runtime work is read-only and serial. No imported
source, checkbox, waiver or editable manifest enables mutation. Compiled
capabilities remain UNKNOWN/DOCUMENTED_NOT_TESTED until a separately reviewed
implementation and evidence establish otherwise.
The instruction list contains seventeen useful checks with history/export,
not complete automated acceptance of all enterprise dependencies. Hardware,
resource thresholds, package-lock acquisition, DNS forward/reverse/service
queries, complete GPO/ACL/PKI/DHCP collectors and typed mutations are unfinished
features, not silently counted as absent dependencies or passed checks.
-52
View File
@@ -1,52 +0,0 @@
# Native interface build and DEMO review
Scope: explicit synthetic DEMO startup → keyboard navigation through ten pages
→ checklist presentation → normal shutdown. Live mutation/error workflows and
screen-reader interaction are outside this rendered review. Stack: Qt Widgets/QPainter/QSS; the owner specification in
`requirements.md` defines layout, colors and motion. The `dedsec-motion` visual
language uses original geometry, with no third-party artwork or video runtime.
`better-interface` and its six domain instructions guided source inspection.
| Domain | Evidence inspected | Result |
|---|---|---|
| Accessibility | MainWindow, WorkflowPage, ChecklistPage, PixelDecoration, UI test source | Native names/plain text, keyboard navigation and reduced-motion tests pass; screen reader not verified |
| Layout | Splitters, FlowLayout, scroll forms, collapsible diagnostics | Actual 1024×768 action containment tested at 100/150/200%; sidebar label wrapping corrected |
| Writing | Russian workflow titles, blockers, observations, recovery instructions | Human/machine history separated; raw native details remain expandable |
| Typography | Theme/QSS, deterministic DejaVu fonts | Actual Cyrillic screenshots inspected at normal/high scale |
| Colors | Central tokens, focus and primary controls | Declared contrast passes; inspected DEMO states remain readable; high-contrast theme pending |
| UI | Buttons, tables, model refresh, selection/history and shutdown | Qt UI suite passes at three scales; no live state claimed |
## Source findings addressed
| Severity | Domain | Location | Before | After | Why |
|---|---|---|---|---|---|
| HIGH | Layout | `src/ui/pages/WorkflowPage.cpp:11` | Fixed action row could clip at narrow width | Wrapping FlowLayout | Primary actions must remain reachable |
| HIGH | UI | `src/ui/models/JsonTableModel.cpp:30` | Imported tooltip text could be interpreted as rich text | Escape markup | Inventory content must stay literal |
| MEDIUM | Writing | `src/ui/pages/ChecklistPage.cpp` | Results visible only as raw JSON | Separate method/result/operator/time table, expandable full record | Operator must distinguish human checks from automatic evidence |
| MEDIUM | UI | `src/ui/pages/WorkflowPage.cpp` | Row-number restoration could select another object after refresh | Restore stable row identity | A refresh must not change the apparent subject |
| MEDIUM | Colors | `resources/styles/dedsec.qss` | Primary fill and focus indicator used the same accent | Distinct focused fill and 2 px accent outline | Keyboard focus needs visible contrast |
## Verification
Passed: `python3 tools/check_theme.py`, the four CTest suites and
`python3 tools/check_gui.py`. The actual C++ executable captures 1440×900 logical
screenshots and exits. Qt tests capture all ten pages at 1024×768, exercise
keyboard navigation, reduced motion and capability gates at scale 1, 1.5 and 2.
Image dimensions match the requested scaling. The screenshots are Qt renders,
not web or Python recreations.
Visual inspection covered overview, access, blocked migration, checklist,
initialization and restoration at normal/high scale. It revealed truncated
sidebar labels; `NavigationList` now measures wrapping and keeps full labels.
The port editor now meets the height baseline and uses direct numeric input.
Evidence: [GUI smoke results](gui-smoke-results.json),
[screenshots](../artifacts/screenshots/), and [test results](test-results.md).
**Not verified:** actual X11 desktop (Xvfb could not bind local sockets), desktop
focus/assistive-technology behavior, screen-reader announcements, all live error
states, high-contrast themes and selection/scrolling under remote updates.
**Verdict: Approve for the inspected offscreen DEMO scope.** This is not approval
of a production administration release; the excluded runtime and laboratory
checks remain open.
-386
View File
@@ -1,386 +0,0 @@
# Ручная подготовка тестового MS AD для миграции в ALD Pro
Документ предназначен только для изолированного тестового домена. Все объекты
создаются вручную через стандартные оснастки Windows. Не изменяйте `Default
Domain Policy`, `Default Domain Controllers Policy` и не добавляйте тестовые
группы в `Domain Admins`.таак
## 1. Структура OU
Откройте `dsa.msc`. В домене `corp.local` создайте корневой OU:
```text
ALD-LAB
```
Внутри него создайте:
```text
ALD-LAB
├── Users
├── Groups
├── Workstations
├── Servers
├── ServiceAccounts
├── Applications
└── Disabled
```
Все тестовые объекты должны находиться только внутри `ALD-LAB`.
## 2. Тестовые пользователи
В `OU=Users,OU=ALD-LAB` создайте:
| Логин | Имя | Назначение |
|---|---|---|
| `ald.alice` | Alice Test | обычный пользователь |
| `ald.bob` | Bob Test | пользователь Helpdesk |
| `ald.carol` | Carol Test | ИТ-администратор |
| `ald.eve.priv` | Eve Privileged | привилегированная тестовая учетная запись |
В `OU=Disabled,OU=ALD-LAB` создайте:
```text
ald.dave.disabled
```
После создания отключите эту учетную запись.
В `OU=ServiceAccounts,OU=ALD-LAB` создайте:
```text
svc_ald_app
```
Для сервисной учетной записи в лаборатории можно включить `Password never
expires`, но не использовать её как интерактивную администраторскую учетную
запись.
Для всех пользователей задайте один временный пароль стенда. Не используйте
его вне лаборатории.
## 3. Тестовые группы
В `OU=Groups,OU=ALD-LAB` создайте следующие группы. Все группы должны быть
типа `Security`.
Глобальные:
```text
GG-ALD-LAB-Employees
GG-ALD-LAB-IT
GG-ALD-LAB-Helpdesk
GG-ALD-LAB-AppUsers
GG-ALD-LAB-Privileged
```
Domain Local:
```text
DL-ALD-LAB-File-Read
DL-ALD-LAB-File-Modify
```
Universal:
```text
UG-ALD-LAB-AllTestUsers
```
### Членство
```text
GG-ALD-LAB-Employees:
ald.alice
ald.bob
ald.carol
ald.dave.disabled
GG-ALD-LAB-IT:
ald.carol
GG-ALD-LAB-Helpdesk
GG-ALD-LAB-Privileged
GG-ALD-LAB-Helpdesk:
ald.bob
GG-ALD-LAB-AppUsers:
ald.alice
ald.bob
GG-ALD-LAB-Privileged:
ald.eve.priv
DL-ALD-LAB-File-Read:
GG-ALD-LAB-Employees
DL-ALD-LAB-File-Modify:
GG-ALD-LAB-IT
UG-ALD-LAB-AllTestUsers:
GG-ALD-LAB-Employees
GG-ALD-LAB-IT
```
Такая схема проверяет прямое и вложенное членство, разные типы групп,
перенос групповых полномочий и преобразование ACL.
## 4. Компьютеры
В `OU=Workstations,OU=ALD-LAB` создайте:
```text
WS-ALD-001
WS-ALD-002
```
В `OU=Servers,OU=ALD-LAB` создайте:
```text
SRV-ALD-001
```
Это предварительно созданные компьютерные объекты. Позже один Windows-клиент
можно реально ввести в домен и проверить применение GPO.
## 5. Тестовые GPO
Откройте `gpmc.msc` и создайте:
```text
GPO-ALD-LAB-UI
GPO-ALD-LAB-Computer-Baseline
GPO-ALD-LAB-Application-Access
GPO-ALD-LAB-Disabled-Example
```
Не связывайте эти GPO с корнем домена.
### GPO-ALD-LAB-UI
Свяжите только с `OU=Users,OU=ALD-LAB`.
Включите:
```text
User Configuration
→ Policies
→ Administrative Templates
→ Control Panel
→ Prohibit access to Control Panel and PC settings
```
Для дополнительного маркера создайте Registry Preference:
```text
User Configuration
→ Preferences
→ Windows Settings
→ Registry
```
Создайте:
```text
Hive: HKEY_CURRENT_USER
Key Path: Software\ALD-LAB
Value name: UIProfile
Type: REG_SZ
Value: ALD-LAB-Blue
```
И второе значение:
```text
Value name: MigrationMarker
Type: REG_SZ
Value: USER-GPO-APPLIED
```
### GPO-ALD-LAB-Computer-Baseline
Свяжите с `OU=Workstations,OU=ALD-LAB`.
Создайте Registry Preference:
```text
Hive: HKEY_LOCAL_MACHINE
Key Path: Software\ALD-LAB
Value name: ComputerBaseline
Type: REG_SZ
Value: COMPUTER-GPO-APPLIED
```
Второе значение:
```text
Value name: ExpectedComputerOU
Type: REG_SZ
Value: OU=Workstations,OU=ALD-LAB
```
### GPO-ALD-LAB-Application-Access
Свяжите с `OU=Users,OU=ALD-LAB`.
В Security Filtering уберите `Authenticated Users` и добавьте:
```text
GG-ALD-LAB-AppUsers
```
Для группы оставьте права `Read` и `Apply group policy`.
Добавьте значение:
```text
Hive: HKEY_CURRENT_USER
Key Path: Software\ALD-LAB\Applications
Value name: AppAccess
Type: REG_SZ
Value: ALD-LAB-APP-ALLOWED
```
### GPO-ALD-LAB-Disabled-Example
Создайте GPO, но не связывайте его ни с одной OU. Он нужен для проверки
состояния link/unlink при миграции.
## 6. DNS-записи
Откройте `dnsmgmt.msc`.
В зоне `corp.local` создайте:
```text
A:
ald-lab-app → IP тестового приложения
CNAME:
portal-ald-lab → ald-lab-app.corp.local
```
Не изменяйте существующие SRV-записи Kerberos и LDAP.
## 7. Тестовый SPN
Для учетной записи `svc_ald_app` зарегистрируйте SPN. Замените `CORP` на
фактическое NetBIOS-имя домена:
```cmd
setspn -S HTTP/ald-lab-app.corp.local CORP\svc_ald_app
setspn -S HTTP/ald-lab-app CORP\svc_ald_app
```
Проверка:
```cmd
setspn -L CORP\svc_ald_app
```
Это даст тест для переноса сервисной учетной записи, SPN и Kerberos-доступа.
## 8. Файловый ресурс и ACL
На отдельном тестовом файловом сервере создайте:
```text
D:\ALD-LAB-Data
```
Внутри создайте:
```text
readme.txt
modify.txt
```
В разрешениях SMB задайте:
```text
DL-ALD-LAB-File-Read — Read
DL-ALD-LAB-File-Modify — Change
```
В NTFS задайте:
```text
DL-ALD-LAB-File-Read — Read & Execute
DL-ALD-LAB-File-Modify — Modify
```
Не оставляйте `Everyone` с полными правами.
Ожидаемый результат:
- `ald.alice` читает файлы;
- `ald.bob` изменяет файлы;
- `ald.carol` изменяет файлы;
- пользователь вне групп доступа не получает доступ.
## 9. Проверка GPO
На тестовом Windows-клиенте:
1. Введите компьютер в `corp.local`.
2. Переместите его объект в `OU=Workstations,OU=ALD-LAB`.
3. Войдите пользователем `ald.alice`.
4. Выполните:
```cmd
gpupdate /force
gpresult /r
```
Проверьте значения:
```cmd
reg query HKCU\Software\ALD-LAB
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
reg query HKLM\Software\ALD-LAB
```
Ожидается:
- у Alice запрещена панель управления;
- присутствует `UIProfile`;
- присутствует `USER-GPO-APPLIED`;
- присутствует `COMPUTER-GPO-APPLIED`;
- `GPO-ALD-LAB-Application-Access` применяется Alice и Bob;
- `GPO-ALD-LAB-Disabled-Example` не применяется.
## 10. Baseline перед миграцией
В GPMC для каждого GPO выполните `Back Up` и сохраните резервные копии.
Зафиксируйте:
- дерево OU;
- пользователей и их статусы Enabled/Disabled;
- группы и вложенное членство;
- компьютеры;
- GPO и их ссылки;
- порядок ссылок и Enforced/Block Inheritance;
- Security Filtering;
- DNS A/CNAME;
- SPN;
- SMB/NTFS ACL;
- результаты входа Alice, Bob и Carol;
- результаты `gpresult`;
- результаты доступа к файловой шаре.
## 11. Что проверяется при последующей миграции в ALD Pro
| Объект стенда | Что проверяем в ALD Pro |
|---|---|
| OU и пользователи | перенос идентичностей и атрибутов |
| Global/Universal/Domain Local-группы | сохранение членства и вложенности |
| Отключённый пользователь | корректный статус блокировки |
| Сервисная учетная запись | замена пароля, SPN и способа запуска сервиса |
| GPO | перенос в эквивалентные политики ALD/Salt/HBAC/SUDO |
| UI-маркеры | применение политики на тестовом клиенте |
| Компьютерные объекты | повторное подключение и enrollment клиента |
| DNS A/CNAME | перенос разрешения имен и зависимостей приложений |
| SMB/NTFS ACL | преобразование SID-доступа в новую модель идентификаторов |
| `GPO-ALD-LAB-Disabled-Example` | сохранение состояния неактивной политики |
-102
View File
@@ -1,102 +0,0 @@
{
"schema_version": 1,
"observed_at": "2026-10-27T14:09:30.257880+00:00",
"source_digest": "18f47ca67a6ba070d4288e2a29d2c24b26d68e65ae4c7270acf6e278bd7558ed",
"checks": [
{
"name": "data_and_manifest",
"command": [
"/usr/bin/python3",
"tools/check_assets.py"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "PASS: schemas, 26 resources, 23 source references, 40 cards, 17 checklist instructions, task hashes and synthetic fixtures\n",
"stderr": "",
"status": "PASS"
},
{
"name": "declared_theme_contrast",
"command": [
"/usr/bin/python3",
"tools/check_theme.py"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "text/background: 17.64:1 (required 4.5:1)\ntext/panel: 16.17:1 (required 4.5:1)\nsecondary/panel: 9.25:1 (required 4.5:1)\nwarning/panel: 11.55:1 (required 4.5:1)\nbackground/accent: 12.74:1 (required 4.5:1)\naccent/panel: 11.68:1 (required 4.5:1)\naccent/elevated: 10.67:1 (required 3:1)\nPASS: declared text/focus token contrast; rendered, high-contrast-mode and screen-reader checks remain pending\n",
"stderr": "",
"status": "PASS"
},
{
"name": "portable_rules_asan_ubsan",
"command": [
"/usr/bin/python3",
"tools/run_portable_tests.py"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "PASS: 40457 assertions, including 1000 seeded chunk/DAG trials\n",
"stderr": "",
"status": "PASS"
},
{
"name": "unvalidated_release_refused",
"command": [
"/usr/bin/python3",
"tools/verify_release_lock.py"
],
"expected_exit": 1,
"exit_code": 1,
"stdout": "",
"stderr": "RELEASE BLOCKED: supported Astra validation incomplete; missing: os_release, os_update, kernel, architecture, compiler, cmake, qt_packages, sqlite_driver, transports, ald_packages\n",
"status": "PASS"
},
{
"name": "qt_configure",
"command": [
"cmake",
"-S",
".",
"-B",
"build",
"-DCMAKE_BUILD_TYPE=Debug"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "-- Configuring done (0.0s)\n-- Generating done (0.1s)\n-- Build files have been written to: /home/scandalist/migration_ALD_pro/build\n",
"stderr": "",
"status": "PASS"
},
{
"name": "qt_build",
"command": [
"cmake",
"--build",
"build",
"--parallel",
"2"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "[ 2%] Built target ald_rules\n[ 2%] Built target ald-transition-executor_autogen_timestamp_deps\n[ 4%] Built target test_rules\n[ 4%] Built target ald_core_autogen_timestamp_deps\n[ 5%] Built target ald-transition-executor_autogen\n[ 6%] Built target ald_core_autogen\n[ 12%] Built target ald-transition-executor\n[ 55%] Built target ald_core\n[ 55%] Built target ald_ui_autogen_timestamp_deps\n[ 56%] Automatic MOC for target ald_ui\n[ 56%] Built target ald_ui_autogen\n[ 57%] Building CXX object CMakeFiles/ald_ui.dir/src/ui/pages/WorkflowPage.cpp.o\n[ 58%] Linking CXX static library libald_ui.a\n[ 77%] Built target ald_ui\n[ 77%] Built target ald-transition-console_autogen_timestamp_deps\n[ 77%] Built target test_storage_autogen_timestamp_deps\n[ 77%] Built target test_runtime_autogen_timestamp_deps\n[ 77%] Built target test_ui_autogen_timestamp_deps\n[ 78%] Built target ald-transition-console_autogen\n[ 79%] Built target test_storage_autogen\n[ 80%] Built target test_runtime_autogen\n[ 82%] Built target test_ui_autogen\n[ 84%] Linking CXX executable ald-transition-console\n[ 84%] Linking CXX executable test_storage\n[ 87%] Built target test_storage\n[ 88%] Linking CXX executable test_runtime\n[ 92%] Built target ald-transition-console\n[ 93%] Linking CXX executable test_ui\n[ 96%] Built target test_runtime\n[100%] Built target test_ui\n",
"stderr": "",
"status": "PASS"
},
{
"name": "qt_tests",
"command": [
"ctest",
"--output-on-failure"
],
"expected_exit": 0,
"exit_code": 0,
"stdout": "Test project /home/scandalist/migration_ALD_pro/build\n Start 1: rules\n1/4 Test #1: rules ............................ Passed 0.12 sec\n Start 2: storage\n2/4 Test #2: storage .......................... Passed 0.05 sec\n Start 3: runtime\n3/4 Test #3: runtime .......................... Passed 0.05 sec\n Start 4: ui\n4/4 Test #4: ui ............................... Passed 0.78 sec\n\n100% tests passed, 0 tests failed out of 4\n\nTotal Test time (real) = 1.00 sec\n",
"stderr": "",
"status": "PASS"
}
],
"qt_validation": "PASS",
"astra_lab": "NOT_AVAILABLE",
"windows_lab": "NOT_AVAILABLE",
"release_validated": false
}
-83
View File
@@ -1,83 +0,0 @@
# Native adapter contracts — 0.1.0
All runtime operation identifiers are compiled allowlists. JSON carries data,
never executable text. ProcessRunner rejects every mutating ProcessSpec in this
preview. Schema acceptance and a user-edited capability file cannot grant root.
| Adapter | Native execution | Limits / verification | Release state |
|---|---|---|---|
| Local OS/kernel | cat os-release; uname -r -m | Fixed files/args; bounded output; structure checks | Implemented; Astra untested |
| Packages | dpkg-query -W with fixed format | Installed status observed; ALD package versions filtered; package alone is not role | Implemented |
| Services | systemctl show fixed units | Read-only; health cannot be inferred from a stopped/installed unit | Implemented, unit-name validation pending on ALD |
| Network/time | ip -j address/route; timedatectl show; hostname -f; resolv.conf | No subnet scan, no resolver edit, no sync/restart | Implemented |
| Yama | cat /proc/sys/kernel/yama/ptrace_scope | Runtime observation only, no persistent-state or compliance PASS | Implemented |
| Windows facts | Fixed embedded discovery.ps1 over native SSH command execution | PS 5.1, CIM and optional-feature availability; JSON shape required | Implemented, Windows VMs untested |
| AD directory | Fixed embedded ad-inventory.ps1 | AD module; configured DC; fixed filter; 50000-object limit; no password attributes | Implemented, AD VM untested; incomplete total scope |
| SSH effective config | Temporary root helper, sshd -T | Global value only; Match-context not verified; no mutation | Implemented, helper IPC/runtime untested |
| ALD initialize | Documented interactive local installer | Installed help, exact delivery, same-name plan and lab required | GUIDED_NATIVE; automation disabled |
| ALD objects/settings/policies | Versioned manual/portal paths | No reverse-engineered APIs or generated-cache writes | Guided workflows; automation unimplemented |
| Windows policy writes | Separate per-build baseline | LGPO artifact and mapping not validated | UNKNOWN, no write enabled |
## Execution and ownership
QProcess uses absolute executables plus argument arrays, asynchronous signals,
separate output channels, bounded memory and timeouts. No shell, startDetached,
background jobs, cron, system timer, service or LAN listener is created.
Read-only child termination is scoped to the owned QProcess. No installer or
package manager is killed because neither is launched by the application.
A disconnected remote mutating operation would require reconciliation; none is
enabled. Remote read-only cancellation cannot prove the server stopped the
accepted command instantly; scripts contain no job/persistence mechanism.
Batch scheduling is serial (including local changes); callers choose stop,
continue-independent or pause. Dependencies must have PASS before scheduling.
There is no automatic non-idempotent retry. Postcondition verifiers remain
separate from process exit. Pure decision functions support future plans, but
this build never grants production authorization from imported JSON.
## SSH boundary
`ssh -F /dev/null`, strict selected known_hosts, BatchMode, no forwarding, no
control master, finite timeouts. Host and user are validated; Unicode identity
values in inventory are preserved, while the current transport deliberately
rejects non-ASCII account syntax rather than transliterating it. Record this
transport limitation and use a supported manual path for such accounts.
The remote command is a fixed PowerShell launcher and UTF-16LE/base64 encoding
of a compiled hash-checked task. Encoding is transport encoding, not encryption.
User/host/path/DN/policy values are never inserted into remote source code.
No SSH PowerShell subsystem or DefaultShell change is used. Native ssh-agent is
the only selected credential path in this adapter: already unlocked for this
session; no key material is imported or forwarded. The host key file requires
an independently verified fingerprint. SSH discovery output is not proof of
ALD-domain support.
The AD task requires a domain-controller role, queries that node explicitly and
emits `source_domain`. Imports from domains other than `corp.local` are rejected.
The compiled remote command has a conservative 7,800-character bound; actual
Windows shell/servicing behavior remains a laboratory test. Version support for
Windows transport does not make a Windows 10 workstation an AD DC.
Inventory DNs receive bounded syntax screening and remain opaque data. This is
not a complete RFC 4514 parser or authorization to apply them through LDAP.
## Privileged boundary
The non-root GUI starts only the installed fixed executor path through native
pkexec. The helper connects to a private 0700 session directory socket and
verifies SO_PEERCRED UID/PID against PKEXEC_UID and the expected GUI process.
The GUI verifies root UID and the owned pkexec PID. The request is <=16 KiB,
version 1, exact fields, fixed `ssh.effective` ID, empty parameters and the
hash of the local machine ID. The compiled dispatcher has no mutating IDs.
A single request is accepted; disconnect/timeout ends the helper. No polkit
permission file auto-grants access; the operating system requests authorization.
Only a trusted root-owned sshd binary is accepted. Lab peer-substitution and
lifecycle integration tests remain required before release.
## Sources and limitations
`data/sources.json`, `resources/tasks/manifest.json`, installed task hashes and
`docs/feasibility.md` are the evidence register. No source was executed as code.
Live AD inventory does not collect DNS zones, DHCP leases, file contents/ACLs,
GPO reports/SYSVOL, PKI or application bindings. Those categories remain UNKNOWN
and have human instructions. This is not a claim of complete discovery.
-53
View File
@@ -1,53 +0,0 @@
# Сборка и первый стенд
Для следующего этапа на Astra используйте [инструкцию стенда](astra-lab.ru.md)
и `python3 tools/build_astra_lab.py`. Команды ниже описывают уже выполненную
сборку на машине разработки; переносить их пакеты на Astra не следует.
Сборка на текущей Kali выполнена: `build/ald-transition-console` и
`build/ald-transition-executor`. Все четыре набора CTest проходят. GUI проверен
через Qt offscreen при масштабе 100/150/200%; запуск в обычном рабочем столе
и испытания Astra/Windows остаются следующими этапами. Подготовленного
стенда пока нет. Ниже — команды для воспроизведения сборки; пакеты уже установлены.
```sh
sudo apt install cmake qtbase5-dev qtbase5-dev-tools qt5-qmake
cd /home/scandalist/migration_ALD_pro
python3 tools/validate_local.py
```
Это команда для машины разработки. Не переносите пакеты Kali на Astra и не
обновляйте ПО КД для удовлетворения зависимостей. QSQLITE уже обнаружен в текущей
среде; его наличие и фактические версии заново проверяются при сборке. Если
репозиторий недоступен, нужны пакеты с зависимостями именно из одобренного
репозитория этой ОС, а не произвольные бинарные файлы.
После успешной сборки:
```sh
mkdir -m 700 /tmp/ald-console-demo
./build/ald-transition-console --project /tmp/ald-console-demo --demo
```
Для лабораторной валидации отдельно потребуются:
1. Штатные установочные материалы ALSE 1.7.7 UU2 и ALD Pro 3.1.0, соответствующая
инструкция поставки, реальные подписи/контрольные суммы. Уровень защиты и
ядро сверяются с процедурой; выбранный исходный пример — Смоленск/6.1-generic.
2. Изолированный AD-стенд: один лес, один домен `corp.local`, один исходный КД.
Второй исходный КД не предполагается. Адресную сеть не заменять обходным
вариантом. Изоляция от production DNS обязательна при исследовании конфликта.
3. Целевой узел Astra и тестовые Windows 10, Server 2019, Server 2025 с законными
установочными материалами. Зафиксировать edition/build/роль каждого образа.
4. Проверенный способ AD-aware резервного копирования и репетиция восстановления
единственного КД; независимый консольный доступ к ВМ.
Материалы поставки ALD: [документация 3.1.0](https://www.aldpro.ru/materials/3.1.0/).
Документация не заменяет установочный дистрибутив и разрешённый состав ПО КД.
Порядок испытаний — [tests/integration/README.md](../tests/integration/README.md).
Каждое изменение стенда согласуется отдельно. Чтение документации и успешный
тест GUI не разблокируют миграцию с сохранением обязательного поведения.
В `compatibility-lock.json` оставлены `null` для реально не измеренных полей.
Заполнять их следует по результатам целевого стенда, а не копированием версий
этой Kali или ручным переключением `release_validated` ради сборки пакета.
-76
View File
@@ -1,76 +0,0 @@
# Руководство оператора — предварительная версия 0.1.0
Программа готовит обследование, план и инструкции. Полная миграция corp.local
с сохранением обязательного поведения пока заблокирована. Эта сборка не
включает автоматические изменения инфраструктуры. Поддержка на Astra и Windows
требует испытаний на указанных в матрице версиях.
1. Запустите GUI без root. Выберите отдельный каталог проекта с владельцем —
текущим администратором и правами 0700. SQLite и журнал имеют закрытые права.
Второй писатель того же проекта не допускается. Режим проекта неизменяем:
для DEMO и LIVE нужны разные каталоги.
2. Для ознакомления явно включите DEMO. Объекты ALD-LAB и адреса 192.0.2.x
синтетические. В DEMO нативные операции отключены. Ошибка live-подключения
никогда не переключает режим на demo.
3. В LIVE сначала выполняются локальные read-only пробы. Нажмите «Обновить
наблюдения» для нового сбора. Выберите поведение при ошибке. Откройте строку
результата: фактическое значение, время, причина и следующий шаг. Установка
пакета сама не подтверждает роль. Для частичного/деградировавшего КД чистая
инициализация не разрешается.
4. На странице доступа выберите реальный конкретный Windows FQDN, учётную
запись и проверенный known_hosts. SSH и агент с разрешённым ключом должны
уже существовать. Приложение не принимает пароль. При отсутствии канала
выполните согласованную ручную подготовку через консоль, записав каждое
изменение. Не отключайте UAC, firewall, проверку сертификатов или host keys.
5. «Проверить Windows» собирает версию и prerequisites. «Обследовать каталог
AD» читает только ограниченную область directory objects выбранного КД.
Неохваченные категории остаются видимыми. Альтернатива — локальный запуск
поставленного фиксированного PowerShell task и импорт его UTF-8 JSON.
Право запуска на реальной машине подтверждается оператором отдельно.
6. В миграции изучите scope, объекты, карту зависимостей и обязательные
требования. Совпадение corp.local, логинов или числа объектов не сохраняет
идентичность домена. Стабильные ключи карты — source-system + GUID + SID.
Ручная отметка не разблокирует unsupported/unknown capability.
7. Инициализация содержит документированный интерактивный шаблон и условия.
Плейсхолдеры `<ALD_DOMAIN>`, `<ALD_DC_SHORT_NAME>`, `<ALD_DC_IP>` не являются
готовыми значениями. Не запускайте его при текущей блокировке namespace,
неизвестных пакетах или на существующем КД. Сам GUI его не запускает.
8. Профили можно импортировать как данные для сравнения и проверки владельцев.
Запись настроек ALD/Windows выполняется по штатным ручным путям; приложение
не реализует неподтверждённый API. 40 карточек Linux не означают 40 готовых
исправлений и не дают заключения об аттестации.
9. В «Проверки» выберите пункт, выполните его инструкцию, укажите область,
своё имя, результат и примечание без секретов. PASS/FAIL — явные ручные
результаты. «Не применимо» требует причины и не превращается в PASS.
Автоматические записи имеют method=AUTOMATIC, ручные — HUMAN. Новая
инвентаризация, карта, профиль, редакция или запуск делают прежнюю запись
STALE; история не удаляется. HTML/JSON экспорт содержит инструкции и историю.
10. В журнале фильтруйте по узлу/операции/уровню/времени/запуску. Нет процентов
прогресса без данных нативной утилиты. Ошибка инструмента не означает
успешное изменение. При паузе продолжение не пропускает зависимости.
11. В «Завершение…» запишите и сверьте временный доступ. При конфликте или
недоступности узла остаётся обязательство ручного восстановления.
Канал закрывается последним; существующие чужие правила сохраняются.
После остановки собственных процессов GUI показывает сводку перед выходом.
Если отменить выход, сеанс остаётся для просмотра: новые операции после
повторного открытия. После reboot GUI запускается вручную.
Навигация доступна с клавиатуры: Tab/Shift+Tab, стрелки в списке разделов,
Alt+1…Alt+9. «Без анимации» сохраняется в обычных пользовательских настройках.
Раскрываемый журнал можно изменить по высоте разделителем. При 1024×768
доступна кнопка скрытия боковой панели. Отрисовка Qt offscreen проверена при масштабе 100/150/200%; реальный
рабочий стол и скринридер ещё не проверены. См. отчёт испытаний.
Без интернета доступны сохранённый проект, проверки, планирование и операции
с уже имеющимися инструментами. Подключение к AD/ALD требует локальной сети.
Отсутствующие пакеты/optional features требуют подходящего одобренного носителя
или репозитория; приложение ничего не скачивает и не обновляет скрытно.
Offline data bundle — JSON по `schemas/offline-bundle.schema.json`, только
inventory/profile/checklist/source JSON, относительные безопасные пути, версии,
происхождение и реальные SHA-256. Максимальный вложенный документ — около
48 KiB (base64 до 65536 символов); большие инвентаризации импортируйте прямо.
Файлы с кодом, архивы и установочные пакеты не принимаются. Хэши проверяются,
подпись издателя остаётся NOT_VERIFIED; содержимое сохраняется для рассмотрения,
но не меняет принятый профиль. Сверить подпись одобренным штатным инструментом
и внести новое решение владельца — отдельные действия.
-40
View File
@@ -1,40 +0,0 @@
# Восстановление сеанса
Это руководство касается собственного состояния приложения. Восстановление
AD/ALD требует документации точной поставки и отдельного испытанного плана.
При ошибке сохранения новые операции блокируются. Не считайте результат
сохранённым, даже если нативная команда успела завершиться. Проверьте свободное
место, права проекта и состояние диска; после закрытия сверяйте фактическое
состояние и журнал. Запись RECOVERY_REQUIRED создаётся только если SQLite ещё
позволяет запись. Автоматического исправления повреждённой базы нет.
После разрыва SSH локальный процесс может закончиться раньше принятой удалённой
команды. Сводка выхода отмечает эту неопределённость; проверьте целевой узел
штатными средствами. Приложение не устанавливает фонового агента для такой проверки.
- **Программа закрылась во время пробы.** Откройте тот же защищённый проект.
RUNNING/PREFLIGHT/PAUSED/VERIFYING/CLEANUP переводятся в RECOVERY_REQUIRED.
Ничего автоматически не повторяется. Сверьте эффект по штатным инструментам.
- **Потеря SSH.** Локальное завершение ssh не доказывает мгновенное завершение
принятой удалённой команды. В поставленных задачах нет фоновых заданий.
Повторный сбор запускайте явно, после проверки состояния канала.
- **Потеря канала после ручного изменения.** Используйте сохранённую инструкцию
через локальную консоль. Не отмечайте очистку успешной по timeout или exit=0.
- **Конфликт восстановления.** Сравните ресурс с прежним и внесённым состоянием.
Если его изменил другой администратор, сохраните новое состояние и согласуйте
отдельное решение. Автоматическое перезаписывание запрещено.
- **Ошибка SQLite / заполненный диск.** Остановите запуск новых операций.
Сохраните копию закрытого каталога проекта по принятой политике резервирования.
Не удаляйте lock-файл при работающем писателе и не правьте схему вручную.
Более новая версия schema блокирует старый клиент вместо отката схемы.
- **Частичный ALD.** Не стирайте конфигурацию и не повторяйте продвижение.
Сохраните редактированный журнал без секретов, установленные версии и факты.
Восстанавливайте по руководству именно этой версии и проверенному backup.
- **Yama ptrace_scope=3.** Запись меньшего значения в текущем сеансе ядра не
является откатом. Нужны проверка persistent конфигурации и согласованная
перезагрузка по процедуре конкретной Astra. Приложение этот параметр не пишет.
Никакого service/timer/cron или агента возобновления нет. Пока GUI закрыт,
оно не доставляет политики, не проверяет дрейф и не исправляет доступ. Штатные
службы и ранее применённые постоянные настройки продолжают работать.
-780
View File
@@ -1,780 +0,0 @@
# Role & Objective
You are a senior systems architect, C++/Qt desktop engineer, Astra Linux and ALD Pro administrator, Windows infrastructure engineer, and migration verification engineer.
Build **ALD Transition Console**, a Russian-language desktop application that runs on the Astra Linux machine that is, or will become, an ALD Pro domain controller. It assists with discovery, supported initial deployment, Microsoft Active Directory migration, operational configuration, policy management, and subsequent hardening.
This is an operational administration application. Implement real supported integrations and explicit, useful workflows for capabilities that cannot be automated. Do not produce a decorative dashboard with simulated success states.
The owner's agreed requirements are:
1. Target ALD Pro **3.1.0** and the Astra Linux SE **1.7.x** family, using an explicit tested compatibility matrix.
2. Preserve the domain name **corp.local** and the existing IP network. Do not substitute a differently named target domain or require a different subnet as an unapproved workaround.
3. Ultimately remove Microsoft AD. The intended user experience preserves existing logins, passwords, profiles, data, permissions, application access, and policy outcomes. Treat these as separate acceptance requirements, not as an assumed consequence of copying directory objects.
4. Inventory and migrate everything for which a supported, verified migration path exists. Every other discovered dependency must remain visible with its impact and unresolved status.
5. Support Windows 10, Windows Server 2019, and Windows Server 2025 as explicitly versioned source/managed-host targets. Management connectivity, directory migration, and Windows domain integration are separate capabilities.
6. The initial laboratory has one AD forest, one AD domain, and one AD DC. It also needs the Astra target and suitable test clients. Do not assume a second source DC exists.
7. A planned interruption is acceptable only after its scope and recovery plan are shown and the operator authorizes that particular change window.
8. Deliver initial deployment and migration first. Deliver general configuration and policies next, then hardening.
9. The application and its temporary executor run on the ALD node. When the operator finishes and closes the application, its own processes stop. Existing domain services and persistent client settings continue.
10. Prefer vendor-supported/native tools. Explain prerequisite access changes and how to restore them, so temporary administrative access is not accidentally left open.
11. Internet access is optional. Explain precisely which operations are unavailable without internet or local installation media.
12. The operator selects the batch error policy. Final validation is an instructional checklist with explicit human checkmarks and separately recorded automatic evidence.
13. Use the **dedsec-motion** skill's visual language, adapted for a readable administration interface.
## Non-negotiable feasibility rule
The requested end state is an objective, not an established product capability. Do not claim that ALD Pro 3.1.0 is an AD DS replica, that it can receive FSMO roles, or that reusing corp.local preserves domain identity, SIDs, computer trust, Windows profiles, or GPO behavior.
Before allowing a migration plan to change production state, establish a documented, version-specific path for the same-name transition and all mandatory retained behavior. If a mandatory path is unsupported or unverified, return a **blocked migration plan**, explain the exact dependency, and continue building useful discovery, planning, configuration, and checklist functionality. Do not silently weaken the owner's requirements. Do not implement an unsupported replacement protocol to make the UI appear complete.
No undocumented feature, placeholder integration, successful process exit, or manual checkbox may satisfy this feasibility gate. A deliberate change to the owner's target requirements creates a new version of the plan; it is not an ordinary exception checkbox.
# Constraints & Tech Stack
## Desktop and runtime
Use the following stack:
| Layer | Required choice |
|---|---|
| Application language | C++17 |
| GUI framework | Qt 5.15, using the Qt 5.15.2 API baseline and compatible Astra-maintained package revisions |
| Qt modules | Core, Gui, Widgets, Network, Sql; Test for tests |
| Build system | CMake, minimum language version 3.13; pin the actual tested build-tool package revision |
| Local state | SQLite through Qt SQL, transactions, explicit schema migrations, no database server |
| Data interchange | UTF-8 JSON, schema version 1, explicit validation of required fields and enums |
| Linux/native execution | QProcess with executable and argument arrays; no interpolated shell command strings |
| Default remote transport | System OpenSSH client, when supported and explicitly prepared on the target |
| Windows execution | Fixed, reviewed native PowerShell tasks over OpenSSH command execution; Windows PowerShell 5.1-compatible syntax |
| Additional transport | Optional WinRM adapter only through a verified existing implementation with locked dependencies; do not invent a WinRM implementation |
| Packaging | Debian package built against the supported Astra baseline; no installation-time execution of migration or hardening |
| Interface language | Russian; developer documentation and identifiers in English |
| Distribution mode | Local desktop application; no mandatory web server, browser, cloud backend, or telemetry |
Do not replace this with Electron, Qt WebEngine, a React application, Kubernetes, AWX, or an always-on Astra Automation Controller. Do not install Node.js, Chromium, ffmpeg, or the motion-rendering toolchain on the domain controller for decorative effects.
Qt 5.15 packages appear in Astra's published package information, but the exact package revisions for the target installation must still be inspected. Before producing a deployable package, create `docs/compatibility-lock.json` containing the actual OS release/update, kernel, architecture, compiler, CMake, Qt package revisions, SQLite driver, transport executables, and ALD packages used in validation. Never put an invented package revision or digest in that file.
Use **ALD Pro 3.1.0 + ALSE 1.7.7 UU2**, with the kernel and protection level required by the matching vendor installation procedure, as the first laboratory baseline. The vendor course uses 6.1-generic and Smolensk for that example. This does not prove support for every ALSE 1.7.x release. Separate:
- ability to run the GUI;
- support for installing/running the ALD controller;
- support for managing a client;
- support for each migration and hardening action.
Never upgrade Astra, ALD Pro, the system Python, Qt, or security components automatically to satisfy this application's dependencies. Do not treat dependency isolation as proof of vendor support for additional software on a DC. Identify that deployment constraint explicitly in the compatibility report.
Windows transport discovery must record OS edition, build, role, PowerShell version, and available optional features. Microsoft's in-box OpenSSH guidance covers Windows 10 build 1809 and later and Server 2019 onward; verify the actual feature and servicing prerequisites on each machine. This is not evidence that ALD Pro 3.1.0 supports every Windows domain-integration scenario.
Use native OpenSSH command execution to launch Windows PowerShell tasks. Do not confuse that with the PowerShell SSH-remoting subsystem, whose prerequisites differ. Do not globally change the Windows default shell unless the validated adapter requires it and the change is recorded for restoration.
## Privilege and lifecycle constraints
The GUI is not a root process. Use a small, temporary, separately authorized native executor for allowlisted operations that genuinely need elevated privileges. Validate peer identity, operation IDs, typed parameters, target binding, and plan authorization at the privilege boundary. A user-editable rule file must never grant arbitrary root execution.
Do not create an always-on service, cron entry, persistent OS timer, Windows scheduled task, or custom persistent agent. Ordinary in-process Qt timers are allowed while the application is running. Use per-session private IPC; do not expose an application listening port on the LAN. Avoid `startDetached` for operations owned by the application.
Installed application files and protected logs remain between sessions. Passwords and private credentials do not belong in the project database, command arguments, process environment dumps, logs, screenshots, or exported checklists. Where persistent secrets are operationally unavoidable, use an explicitly selected native credential mechanism and document its lifetime; do not implement custom cryptography.
The prompt author has not authorized changes to any real infrastructure. Build and test locally. Real infrastructure mutation requires the operator's explicit approval of a concrete plan inside the application or an explicit instruction in the development session.
# SECTION 1: ASSETS & DATA
## 1.1 Existing project material
The current project root is `/home/scandalist/ALD_pro`. Read these if present:
- `ALD-PRO-GUI-ARCHITECTURE.md`;
- `ALD-PRO-GUI-FSTEC-REQUIREMENTS.md`;
- `MS-AD-LAB-MANUAL.md`;
- `ald-pro-deploy-migrate/SKILL.md` and its referenced research;
- `research/module02.md` and `research/module03-migration.md`.
These are research and design inputs, not proof that a command is valid for ALD Pro 3.1.0. Several research documents discuss newer product versions. Never copy a 3.2/3.3-only command or capability into the 3.1 adapter without independent 3.1 evidence.
If earlier design notes conflict with this prompt, use the owner's latest requirements represented here. In particular, temporary application-created access must have an explicit restoration workflow; an existing unrelated SSH or WinRM deployment must be preserved.
## 1.2 Source catalog
Create a versioned source catalog. The following are exact starting URLs, not permission to scrape an entire domain or infer unpublished APIs:
| Source ID | URL | Intended use |
|---|---|---|
| ALD31_ROOT | [ALD 3.1 documentation](https://www.aldpro.ru/materials/3.1.0/) | Find the documentation matching the installed delivery |
| ALD_DEPLOY_COURSE | [Deployment course](https://www.aldpro.ru/professional/ALD_Pro_Module_02/ALD_Pro_deployment.html) | Deployment explanation and initial laboratory baseline |
| ALD_DIRECTORY_COURSE | [Directory course](https://www.aldpro.ru/professional/ALD_Pro_Module_04/ALD_directory_services.html) | Directory concepts and documented administration |
| ALD_POLICIES_COURSE | [Policy course](https://www.aldpro.ru/professional/ALD_Pro_Module_06b/ALD_Pro_group_policy.html) | Policy lifecycle and diagnostic concepts |
| ALD_MIGRATION_COURSE | [Migration course](https://www.aldpro.ru/professional/ALD_Pro_Module_09/ALD_Pro_migration_hybrid_deployment.html) | Migration scenarios and application dependencies |
| ALD_BACKUP_COURSE | [Backup course](https://www.aldpro.ru/professional/ALD_Pro_Module_10/ALD_Pro_backup.html) | Backup and recovery research |
| FSTEC_LINUX_2022 | [Original publication](https://fstec.ru/dokumenty/vse-dokumenty/spetsialnye-normativnye-dokumenty/metodicheskij-dokument-ot-25-dekabrya-2022-g) | Original Linux hardening recommendations |
| FSTEC_TEXT_MIRROR | [Text reproduction](https://legalacts.ru/doc/metodicheskii-dokument-rekomendatsii-po-bezopasnoi-nastroike-operatsionnykh-sistem-linux/) | Provisional text reproduction, not a verified original artifact |
| ASTRA_HARDENING | [Role documentation](https://docs.astra-automation.ru/2.1/solutions/protection/fstec/) | Optional role research, not an ALSE 1.7 compatibility guarantee |
| ASTRA_ROLE_INTRODUCTION | [Role release notes](https://docs.astra-automation.ru/1.2/releases/release-1.2/upd2/) | Original role scope and preview status |
| ASTRA_QT_PACKAGES | [Astra package information](https://wiki.astralinux.ru/spaces/flyingpdf/pdfpageexport.action?pageId=153490669) | Evidence of the Qt 5.15 package family, not the current target package lock |
| MS_OPENSSH | [Native OpenSSH guidance](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse) | Native Windows transport prerequisites |
| MS_SCT | [Security Compliance Toolkit](https://learn.microsoft.com/en-us/windows/security/operating-system-security/device-management/windows-security-configuration-framework/security-compliance-toolkit-10) | LGPO and policy comparison tools |
| MS_SID | [Security identifiers](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers) | Identity and ACL semantics |
| QT_PROCESS | [Qt QProcess](https://doc.qt.io/archives/qt-5.15/qprocess.html) | Process execution API; use only APIs available in the selected baseline |
| KERNEL_YAMA | [Kernel Yama documentation](https://docs.kernel.org/admin-guide/LSM/Yama.html) | Example of a setting with restricted runtime reversibility |
The original FSTEC page could not be fetched during specification research. Record the original artifact hash as `null`, with verification state `pending_original`. Never manufacture a hash, publication status, or claim that an inaccessible page was reviewed.
For each source store `id`, `url`, `title`, `product_version`, `section`, `retrieved_at`, `artifact_sha256`, `verification_state`, and `notes`. Retrieval time is not publication time. Course pages are mutable; freeze the relevant evidence for a released adapter.
Download software only from the approved vendor distribution channel. Resolve release assets, versions, signatures, and digests before use. Do not use `latest` release URLs, unsigned arbitrary binaries, or `curl | sh` installation patterns.
## 1.3 Visual assets
Use the installed skill at `/home/scandalist/.codex/skills/dedsec-motion/SKILL.md`. Read its `references/style-bible.md` and relevant interface guidance. When the path is absent, discover the installed skill; the complete visual specification below is still sufficient to implement the application without the skill runtime.
Create original decorative geometry with QPainter: 4-pixel stepped corners, short diagonal torn-label edges, simple pixel node/network motifs, and a four-tile application mark. No 3D is required. Do not import Ubisoft/Watch Dogs logos or restricted fan-kit stickers into this administration product.
Use system DejaVu Sans for functional text and DejaVu Sans Mono for logs. Optional Onest and JetBrains Mono are permitted only when their real font files, Cyrillic coverage, redistribution licenses, versions, and hashes have been checked and bundled. No runtime font CDN. Fall back deterministically to the system fonts.
No network-downloaded images are required. Native task payloads, schemas, icons, and checklists are application assets with an installed manifest and integrity checks.
## 1.4 Data model
Use explicit C++ domain types and validated JSON representations. Create schema files before UI forms. At minimum implement:
| Entity | Required fields |
|---|---|
| Project | id, schema_version, target_domain, source_domain, desired_outcomes, lab_mode, created_at, updated_at, version |
| Host | id, fqdn, addresses, os_family, os_release, os_build, kernel, architecture, detected_roles, observed_at, evidence_ids |
| Capability | id, operation, supported_versions, state, evidence_ids, limitations, manual_alternative |
| InventoryObject | source_system_id, object_guid, sid, dn, object_type, attributes, memberships, observed_at |
| IdentityMapping | source_guid, source_sid, source_dn, target_id, target_sid, target_uid_gid, mapping_method, verification_state |
| MigrationItem | id, category, source_ref, target_ref, disposition, dependencies, acceptance_ids, blockers, evidence_ids |
| Plan | id, revision, inventory_digest, policy_digest, affected_hosts, graph, error_policy, downtime, authorization_state |
| Operation | id, adapter_id, adapter_version, target_id, typed_parameters, preconditions, effects, cancellation_class, recovery_class, postconditions |
| Run | id, plan_id, plan_revision, state, started_at, finished_at, per_host_results, cleanup_state |
| AccessChange | id, run_id, target_id, resource_type, resource_id, previous_state, applied_state, owner_marker, restoration_steps, verification_state |
| PolicyProfile | id, revision, os_constraints, role_constraints, settings, management_owner, exceptions, source_refs |
| ChecklistItem | id, phase, title_ru, purpose_ru, host_scope, prerequisites, steps_ru, expected_result_ru, failure_guidance_ru, evidence_ids |
| ChecklistObservation | item_id, host_id, result, checked_by, checked_at, method, note, plan_revision, profile_revision |
| LogEvent | sequence, timestamp_utc, run_id, host_id, operation_id, severity, stream, message_ru, redacted_detail, source_ref |
Use stable source GUID/SID mappings. Never merge identities by display name, transliterated name, or login alone. Preserve unmapped attributes in inventory without assuming they can be applied to ALD.
Allow unknown attributes in imported inventories as data, but reject unknown executable operation IDs and parameters. Validate lengths, nesting depth, file size, object counts, UUIDs, addresses, FQDNs, DN serialization, paths, and enums. Use explicit Unicode handling; do not silently alter usernames.
Keep applicability, support, run status, and compliance as independent fields:
```text
CapabilityState = VERIFIED | DOCUMENTED_NOT_TESTED | UNKNOWN | UNSUPPORTED
Applicability = APPLICABLE | NOT_APPLICABLE_WITH_REASON | UNKNOWN
ObservationResult = PASS | FAIL | PARTIAL | NOT_CHECKED | ERROR | STALE
RunState = DRAFT | PREFLIGHT | BLOCKED | READY | RUNNING | PAUSE_REQUESTED |
PAUSED | STOP_REQUESTED | VERIFYING | CLEANUP | COMPLETED |
COMPLETED_WITH_GAPS | FAILED | RECOVERY_REQUIRED
Disposition = AUTOMATED_NATIVE | GUIDED_NATIVE | MANUAL_RECONFIGURATION |
UNSUPPORTED | UNKNOWN
```
A waiver is a separate record with scope, owner, reason, and review date. It never changes FAIL into PASS or overrides a mandatory unsupported migration capability.
## 1.5 Demonstration data
Provide an explicitly selected offline demo mode, never an automatic substitute for a failed live connection. Use reserved documentation addresses such as `192.0.2.10` and `192.0.2.20`; never default live execution to them.
Include synthetic corp.local examples corresponding to the existing manual lab guide when available: an ALD-LAB OU, ordinary/privileged/disabled users, nested groups, a test share, a DNS alias, a service identity, and linked/filtered/unlinked policy examples. Check the actual manual before reusing names.
Provide fixtures for duplicate names, orphan SID references, an offline host, incomplete deployment, unknown Windows 2025 integration, missing media, same-name DNS conflict, and cleanup failure. Label all fixture observations as synthetic; do not present them as tested product capabilities.
# SECTION 2: STYLES & LAYOUT
## 2.1 Design tokens
Use a restrained DedSec/ctOS aesthetic while preserving administrative clarity:
| Token | Value |
|---|---|
| Window background | `#0A0A0A` |
| Panel background | `#141617` |
| Elevated panel | `#1C1F20` |
| Main text | `#F2F2EE` |
| Secondary text | `#B9B9B9` |
| Borders | `#454A4C` |
| Primary decorative accent | `#B0E010` |
| Error | `#FF5C6C` |
| Warning | `#F4C95D` |
| Informational status | `#70CFE8` |
| Focus indicator | 2 px `#B0E010` |
| Spacing scale | 4, 8, 12, 16, 24, 32 logical pixels |
| Base text | 14 px; scale with user font/DPI settings |
| Section title | 20 px, semibold |
| Page title | 28 px, bold |
| Log text | 13 px, monospaced |
| Control height | Minimum 36 px |
| Table row | Minimum 36 px, expanded details as needed |
Semantic warning/error colors are not decorative second accents. Every status has a text label and icon, not color alone. Keep functional text antialiased and selectable; do not pixelate logs, commands, hostnames, data tables, passwords, or error instructions.
Implement styling with Qt Style Sheets and QPainter, not browser CSS. Example QSS rules:
```css
QMainWindow, QWidget#workspace { background: #0A0A0A; color: #F2F2EE; }
QFrame[panel="true"] { background: #141617; border: 1px solid #454A4C; }
QPushButton { min-height: 34px; padding: 0 14px; border: 1px solid #454A4C; }
QPushButton[role="primary"] { background: #B0E010; color: #0A0A0A; border-color: #B0E010; }
QPushButton:focus, QLineEdit:focus { border: 2px solid #B0E010; }
QLineEdit { background: #1C1F20; color: #F2F2EE; padding: 8px; }
QPlainTextEdit#logView { background: #0A0A0A; color: #F2F2EE; font-family: "DejaVu Sans Mono"; }
```
Do not rely on unsupported CSS variables, transforms, or web animation APIs in QSS. Store tokens centrally and build QSS from validated application constants.
## 2.2 Main window
Design at 1440×900 logical pixels and support 1024×768 without hiding primary actions. Use a splitter-based layout and scrolling detail forms. Sidebar width: 232 px normally, collapsible. Top bar: approximately 56 px. Main content padding: 24 px. The log drawer is collapsible and resizable, initially 220 px when opened.
Sidebar pages, in this order:
1. Обзор
2. Проверка окружения
3. Подготовка доступа
4. Инициализация ALD Pro
5. Миграция
6. Настройки домена
7. Политики и харденинг
8. Проверки
9. Журнал
10. Завершение и восстановление доступа
The top bar shows project, actual detected node role, domain, mode (live/demo), and information freshness. Place major blockers in a persistent content banner with an explanation link. Never make a harmless decorative icon look like an error badge.
Use a three-part workflow page: current facts, proposed changes, verification/recovery instructions. Advanced commands and package details belong in expandable diagnostics, not in the basic operator path.
## 2.3 Motion and accessibility
Use short stepped decorative transitions of 120–180 ms on page headers or original pixel motifs. Optional startup decoration is nonblocking, no longer than 600 ms, and skippable. No audio, full-window flashing, popup storms, idle video, permanent animated backgrounds, fake terminal output, or text scrambling on real data.
Provide a persistent reduced-motion switch. With reduced motion enabled, all decorative movement stops; progress information remains readable and accurate. Pause decoration during mutation, error handling, and confirmation dialogs. Render static pages without continuous redraw loops.
Support keyboard navigation, visible focus, readable Cyrillic, 100/150/200% scaling, and screen-reader names for controls. Do not move focused buttons when asynchronous results arrive. Preserve selection and scroll position in tables. User data must never be used as rich text without escaping.
# SECTION 3: APPLICATION SHELL, PROJECTS & FRESHNESS
Implement `AppController`, `ProjectRepository`, `CapabilityRegistry`, and page controllers independent of widgets. Widgets render models and dispatch typed intents; they do not run privileged commands.
On startup:
```text
openProjectOrCreate()
acquireSingleWriterLockForProject()
loadSchemaAndMigrateDatabaseTransactionally()
loadInterruptedRunsWithoutResumingThem()
markPreviousObservationsStaleWhenContextChanged()
loadInstalledAdaptersAndRuleManifests()
probeLocalEnvironmentReadOnly()
showCurrentStateAndPendingCleanup()
```
Never auto-connect to every previously known host or start changes merely because the application reopened. A refresh is explicit and cancellable. Prevent conflicting live runs from separate projects targeting the same local controller.
Persist database and log data with restrictive permissions in an administrator-owned application data location. Use QStandardPaths for ordinary UI preferences, and an explicitly selected/provisioned protected project directory for infrastructure data. Do not silently use world-readable shared folders.
# SECTION 4: DISCOVERY & COMPATIBILITY
Classify the local node using multiple independent observations:
```text
CLEAN_ASTRA
ALD_PACKAGES_NOT_INITIALIZED
AD_CLIENT
ALD_CLIENT
ALD_DC_HEALTHY
ALD_DC_DEGRADED
PARTIAL_OR_UNKNOWN
```
Inspect package metadata, hostname/FQDN, configured domains, service state, relevant configuration presence, and documented health indicators. An installed package or a stopped service alone does not prove a role. A degraded or partially installed controller must not be reinitialized automatically.
Check OS/update/kernel/protection level against the selected ALD 3.1 delivery; resources; storage; time; resolvers; direct/reverse DNS; relevant domain discovery; trusted certificate paths; package sources; pending reboot; and package-manager locks. Probe only configured targets and required endpoints, not arbitrary subnet scans.
Render each finding with actual value, expected value, evidence time, why it matters, supported fix path, and manual verification instructions. Do not present discovery results as editable text fields that directly rewrite files.
Version support is per operation. A Windows 2025 host can be reachable for native configuration while its ALD-domain integration remains unverified. A GUI-compatible Astra release can still be unsuitable for installing ALD 3.1.
# SECTION 5: TEMPORARY ACCESS PREPARATION & RESTORATION
Provide a wizard for the source AD server, Linux clients, and Windows clients. Bootstrap cannot be automated over a channel that does not yet exist. When no supported channel is available, show precise native manual steps for execution on the target, then offer a connection test.
Before an access change record the existing service startup mode and state, listener configuration, firewall rule identities/scopes, credential/key entries, temporary role memberships, and relevant configuration values. Record only the resources actually touched.
Prefer existing approved administrative access. When creating temporary access, restrict it to required sources and purposes. Authenticate the target: use verified SSH host keys or trusted TLS certificate validation. Do not default to `StrictHostKeyChecking=no`, wildcard TrustedHosts, certificate-validation bypass, disabled UAC, or disabled endpoint protection.
Each access change must show:
- what changes and why;
- the exact target and affected resource;
- whether internet/media is required;
- before/after state;
- activation and verification instructions;
- restoration instructions;
- whether closing the channel will prevent remote verification.
Use a restoration ledger, not a single “undo everything” shell script. Restore only application-owned changes. If a resource changed independently after preparation, stop automatic restoration for that resource and show a conflict instead of overwriting the administrator's newer state.
```text
restoreAccess(change):
if !change.wasCreatedOrModifiedByThisRun: preserve()
current = observe(change.resource)
if current != change.appliedState:
recordRestorationConflict()
else:
executeReviewedInverse(change)
verifyOrRecordManualVerificationNeeded()
```
Default end-of-session workflow: complete/verify tasks, restore temporary credentials and rules, close the temporary channel last, and show remaining cleanup obligations. Persist manual restoration instructions before disabling the channel. If a machine is offline, mark cleanup pending; never claim access was removed remotely without evidence.
Pre-existing SSH/WinRM services are not disabled merely because the application exits. For access created only for this session, present the concrete restoration plan and execute it when authorized. Crash recovery checks the ledger; do not install a hidden persistent cleanup agent.
# SECTION 6: EXECUTION ENGINE, LOGS & ERROR POLICY
Implement a typed operation registry. An operation identifies a known adapter method, not arbitrary executable text supplied by JSON or a UI field. Verify installed task manifests and protect privileged payloads from user modification.
Use QProcess asynchronously. Never block the GUI thread waiting for subprocess output, DNS, network I/O, or file enumeration. Separate stdout/stderr, redact secrets before display and persistence, preserve ordering, and handle output split across chunks. Bound in-memory buffers and rotate protected logs.
For remote execution, treat the remote shell as an additional injection boundary. Local argument arrays alone are not sufficient. Use fixed reviewed remote entry points and structured parameter transport; do not interpolate usernames, paths, DNs, passwords, or policy values into remote code. Do not build LDAP filters or PowerShell commands by unescaped concatenation.
Every operation declares:
- documented version constraints;
- read-only versus mutating behavior;
- required privilege;
- preconditions and expected effects;
- progress model, if available;
- expected exit/result codes and reboot semantics;
- timeout behavior;
- cancellation boundary;
- postconditions;
- recovery method and reversibility limits.
Process exit zero is necessary only where the tool defines it as success; it never replaces postcondition verification. If native progress is unavailable, show elapsed time, phase, and completed item counts rather than invented percentages.
Provide operator choices before a batch: stop on first error, continue independent hosts, or pause for a decision. Dependency failures always block dependent steps. Never retry destructive or non-idempotent operations automatically without reconciling actual state.
```text
executePlan(plan):
verifyInventoryAndPlanRevisionStillMatch()
verifyCapabilityAndPrivilegeGates()
requireConcretePlanAuthorizationForMutations()
for step in topologicalOrder(plan):
if dependencyFailed(step): markBlocked(step); continue
if shutdownRequested: stopScheduling(); break
recheckPreconditions(step)
journalStart(step)
result = executeNativeStep(step)
observation = verifyPostconditions(step, result)
journalResult(step, result, observation)
applySelectedErrorPolicyWithoutBypassingDependencies()
reconcileAccessLedger()
generateChecklistFromObservedState()
```
Default concurrency: one host mutation at a time; independent read-only probes may use up to four workers. Serialize local controller changes. Make limits configurable within validated bounds.
Provide human-readable summaries with an expandable redacted native output view. Filters: host, phase, operation, severity, time, run. Logs must explain failure and the next supported action, without fabricating native error interpretations.
# SECTION 7: DOMAIN INITIALIZATION & EXISTING-CONTROLLER HANDLING
The deployment wizard includes actual/desired hostname, FQDN, address/prefix, gateway, DNS, time source, domain/realm, approved repositories/media, protection level, resource checks, credentials, and backup/recovery prerequisites.
Obtain input constraints and installer invocation from the actual ALD 3.1 documentation and installed tool help. Do not invent flags or include passwords in a recorded invocation. If the native tool cannot accept secrets through a safe supported channel, expose the documented interactive step rather than implementing an unsafe workaround.
Distinguish:
- clean preparation;
- package installation;
- native promotion/initialization;
- post-install checks;
- correction of a detected existing deployment.
If the node is an existing healthy controller, open supported settings and diagnostics. Protect controller identity fields that cannot be changed in place. If renaming an existing DC is not supported, explain the documented replacement workflow; do not call `hostnamectl` and mark the domain renamed.
If the node is an AD client, do not assume it must first be joined to AD to become an ALD controller. Resolve the correct documented sequence for the selected migration method. Never combine unrelated installer procedures.
For corp.local already served by the source AD, detect the namespace collision before initializing an authoritative target. Require a documented resolver/authority/transition plan compatible with the same subnet and approved interruption. Do not advertise conflicting discovery records to production clients or invent a same-name trust.
After initialization verify native domain services, resolution, time, administration access, and a test enrollment path. Record partial failures honestly; do not wipe and retry an incomplete domain automatically.
# SECTION 8: MIGRATION INVENTORY & FEASIBILITY MATRIX
Inventory the following categories when present and authorized:
| Category | Required assessment |
|---|---|
| Users/groups/OUs | Attributes, account state, nesting, group scope, name collisions, mappings |
| Credentials | Supported preservation mechanism and per-account verification limits |
| Computer accounts | Re-enrollment, machine trust, client integration support |
| Windows profiles | Existing profile association, encrypted user material, application state |
| GPOs | Backup/report, links, ordering, inheritance, filtering, scripts, preferences, actual outcomes |
| DNS | Zones, records, dynamic update behavior, forwarders, service records and authority changes |
| DHCP | Scopes, reservations, options, leases and cutover ownership |
| Files/shares | Data, share permissions, NTFS ACLs, ownership, SID dependencies, special file semantics |
| Services/applications | Service identities, SPNs, scheduled tasks, LDAP/Kerberos/NTLM bindings and delegated access |
| Certificates/AD CS | CA dependencies, trust distribution, enrollment, private-key custody and renewal |
| Other AD-dependent services | Detect, classify, document owner and migration path; do not silently omit |
Assign a disposition and evidence to every item. A present unsupported dependency required for unchanged behavior blocks AD retirement. “Not discovered” is not the same as “absent”; capture inventory scope and denied/unreachable areas.
Separate transport support from capability to migrate the source AD version, and separate both from target domain support for Windows logon.
Credentials require a vendor-documented mechanism. Do not assume LDAP export contains reusable passwords, that password-change synchronization captures existing passwords, or that plaintext passwords can be recovered. Do not dump LSASS or implement a custom password filter. If required credential preservation is not achievable, block the seamless outcome explicitly.
Require a persistent source GUID/SID-to-target identity map before any permission transformation. Compare group membership and allow/deny access outcomes using representative ordinary and privileged test identities. Do not treat a matching username or matching object count as proof of equivalent authorization.
Windows profile continuity must be tested independently, including applicable DPAPI/EFS/credential-store and application consequences. Never relabel ownership of a profile directory and claim that all encrypted profile material migrated successfully.
Record any supported vendor Windows integration utility as a versioned artifact with build/ALD compatibility and verified integrity. A utility documented for ALD 3.3 is not automatically valid for 3.1 or Windows Server 2025.
Convert Windows policies only through explicit per-setting semantic mappings. “Exported GPO” does not mean “imported and effective in ALD.” Preserve unmapped settings as visible gaps. A Windows-specific setting may require a Windows local policy or a documented application configuration, not a Linux policy.
# SECTION 9: MIGRATION PLAN, CUTOVER & RECOVERY
Present an ordered dependency graph with these phases:
1. Source health, inventory, supported-path assessment.
2. Backup and recovery-readiness checks, including the single-DC risk.
3. Target preparation and version-correct initialization at the approved point in the namespace transition.
4. Supported object migration and verified identity mappings.
5. Resource/application migration and permission reconciliation.
6. Pilot client transition and continuity tests.
7. Approved DNS/service/client cutover window.
8. Validation with source AD unavailable, using a controlled reversible test where feasible.
9. Readiness assessment for supported AD decommissioning.
10. Temporary access restoration and final checklist.
These are conceptual phases. The validated migration procedure determines which phases can happen before source interruption. Never impose a generic “initialize now, fix DNS later” ordering on same-name domains.
The interruption preview includes affected services/users, expected unavailable functions, estimated duration or an honest unknown, prerequisites, recovery checkpoints, and the point beyond which rollback is no longer a simple reversal.
Backup existence is insufficient. Store recovery procedure, verification status, location, applicable versions, and the result of an appropriate restore rehearsal. Do not describe arbitrary independent VM snapshot rollback as a universally valid recovery method for directory services.
Do not expose a direct “delete AD” action as the normal migration completion step. Provide a version-correct decommissioning plan, with each remaining dependency visible and final action separately authorized. Never transfer FSMO roles to ALD or substitute a hidden permanent Samba AD domain for the requested target.
If required continuity remains unverified, finish the current run as `COMPLETED_WITH_GAPS` or `BLOCKED`, not as a successful full migration. Implement every independently valid feature without falsely declaring the overall target achieved.
# SECTION 10: GENERAL CONFIGURATION & POLICY MANAGEMENT
Provide supported administration screens beyond migration: users, groups, organizational structure, host enrollment state, DNS/time settings, password policies, HBAC, sudo, policy assignments, and documented service settings. Show role/version applicability and links to the supported vendor portal/manual when the API is unavailable.
Use ALD Pro's documented policy processing for Astra clients. Read and update the authoritative policy, not regenerated local policy cache files. Expose supported policy ordering/inheritance and resultant-setting diagnostics without borrowing newer-version features.
An intended profile has a single management owner for each setting. Detect conflicting ownership between ALD policy, local configuration, and a separate automation tool. Do not run two writers that continually overwrite each other.
For Windows, use validated native configuration and local policy tooling where appropriate. Record Windows edition/build-specific mappings. Native policy enforcement can continue after the GUI closes, but this application does not deliver new configurations or continuously detect drift while closed.
Separate:
```text
policy assigned
policy retrieved
setting included in resultant configuration
native application completed
effective value verified
user-visible behavior checked
```
Policy removal is not a universal rollback. Model restoration of persistent values explicitly, including settings that remain after assignment is removed.
# SECTION 11: HARDENING & FSTEC RECOMMENDATION CATALOG
Hardening follows migration verification. Keep distinct profiles for an ALD controller, Linux application server, ordinary workstation, administrative workstation, Windows workstation, and Windows server.
The FSTEC Linux document dated 25 December 2022 contains 40 numbered configuration items across these ranges:
```text
2.1.1–2.1.2: authorization
2.2.1–2.2.2: privilege acquisition
2.3.1–2.3.11: filesystem permissions
2.4.1–2.4.8: kernel protection
2.5.1–2.5.11: kernel attack surface
2.6.1–2.6.6: kernel-mediated userspace protection
```
Represent every item, even when its implementation is manual or unsupported. Paragraph 1.3 distinguishes certified operating systems, whose configuration follows the developer's operational documentation. Create a version-specific mapping to Astra's documentation rather than treating the general Linux document as a universal command list.
For each recommendation implement a card containing source/paragraph, explanation, applicable versions/roles, expected state, observed state, read-only check, supported configuration path, impact, restart/reboot requirement, reversibility, verification instructions, and exceptions.
Provide separate actions: explain, audit, prepare changes, apply to pilot, verify, and prepare restoration. An audit action must not run a policy refresh, install dependencies, or restart a service without being reclassified as a change.
The optional `astra.hardening.fstec` role is documented as a Technical Preview and was introduced for Astra 1.8. Do not make it a mandatory executable dependency for the chosen Astra 1.7 target or infer that it implements this particular 40-item document completely.
Example card requirements:
- For paragraph 2.1.2, map the source recommendation `PermitRootLogin=no` to the effective SSH configuration and verify a permitted administrative access path remains available.
- For paragraph 2.6.1, the source value `kernel.yama.ptrace_scope=3` needs a special recovery classification. Kernel documentation states that this value cannot be changed once set in the current kernel session. Do not offer a fictitious immediate inverse operation.
Check running state and persistent-next-boot configuration separately. An unsupported parameter is not automatically “not applicable.” A boot argument's presence is not proof that the kernel implements or enabled the feature.
Windows gets a separate per-build baseline and native setting catalog. Do not apply Linux sysctl/PAM settings or label them Windows FSTEC compliance. Do not claim certification, attestation, or complete regulatory compliance from a completed technical checklist.
# SECTION 12: INSTRUCTIONAL CHECKLIST
The primary deliverable to the administrator is a saved, interactive checklist. It must remain useful without an automated test for every condition.
Each item contains:
- a short Russian title and reason;
- target host/user/service;
- prerequisites and required privilege;
- precise manual steps using native UI/tools;
- any command with placeholders clearly distinguished from real values;
- expected observations and an example failure condition;
- remediation or recovery guidance;
- state, operator identity, timestamp, note, and evidence reference;
- the plan/profile revision to which the observation applies.
Provide explicit PASS, FAIL, NOT CHECKED, and NOT APPLICABLE WITH REASON actions. Human verification and machine verification must be visually distinct. Never automatically tick a manual check just because a process returned zero.
Checklist groups include source baseline, initialization, object counts and identity mapping, password/login continuity, Windows profile continuity, file access allow/deny cases, service/application authentication, DNS/time, policy outcomes, post-reboot behavior, source-AD-unavailable validation, and access cleanup.
After relevant changes or a new run, mark affected previous observations stale. Keep their history. Do not allow an old successful check to silently satisfy a new plan revision.
Persist checklist state in the project database and support a simple local UTF-8 HTML/JSON export. PDF, cloud reporting, and enterprise compliance dashboards are not required for the initial release. Escape all exported text and exclude secrets.
# SECTION 13: CONNECTIVITY, OFFLINE MODE & DOWNLOADS
Determine connectivity per required service, not from a single internet ping. Distinguish local AD/ALD access, package repository reachability, documentation retrieval, optional-feature media, and artifact downloads.
Before a plan starts, show an availability table:
```text
Available offline: local inventory, installed-rule explanations, saved checklist,
planning, and operations whose tools/media are already present.
Requires network: access to configured target machines and domain services.
Requires internet or supplied media: missing packages, Windows optional features,
uncached vendor artifacts, source updates.
```
Offer importing an approved offline bundle with manifest, versions, signatures/digests, and provenance. Do not embed fabricated digest strings. Verify archive paths and reject path traversal or unexpected executable payloads.
Updating the rule/source catalog creates a reviewable new version and never changes an accepted profile silently. No hidden downloads, automatic privileged package installation, or execution of downloaded documentation text.
# SECTION 14: SHUTDOWN, INTERRUPTION & RECOVERY
When no task is running, closing the application enters the access-restoration summary, persists the project, closes sessions, and terminates owned executors. Do not stop domain services or undo successfully applied persistent policies.
When a task is active:
```text
onCloseRequested():
stopSchedulingNewOperations()
if activeOperation.canCancelSafelyNow:
requestSupportedCancellation()
else:
showWhichNativeOperationMustReachASafeBoundary()
waitAsynchronouslyForThatBoundary()
verifyCompletedEffectsOrMarkUnknown()
presentAndExecuteAuthorizedTemporaryAccessRestoration()
persistRunAndChecklist()
closeOwnedSessionsAndProcesses()
exit()
```
Do not use kill-all process matching or force-terminate package managers and directory installers as normal close behavior. Do not promise that killing the GUI cancels an already accepted remote command.
After a crash, read the journal, inspect actual state, surface pending cleanup, and offer a reconstructed plan. Never blindly replay installation, password synchronization, ACL migration, promotion, or decommissioning.
After a required reboot of the machine hosting the GUI, the operator relaunches the program manually. There is no background application service for automatic continuation.
While closed, no new application audits, migrations, host retries, profile deliveries, or remediation jobs occur. The UI must explain this operational limit without implying that existing client settings disappear.
# SECTION 15: VERIFICATION & ACCEPTANCE
Use meaningful unit tests for state machines, plan dependencies, version gates, injection-resistant parameter handling, secret redaction, identity collision handling, and restoration conflict detection. Use Qt Test for GUI behavior where it validates real interaction, not screenshots of every decorative widget.
Required tests include:
1. A failed native process and a postcondition failure never produce migration success.
2. Same-name corp.local without a verified transition method blocks mutation but leaves inventory usable.
3. A degraded controller is never offered clean installation by inference from one stopped service.
4. Unsupported Windows 2025 domain integration stays blocked even if SSH execution succeeds.
5. A lost connection after a remote change produces unknown/needs-reconciliation, not automatic retry.
6. A pre-existing firewall rule/service/key is preserved during cleanup.
7. A temporary access change modified by another administrator creates a restoration conflict.
8. Secrets split across output chunks are not leaked by the log pipeline.
9. A renamed user or duplicate display name does not change the stable identity mapping.
10. Manual checklist completion cannot override a failed mandatory technical prerequisite.
11. Closing after completed work leaves no application-owned running process, listening port, timer, or remote background job.
12. Offline operation produces a specific missing-artifact explanation rather than a generic failure.
13. Motion disabled, Cyrillic text, keyboard navigation, and high DPI remain usable.
14. Repeated supported configuration is idempotent or explicitly classified otherwise.
15. A plan is invalidated when its relevant inventory, source mapping, or policy revision changes.
Define lab integration tests for each verified adapter on actual supported VMs. Do not run them against live infrastructure without authorization. Include the named one-forest/one-domain/one-source-DC lab and the Windows targets. Record exact tested builds and untested combinations.
Completion of the software implementation and successful migration of a real environment are separate outcomes. Report build/tests honestly, identify unimplemented integrations, and never describe a mocked fixture as a successful ALD migration.
The first usable release must contain working discovery, planning, lifecycle management, instructional checks, and at least the documented baseline initialization integration once validated. Do not leave all native actions as placeholders. When a particular integration is genuinely unavailable, ship its explicit blocked/guided workflow with the reason while completing the independent modules.
# SECTION 16: IMPLEMENTATION ORDER
Work in the following sequence. Do not stop after drawing the GUI or writing a plan; implement and verify the authorized software scope. Do not change real infrastructure as part of generating the code.
## Phase 0 — Evidence and compatibility
Create:
```text
docs/requirements.md
docs/feasibility.md
docs/compatibility-matrix.md
docs/compatibility-lock.json
docs/native-adapter-contracts.md
docs/access-restoration.md
data/sources.json
```
Extract actual ALD 3.1 native commands/API contracts from the delivery and documentation. Mark unresolved entries honestly. Inspect the target package manifest before choosing exact build revisions. The absence of a real Astra VM blocks release validation, not source-code development or unit tests.
## Phase 1 — Build, types and storage
Create:
```text
CMakeLists.txt
README.md
src/main.cpp
src/app/AppController.{h,cpp}
src/domain/{Project,Host,Capability,Plan,Operation,Run,AccessChange,Checklist}.h
src/storage/ProjectRepository.{h,cpp}
src/storage/DatabaseMigrator.{h,cpp}
schemas/{project,inventory,plan,profile,checklist,source}.schema.json
tests/unit/
```
Compile the minimal application and validate project persistence/migrations before adding privileged execution.
## Phase 2 — Runtime and privilege boundary
Create:
```text
src/execution/OperationRegistry.{h,cpp}
src/execution/ProcessRunner.{h,cpp}
src/execution/PlanExecutor.{h,cpp}
src/execution/RunJournal.{h,cpp}
src/execution/ShutdownCoordinator.{h,cpp}
src/security/SecretRedactor.{h,cpp}
src/security/AccessLedger.{h,cpp}
src/transports/NativeSshTransport.{h,cpp}
src/privileged/ExecutorMain.cpp
src/privileged/OperationDispatcher.{h,cpp}
tests/fixtures/
```
Implement safe fixed-task transport, session ownership, authorization checks, cancellation classes, and restoration semantics before enabling live mutations.
## Phase 3 — Native discovery and preparation
Create:
```text
src/adapters/Astra17Discovery.{h,cpp}
src/adapters/WindowsDiscovery.{h,cpp}
src/adapters/CompatibilityResolver.{h,cpp}
src/workflows/AccessPreparation.{h,cpp}
src/workflows/AccessRestoration.{h,cpp}
resources/tasks/windows/
resources/tasks/linux/
resources/tasks/manifest.json
```
Every shipped task must have a purpose, version constraints, validated parameters, read/write classification, and native-tool evidence. Do not generate a general-purpose remote shell API.
## Phase 4 — Readable desktop shell
Create:
```text
src/ui/MainWindow.{h,cpp}
src/ui/Theme.{h,cpp}
src/ui/PixelDecoration.{h,cpp}
src/ui/models/
src/ui/pages/{Overview,Environment,Access,Logs,Checklist}Page.{h,cpp}
resources/styles/dedsec.qss
resources/resources.qrc
```
Connect real read-only state, logs, and checklist interactions. Review screenshots at normal and high DPI. Use the declared DedSec palette and restrained motion without installing the skill's video runtime.
## Phase 5 — Initialization
Create:
```text
src/adapters/Ald31Deployment.{h,cpp}
src/workflows/InitializationPlanner.{h,cpp}
src/ui/pages/InitializationPage.{h,cpp}
data/checklists/initialization.ru.json
```
Implement the baseline deployment flow only after its exact native invocation is verified. Protect existing and partial domain states. Test plan generation independently from real promotion.
## Phase 6 — Migration
Create:
```text
src/adapters/AdInventory.{h,cpp}
src/adapters/Ald31Migration.{h,cpp}
src/workflows/IdentityMapper.{h,cpp}
src/workflows/MigrationPlanner.{h,cpp}
src/workflows/CutoverPlanner.{h,cpp}
src/ui/pages/MigrationPage.{h,cpp}
data/checklists/migration.ru.json
```
Implement supported object/resource operations and their evidence. Keep homonymous-domain, credential, Windows profile, and unsupported application dependencies explicit. Exercise positive and negative access checks in the lab. Do not enable AD decommissioning while the unchanged-user-experience gates remain unresolved.
## Phase 7 — General configuration and policies
Create:
```text
src/adapters/Ald31Administration.{h,cpp}
src/adapters/Ald31Policies.{h,cpp}
src/adapters/WindowsLocalPolicy.{h,cpp}
src/workflows/PolicyPlanner.{h,cpp}
src/ui/pages/DomainSettingsPage.{h,cpp}
src/ui/pages/PoliciesPage.{h,cpp}
data/checklists/policies.ru.json
```
Implement per-setting ownership, actual/resultant state, version limits, and explicit mappings. Keep Windows and Linux implementations separate behind a shared profile UI.
## Phase 8 — Hardening and source mapping
Create:
```text
src/workflows/HardeningPlanner.{h,cpp}
src/workflows/ComplianceEvaluator.{h,cpp}
data/hardening/fstec-linux-2022.catalog.json
data/hardening/astra17-mappings.json
data/hardening/windows-baselines.json
data/checklists/hardening.ru.json
```
Represent all 40 Linux-source items with honest support states. Implement only verified remediation paths; provide useful manual guidance for the rest. Separate exact source recommendations from role-specific accepted profile values and explain deviations.
## Phase 9 — Packaging and final verification
Create:
```text
packaging/debian/
docs/operator-guide.ru.md
docs/recovery-guide.ru.md
docs/test-results.md
tests/integration/
```
Build/install/uninstall on the validated Astra VM. Package installation must not enable remote access, start migrations, initialize a domain, install an always-on executor, or apply hardening. Verify shutdown, pending-cleanup recovery, offline operation, DPI/accessibility, and controller service health.
Deliver source code, a reproducible build procedure, package artifacts when a supported build environment exists, and an honest verification report. Distinguish completed functionality, real laboratory evidence, manual workflows, and blocked requirements. Do not label the product or a migration “fully ready” while required work remains.
-69
View File
@@ -1,69 +0,0 @@
# Development boundary review
Scope: source review of the GUI/executor boundary, fixed task construction,
project persistence, identity import, logs and shutdown. The `security-review`
skill was applied to this code. This was not a network assessment, exploitation
exercise or an independently reproduced security audit.
## Reviewed controls
- No GUI root operation, service, custom agent, installation hook or mutable
root command allowlist. Infrastructure mutations are rejected at the final
process boundary while their version/laboratory gates are unresolved.
- Native operations use executable/argument arrays. The remote command is a
compiled, hash-checked PowerShell payload; host/user data never becomes code.
AD inventory binds its native queries to the selected DC and checks
`corp.local`. Its output remains incomplete directory inventory.
- SSH uses strict host keys, an explicitly chosen protected known-hosts file,
no forwarded agent/ports, no shared control session and no password arguments.
- The one-shot privileged observation checks peer UID/PID, exact operation
fields, empty typed parameters, local machine binding and protected native
binary/parent ownership. It exposes only selected `sshd -T` output. IPC and
package installation have not been exercised in this session.
- JSON rejects duplicate decoded keys, excess sizes/depth, unknown executable
fields, wrong source domains and known secret-bearing attribute names. Unknown
directory attributes remain data. Source GUID/SID keys do not use display names.
- Output redaction handles split/overlapping known secrets and suppresses an
oversized sensitive suffix. No guarantee is made for arbitrary secrets typed
into free-text notes: operators must not put credentials there.
- Owned access changes are compared with observed applied state before proposing
restoration. The current application records manual obligations; it does not
execute unverified inverse operations or assert remote cleanup.
## Issues corrected during source review
| Location | Issue | Correction and validation limit |
|---|---|---|
| `src/ui/models/JsonTableModel.cpp` | Tooltips can interpret imported markup | Escape tooltip content; Qt regression test authored |
| `src/app/AppController.cpp`, `src/execution/PlanExecutor.cpp` | Journal failure could escape a signal handler or allow scheduling | Guard asynchronous result persistence, refuse the next native start, record recovery obligation where possible |
| `src/execution/ShutdownCoordinator.cpp`, `src/app/AppController.cpp` | Cleanup summary could precede final result persistence | Queue shutdown notification and emit once after owned work stops |
| `src/storage/ProjectRepository.cpp` | Rotation lost host/operation/run metadata; run snapshots overwrote history | Retain all event fields and append transactional run history |
| `src/privileged/OperationDispatcher.cpp` | Incomplete local binding/path checks | Reject unreadable/invalid machine ID, fractional schema version and writable parent paths |
| `src/adapters/AdInventory.cpp`, fixed AD task | Inventory domain was not explicitly bound to the accepted project | Require `source_domain`, bind native queries and reject other domains |
| `src/core/Rules.cpp` | Case variation and incomplete role observation could weaken a decision | Case-insensitive DNS comparison; require configuration observation before a clean-node classification; portable tests pass |
## Remaining release restrictions
The Qt regression suites now pass on Kali, including tooltip escaping,
fixed-task parameter rejection, owned-child cancellation, journal refusal before
native start, storage persistence and explicit demo/checklist gates. This does
not verify root IPC, remote Windows execution or production authorization. Required additional
work includes helper peer/error/disconnect tests, real process ownership checks,
database-full/permission failures, performance with bounded maximum inventories,
remote-shell behavior on each Windows build and package ownership validation on
Astra. Firmware/OS trust and a compromised same-user account are outside this
temporary local IPC isolation boundary.
Signed vendor bundles, automatic access restoration, fully typed mutating
adapters and complete per-operation authorization are not implemented. Those
operations stay disabled; this review does not authorize them. A source archive
is not a production release.
## Build-time defects corrected
The first full Qt run exposed outstanding PRAGMA result sets that prevented a
SQLite schema transaction from committing, and null QString values bound to
NOT NULL log fields. Result sets now finish before the transaction; absent
optional log context is stored as an empty string. Storage and UI regressions,
including project reopen and schema-valid checklist export, pass on the
actual Qt 5.15.19/QSQLITE build. No user project was migrated during testing.
-76
View File
@@ -1,76 +0,0 @@
# Local verification — 2026-10-27
The application and temporary executor **build successfully on Kali 2026.3**
with GCC 16.2.0, CMake 4.3.4 and Qt 5.15.19. All four CTest suites pass. This is
a development build, not a validated Astra package or an ALD migration result.
No Astra/Windows laboratory or real-infrastructure change was involved.
## Executed checks
| Check | Actual result | Limit |
|---|---|---|
| CMake configure/build | PASS; `build/ald-transition-console`, `build/ald-transition-executor` | Kali toolchain; not an Astra binary |
| CTest: rules, storage, runtime, ui | 4/4 PASS | Local fixtures and owned read-only child processes |
| Portable production rules, ASan/UBSan, warnings as errors | 40,457 assertions PASS, including 1,000 seeded chunk/DAG trials | LeakSanitizer disabled under the managed sandbox |
| Schemas, manifests and data | PASS: 26 resources, 23 source references, 40 cards, 17 checklist items | Hashes do not establish vendor support |
| Qt DEMO startup, capture, normal shutdown | PASS at 100/150/200% | Real C++ binary, Qt offscreen platform |
| Ten-page keyboard navigation at 1024×768 logical pixels | PASS at 100/150/200%; primary actions remain inside their pages | Offscreen event delivery; not a screen-reader audit |
| Project reopen and checklist export | PASS; manual history persists, JSON matches schema, migration remains BLOCKED | Synthetic data |
| Rendered interface | Screenshots inspected at normal/high scale; navigation wrapping and port-field height corrected | Live Windows/Astra states not exercised |
| X11/Xvfb | NOT VERIFIED: local X server failed to create listening sockets; xdpyinfo also failed | xcb linked dependencies are present; no desktop success claimed |
| Release gate | PASS: still refuses unvalidated Astra lock | No deployable `.deb` produced |
| Astra handoff script | Fresh configure/build and 4/4 tests PASS; missing-tools case exits 1 and produces a failure report archive | Script exercised on Kali; actual Astra run pending |
Machine-readable evidence: [local-check-results.json](local-check-results.json),
[gui-smoke-results.json](gui-smoke-results.json),
[gui-xcb-result.json](gui-xcb-result.json), and
[development-environment.json](development-environment.json).
Reproduce:
```sh
python3 tools/validate_local.py
python3 tools/check_gui.py
```
`check_gui.py` launches the actual application and Qt UI tests, saves screenshots
under `artifacts/screenshots`, verifies their pixel sizes and waits for normal
process exit. It never connects to an AD/ALD host. Its synthetic project and UI
preferences use temporary private directories. `--portable-only` remains
available for deliberately excluding the Qt build/tests.
## Defects found by the first full build
- Added the missing QVariant include and disambiguated QVector aggregate append.
- Finished PRAGMA result sets before SQLite schema commit; the active statements
had prevented initial project creation.
- Bound absent log context as empty strings instead of SQL NULL. Startup log
insertion now satisfies the schema and has a regression test.
- Wrapped sidebar labels using actual font/viewport measurements, retained full
labels and tooltips, and made the port editor meet the control-height baseline.
## Required acceptance coverage
| Requirement | Local evidence | Remaining validation |
|---|---|---|
| 1. Native failure/postcondition cannot produce success | Portable and actual ProcessRunner/PlanExecutor tests pass | Vendor operation postconditions |
| 2. Same-name migration stays blocked; discovery usable | Portable gate, DEMO and import checks pass | Verified transition procedure |
| 3. Degraded/unknown does not imply clean installation | Role rules and initialization planner tests pass | Astra role/configuration discovery |
| 4. Windows 2025 SSH is separate from ALD integration | Independent immutable capability state in source | Actual Server 2025 VM |
| 5. Lost connection requires reconciliation | Portable result tests; no automatic write retry; close warning implemented | Controlled remote disconnect |
| 6–7. Preserve existing access / detect external edits | Ownership and conflict tests pass | Native restore adapters are not implemented |
| 8. Split secrets are not leaked | Portable split/overlap bounds and Qt UTF-8 decoder tests pass | No guarantee for unknown secrets in arbitrary notes |
| 9. Stable identity across rename | Portable keys and Qt mapping collision tests pass | Real identity/permission migration |
| 10. Manual PASS cannot override technical gates | Qt checklist and project-reopen tests pass | Mandatory migration capabilities remain unresolved |
| 11. Close owns its local work | Local process cancellation and DEMO normal exit pass | Root IPC and remote-process lifecycle |
| 12. Offline failures are specific | Missing-tool, bundle traversal/hash rejection tests pass | Vendor/offline software artifact handling |
| 13. Motion/Cyrillic/keyboard/DPI | Qt offscreen tests and inspected images at 100/150/200% | Desktop keyboard focus, screen reader, high-contrast theme |
| 14. Idempotence classification | Profile ownership/comparison tests pass | Native configuration writers disabled |
| 15. Context changes invalidate plans | Portable digest/revision gates and storage history tests pass | Larger live inventory and source/profile update scenarios |
Database schema version 3 and crash-recovery marking are exercised locally.
Disk-full, interrupted multi-document transactions, root helper peer validation,
large inventories and real network failures still need dedicated fault injection.
Follow [integration/README.md](../tests/integration/README.md) on explicitly
approved VMs. ALD promotion, migration, continuity, policy writes, decommissioning,
Astra package install/uninstall and domain service health remain NOT TESTED.
-24
View File
@@ -1,24 +0,0 @@
# Packaging gate
`debian/` is a packaging template, not a validated deployable artifact. Stage a
clean source tree and copy `packaging/debian` to that tree's `debian/` directory.
Choose the actual maintainer/license and distribution version, then validate on
the approved Astra build VM. The default package rules refuse an incomplete
`docs/compatibility-lock.json`. Never mark it valid from a Kali build.
The native source version is 0.1.0; the template changelog is intentionally
UNRELEASED and must be reviewed before release. A proper source package with an upstream tarball may
instead use `3.0 (quilt)` and a Debian revision.
No maintainer script, service, timer, cron, default access rule, domain command,
polkit auto-grant or setuid bit is included. Installed helper is an ordinary
root-owned executable under `/usr/libexec/ald-transition-console`. It runs only
when a non-root operator requests the fixed read-only SSH audit and polkit
separately authorizes it. CMake installation prefix must be `/usr` so the fixed
helper path matches. Installing files alone does not authorize any operation.
On the target lab: build, install, launch as the intended non-root account,
exercise private IPC, all Qt tests, shutdown and crash recovery, and uninstall.
Compare service/process/listener state before and after; existing domain health
must be unchanged. Archive real package versions, artifact hashes and results.
No .deb is emitted in this environment because the target validation is absent.
@@ -21,5 +21,5 @@
"transports": null,
"ald_packages": null
},
"reason": "No supported Astra VM or ALD delivery was available. Null values are intentional. Kali is development-only."
"reason": "Подтверждённые результаты испытаний на целевой Astra и ALD Pro пока не получены. Неизвестные версии оставлены null; успешная компиляция сама по себе не подтверждает выпуск."
}
+1 -1
View File
@@ -1,5 +1,5 @@
ald-transition-console (0.1.0) UNRELEASED; urgency=medium
* Initial development source. Release blocked pending exact Astra validation.
* Исходники для испытаний. Выпуск ожидает проверки на целевой Astra.
-- ALD Transition Console project <maintainer@example.invalid> Tue, 27 Oct 2026 12:00:00 +0000
+4 -4
View File
@@ -11,7 +11,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt5sql5-sqlite
Recommends: openssh-client, qttranslations5-l10n
Suggests: policykit-1
Description: Native preparation console for ALD Pro 3.1 transitions
Russian C++/Qt desktop application for read-only discovery, blocked migration
planning, instructional checks and temporary-access restoration records.
No service, migration, remote-access or hardening action runs at installation.
Description: Консоль подготовки перехода на ALD Pro 3.1
Приложение C++/Qt с русским интерфейсом для диагностики, планирования,
проверок по инструкциям и учёта восстановления временного доступа.
Установка пакета не запускает службы, миграцию или изменение настроек.
+6 -6
View File
@@ -1,11 +1,11 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ALD Transition Console
Source: Local project
Source: Локальный проект
Files: *
Copyright: 2026 project owner; ownership and redistribution terms to be confirmed
Copyright: 2026 владелец проекта; права и условия распространения требуют уточнения
License: pending-owner-selection
No redistribution license has been inferred from local availability.
No Ubisoft/Watch Dogs artwork or external font files are bundled.
Qt and system fonts are runtime dependencies subject to their own licenses.
Release metadata must be reviewed before publishing a package.
Наличие файлов локально не определяет лицензию на распространение.
Материалы Ubisoft/Watch Dogs и сторонние файлы шрифтов не включены.
Qt и системные шрифты используются на условиях собственных лицензий.
Перед выпуском пакета необходимо проверить сведения о правах.
-4
View File
@@ -77,10 +77,6 @@
"path": "schemas/windows-discovery.schema.json",
"sha256": "0c2cddbcf23591f308787cbf240b28b2dfc185cc4492fb434b0dcf56bff328bf"
},
{
"path": "tasks/linux/README.md",
"sha256": "c28c1effd844cb0ed529f3e62b7ca3ae639cce558b45c0f83b6914317ba2d90a"
},
{
"path": "tasks/manifest.json",
"sha256": "9bd3b9f4760c497a9efe3688cfdb7698b5793a843d73fa13bb5fd195e7d3b527"
-1
View File
@@ -18,7 +18,6 @@
<file alias="schemas/project.schema.json">../schemas/project.schema.json</file>
<file alias="schemas/source.schema.json">../schemas/source.schema.json</file>
<file alias="schemas/windows-discovery.schema.json">../schemas/windows-discovery.schema.json</file>
<file alias="tasks/linux/README.md">tasks/linux/README.md</file>
<file alias="tasks/manifest.json">tasks/manifest.json</file>
<file alias="tasks/windows/ad-inventory.ps1">tasks/windows/ad-inventory.ps1</file>
<file alias="tasks/windows/discovery.ps1">tasks/windows/discovery.ps1</file>
-5
View File
@@ -1,5 +0,0 @@
Linux probes use fixed executable/argument pairs compiled in OperationRegistry.
No shell script is executed. Missing tools produce a separate missing-artifact
finding. Read-only probes: os-release, uname, dpkg-query, hostname, systemctl show,
ip address/route JSON, timedatectl show, resolv.conf, Yama runtime value.
No read-only probe installs, refreshes policy, starts a service or changes state.
-48
View File
@@ -1,48 +0,0 @@
# Authorized laboratory verification — not executed
Topology: one source forest/domain `corp.local`, one source AD DC, one Astra
ALD target, Windows 10, Server 2019 and Server 2025 test targets. Do not invent
a second source DC. Preserve the existing network in the actual scenario;
192.0.2.x in fixtures is documentation data, never a live default.
Before running a native integration test, record concrete target authorization,
exact builds/roles/updates, installed tool help, snapshots only where valid,
AD-aware backup and a tested recovery procedure. No test auto-connects to hosts.
1. Build Qt app on ALSE 1.7.7 UU2 / selected 6.1-generic / Smolensk with ALD 3.1.
Run all unit tests, update actual compatibility evidence, verify vendor
allowance for extra DC software. Test 1024×768 and 1440×900 at 100/150/200%.
2. Local discovery: clean, packages-only, AD client, ALD client, healthy,
degraded and partial DC. Corroborate membership/role independently; a single
stopped service must not offer clean installation.
3. On each named Windows build, run fixed discovery using prepared OpenSSH
native execution and Windows PowerShell 5.1. Verify edition/build/role,
optional feature permission failures, known-host mismatch, locked agent,
timeout, no DefaultShell change and no background jobs/listeners.
4. AD inventory: ordinary/privileged/disabled identities, nested group scopes,
rename/duplicate display names, OU, GPO links, scoped denial and 50000 limit.
Compare GUID/SID and counts against native UI. Record all uncollected areas.
5. Namespace/initialization: obtain vendor-supported same-name transition;
verify delivery's interactive installer/help, redacted secret handling,
exact prerequisites, planned downtime and partial failure recovery. Do not
enable the automated mutation adapter until this succeeds.
6. Continuity: old password, machine trust, original profile, DPAPI/EFS as
applicable, positive/negative file ACLs, application Kerberos/LDAP/NTLM/SPN,
CA/renewal, policy outcomes, post-reboot behavior. Each gets independent
manual and automatic evidence and its revision.
7. Private executor: root UID/PID peer substitution, wrong machine binding,
unknown ID/parameter, oversized/replayed request, altered binary/parent,
GUI disconnect, failed pkexec, timeout, no leftover helper/socket/process.
8. Access ledger: preserve pre-existing service/firewall/key; own temporary
resource restored only when unchanged, externally altered resource conflicts,
offline host stays pending, last-channel closure needs console verification.
Current preview guides these actions; automated inverse adapters are pending.
9. Controlled source-unavailable test with approved recovery and support.
AD retirement remains blocked on any missing mandatory outcome. There is no
FSMO-to-ALD or direct delete-AD test.
10. Install/uninstall: no domain-service/access changes from package hooks;
project persistence, incomplete schema rollback, disk-full handling,
shutdown during read-only process, no LAN ports/custom agents after close.
Save machine-derived observations as separate evidence files; do not reuse
synthetic fixture observations as vendor or laboratory evidence.
+8 -6
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
"""Local build and unit-test handoff; Python 3.7+, standard library only.
"""Сборка и локальные тесты. Требуется Python 3.7+, без сторонних модулей.
Never installs packages, starts the live GUI, changes a domain or qualifies a
release. Reports contain build output and package observations, not projects.
Пакеты не устанавливаются, GUI не запускается, домен не изменяется.
Отчёт содержит версии среды и журналы сборки, но не базы проектов.
"""
import argparse
import datetime
@@ -27,8 +27,10 @@ def utc_now():
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--jobs', type=int, default=2, choices=range(1, 9))
parser.add_argument('--build-dir', default='build-astra')
parser.add_argument('--jobs', type=int, default=2, choices=range(1, 9),
help='Количество процессов сборки, по умолчанию 2')
parser.add_argument('--build-dir', default='build-astra',
help='Каталог сборки внутри проекта, по умолчанию build-astra')
args = parser.parse_args()
if os.geteuid() == 0:
print('Запускайте сборку обычным пользователем, без sudo.', file=sys.stderr)
@@ -93,7 +95,7 @@ def main():
'--output', str(report_dir / 'environment.json')])
missing = [name for name in ('cmake', 'ctest', 'g++', 'make') if not shutil.which(name)]
if missing:
raise RuntimeError('Не найдены инструменты: {}. Порядок подготовки: docs/astra-lab.ru.md'.format(', '.join(missing)))
raise RuntimeError('Не найдены инструменты: {}. Порядок подготовки: README.md'.format(', '.join(missing)))
run('configure', ['cmake', '-S', str(ROOT), '-B', str(build), '-G', 'Unix Makefiles',
'-DCMAKE_BUILD_TYPE=Debug', '-DCMAKE_INSTALL_PREFIX=/usr',
'-DBUILD_TESTING=ON', '-DALD_CORE_ONLY=OFF'])
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Validate actual shipped schemas, catalog coverage, manifests and fixture provenance."""
"""Проверка схем, состава каталогов, манифестов и синтетических примеров."""
from pathlib import Path
import hashlib,json,sys,xml.etree.ElementTree as ET
import jsonschema
@@ -43,4 +43,4 @@ for mutated in [{**demo,'schema_version':2},{**demo,'unexpected':1},{**demo,'syn
try:check(mutated,'inventory')
except jsonschema.ValidationError:pass
else:raise AssertionError('Invalid inventory accepted')
print(f'PASS: schemas, {len(paths)} resources, {len(source_ids)} source references, 40 cards, 17 checklist instructions, task hashes and synthetic fixtures')
print(f'Пройдено: схемы, ресурсы ({len(paths)}), источники ({len(source_ids)}), 40 карточек, 17 инструкций, хеши заданий и синтетические примеры')
+13 -6
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Exercise the actual Qt binaries in isolated, explicit offscreen DEMO projects."""
"""Проверка GUI при трёх масштабах в отдельных синтетических проектах без экрана."""
import argparse
import datetime
import json
import os
@@ -9,7 +10,13 @@ import tempfile
from pathlib import Path
root = Path(__file__).resolve().parents[1]
output = root/'artifacts/screenshots'
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--build-dir', type=Path, default=Path('build-astra'), help='Каталог готовой сборки')
parser.add_argument('--output-dir', type=Path, default=Path('artifacts/gui'), help='Каталог скриншотов и отчёта')
args = parser.parse_args()
build = (root/args.build_dir).resolve()
output = (root/args.output_dir).resolve()
os.umask(0o077)
output.mkdir(parents=True, exist_ok=True)
records = []
@@ -19,7 +26,7 @@ for scale in ('1', '1.5', '2'):
environment.update(QT_QPA_PLATFORM='offscreen', QT_SCALE_FACTOR=scale,
XDG_CONFIG_HOME=temporary+'/preferences')
screenshot = output/('overview-'+scale+'.png')
argv = [str(root/'build/ald-transition-console'), '--project', temporary+'/project',
argv = [str(build/'ald-transition-console'), '--project', temporary+'/project',
'--demo', '--smoke-test', '--capture', str(screenshot)]
result = subprocess.run(argv, env=environment, capture_output=True, text=True, timeout=20)
records.append(dict(kind='application_demo', scale=scale, exit_code=result.returncode,
@@ -28,7 +35,7 @@ for scale in ('1', '1.5', '2'):
expected = (int(1440*float(scale)), int(900*float(scale)))
assert struct.unpack('>II', screenshot.read_bytes()[16:24]) == expected
environment['ALD_TEST_CAPTURE_DIR'] = str(output/('scale-'+scale))
result = subprocess.run([str(root/'build/test_ui')], env=environment,
result = subprocess.run([str(build/'test_ui')], env=environment,
capture_output=True, text=True, timeout=30)
records.append(dict(kind='ui_suite', scale=scale, exit_code=result.returncode,
stdout=result.stdout, stderr=result.stderr))
@@ -37,9 +44,9 @@ for scale in ('1', '1.5', '2'):
image = output/('scale-'+scale)/f'narrow-{page:02d}.png'
expected = (int(1024*float(scale)), int(768*float(scale)))
assert struct.unpack('>II', image.read_bytes()[16:24]) == expected
print(f'PASS: actual Qt DEMO + 10 narrow pages, scale {scale}', flush=True)
print(f'Пройдено: GUI в режиме DEMO и 10 страниц в узком окне, масштаб {scale}', flush=True)
report = dict(observed_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),
platform='Qt offscreen', records=records, astra_validated=False,
x11_desktop_validated=False, screen_reader_validated=False)
(root/'docs/gui-smoke-results.json').write_text(json.dumps(report, ensure_ascii=False, indent=2)+'\n')
(output/'result.json').write_text(json.dumps(report, ensure_ascii=False, indent=2)+'\n', encoding='utf-8')
+3 -3
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Measure declared opaque token pairs; this is not a rendered GUI/a11y test."""
"""Проверка контраста заданных цветов; визуальная доступность проверяется отдельно."""
from pathlib import Path
import re
root=Path(__file__).resolve().parents[1]
@@ -10,5 +10,5 @@ def luminance(color):
return sum(a*b for a,b in zip(channels,(.2126,.7152,.0722)))
for front,back,required in [('text','background',4.5),('text','panel',4.5),('secondary','panel',4.5),('warning','panel',4.5),('background','accent',4.5),('accent','panel',4.5),('accent','elevated',3)]:
hi,lo=sorted([luminance(tokens[front]),luminance(tokens[back])],reverse=True);ratio=(hi+.05)/(lo+.05)
print(f'{front}/{back}: {ratio:.2f}:1 (required {required}:1)');assert ratio>=required
print('PASS: declared text/focus token contrast; rendered, high-contrast-mode and screen-reader checks remain pending')
print(f'{front}/{back}: {ratio:.2f}:1 (требуется {required}:1)');assert ratio>=required
print('Пройдено: контраст цветов текста и фокуса. Проверки отображения, высокого контраста и экранного диктора остаются отдельными.')
+3 -3
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
"""Read-only evidence collector. Never writes or marks a release lock validated."""
"""Сбор фактических версий среды без изменений системы и подтверждения выпуска."""
import argparse,datetime,json,platform,shutil,subprocess
from pathlib import Path
parser=argparse.ArgumentParser();parser.add_argument('--output',required=True);args=parser.parse_args()
parser=argparse.ArgumentParser(description=__doc__);parser.add_argument('--output',required=True,help='Путь к JSON-отчёту');args=parser.parse_args()
def cmd(argv):
try:
result=subprocess.run(argv,capture_output=True,text=True,timeout=15,check=False)
@@ -13,4 +13,4 @@ def read(p):
except OSError:return None
report={'schema_version':1,'observed_at':datetime.datetime.now(datetime.timezone.utc).isoformat(),'release_validated':False,'os_release':read('/etc/os-release'),'astra_build':read('/etc/astra/build_version'),'kernel':platform.release(),'architecture':platform.machine(),'protection_level':None,'commands':[cmd(['g++','--version']),cmd(['cmake','--version']),cmd(['qmake','-query']),cmd(['ssh','-V']),cmd(['astra-modeswitch','getname']),cmd(['dpkg-query','-W','-f=${binary:Package}\t${Version}\t${db:Status-Status}\n','g++','gcc','cmake','make','python3','libc6','libstdc++6','linux-image-'+platform.release(),'qtbase5-dev','qtbase5-dev-tools','qt5-qmake','libqt5core5*','libqt5gui5*','libqt5widgets5*','libqt5network5*','libqt5sql5*','libqt5test5*','openssh-client','policykit-1','aldpro*','astra-version','freeipa*','sssd*','samba*'])]}
Path(args.output).write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
print('Saved observed evidence. Validation remains false:',args.output)
print('Наблюдения сохранены. Выпуск остаётся неподтверждённым:',args.output)
-44
View File
@@ -1,44 +0,0 @@
#!/usr/bin/env python3
"""Create a reproducible source-only review artifact, never a deployable package."""
import datetime
import gzip
import hashlib
import io
import json
import tarfile
from pathlib import Path
root = Path(__file__).resolve().parents[1]
report = json.loads((root/'docs/local-check-results.json').read_text())
epoch = int(datetime.datetime.fromisoformat(report['observed_at']).timestamp())
name = 'ald-transition-console-0.1.0-source-preview'
files = [root/'.gitignore', root/'CMakeLists.txt', root/'README.md']
for directory in ('src', 'schemas', 'data', 'resources', 'docs', 'tests', 'packaging', 'tools'):
files.extend(p for p in (root/directory).rglob('*')
if p.is_file() and '__pycache__' not in p.parts and p.suffix != '.pyc')
output = root/'artifacts'
output.mkdir(exist_ok=True)
archive = output/(name+'.tar.gz')
with archive.open('wb') as raw:
with gzip.GzipFile(filename='', mode='wb', fileobj=raw, mtime=epoch) as compressed:
with tarfile.open(fileobj=compressed, mode='w') as tar:
for path in sorted(files):
if path.is_symlink():
raise ValueError('Do not distribute symlinked source: '+str(path))
data = path.read_bytes()
info = tarfile.TarInfo(name+'/'+path.relative_to(root).as_posix())
info.size = len(data)
info.mtime = epoch
info.mode = 0o755 if path.name == 'rules' and 'debian' in path.parts else 0o644
info.uid = info.gid = 0
info.uname = info.gname = ''
tar.addfile(info, io.BytesIO(data))
digest = hashlib.sha256(archive.read_bytes()).hexdigest()
(output/'SHA256SUMS').write_text(digest+' '+archive.name+'\n')
with tarfile.open(archive) as tar:
members = tar.getmembers()
assert len(members) == len(files)
assert all(m.isfile() and not m.name.startswith('/') and '..' not in Path(m.name).parts for m in members)
print(f'Source preview: {len(files)} files, {archive.stat().st_size} bytes')
print(archive)
print('SHA256 '+digest)
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Compile and run the production portable rules without requiring Qt/CMake."""
"""Сборка и проверка независимого ядра без Qt и CMake."""
import os,subprocess,tempfile
from pathlib import Path
root=Path(__file__).resolve().parents[1]
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Developer-only deterministic asset manifest update. Review changes before release."""
"""Обновление манифеста ресурсов при разработке; изменения проверяются перед выпуском."""
import hashlib,json
from pathlib import Path
root=Path(__file__).resolve().parents[1]
@@ -14,4 +14,4 @@ manifest={'schema_version':1,'assets':[{'path':alias,'sha256':hashlib.sha256(pat
files.append(('asset-manifest.json',root/'resources/asset-manifest.json'))
import os
(root/'resources/resources.qrc').write_text('<RCC><qresource prefix="/">\n'+''.join(f' <file alias="{alias}">{os.path.relpath(path,root/"resources")}</file>\n' for alias,path in files)+'</qresource></RCC>\n')
print(f'Updated {len(manifest["assets"])} embedded asset digests and resources.qrc')
print(f'Обновлены хеши встроенных ресурсов ({len(manifest["assets"])}) и resources.qrc')
-62
View File
@@ -1,62 +0,0 @@
#!/usr/bin/env python3
"""Run local software checks only; never connect to infrastructure or install tools."""
import argparse
import datetime
import hashlib
import json
import shutil
import subprocess
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
parser = argparse.ArgumentParser()
parser.add_argument('--portable-only', action='store_true')
args = parser.parse_args()
records = []
def run(name, argv, expected=0, cwd=ROOT, timeout=120):
try:
result = subprocess.run(argv, cwd=cwd, capture_output=True, text=True, timeout=timeout)
record = dict(name=name, command=argv, expected_exit=expected,
exit_code=result.returncode, stdout=result.stdout, stderr=result.stderr,
status='PASS' if result.returncode == expected else 'FAIL')
except (OSError, subprocess.TimeoutExpired) as error:
record = dict(name=name, command=argv, status='ERROR', error=str(error))
records.append(record)
print(name + ': ' + record['status'], flush=True)
return record['status'] == 'PASS'
run('data_and_manifest', [sys.executable, 'tools/check_assets.py'])
run('declared_theme_contrast', [sys.executable, 'tools/check_theme.py'])
run('portable_rules_asan_ubsan', [sys.executable, 'tools/run_portable_tests.py'])
# The unvalidated lock MUST block packaging in this development preview.
run('unvalidated_release_refused', [sys.executable, 'tools/verify_release_lock.py'], expected=1)
qt_state = 'NOT_RUN_EXPLICIT_PORTABLE_ONLY' if args.portable_only else 'BLOCKED_MISSING_BUILD_TOOLS'
if not args.portable_only and shutil.which('cmake'):
if run('qt_configure', ['cmake', '-S', '.', '-B', 'build', '-DCMAKE_BUILD_TYPE=Debug']):
if run('qt_build', ['cmake', '--build', 'build', '--parallel', '2'], timeout=300):
qt_state = 'PASS' if run('qt_tests', ['ctest', '--output-on-failure'], cwd=ROOT/'build') else 'FAIL'
else:
qt_state = 'FAIL'
else:
qt_state = 'BLOCKED_OR_CONFIGURE_FAILED'
digest = hashlib.sha256()
for base in ('src', 'tests/unit', 'schemas', 'data', 'resources', 'tools'):
for path in sorted((ROOT/base).rglob('*')):
if path.is_file() and '__pycache__' not in path.parts:
digest.update(path.relative_to(ROOT).as_posix().encode() + b'\0' + path.read_bytes())
report = dict(schema_version=1, observed_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),
source_digest=digest.hexdigest(), checks=records, qt_validation=qt_state,
astra_lab='NOT_AVAILABLE', windows_lab='NOT_AVAILABLE', release_validated=False)
output = ROOT/'docs/local-check-results.json'
output.write_text(json.dumps(report, ensure_ascii=False, indent=2) + '\n')
print('Qt validation: ' + qt_state)
print('Report: ' + str(output))
if any(record['status'] != 'PASS' for record in records):
sys.exit(1)
sys.exit(0 if args.portable_only or qt_state == 'PASS' else 2)
+7 -7
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
"""Require actual supported-target evidence before package generation."""
"""Проверка наличия подтверждённых данных целевого стенда перед выпуском пакета."""
import argparse, json, sys
from pathlib import Path
root = Path(__file__).resolve().parents[1]
parser = argparse.ArgumentParser()
parser.add_argument('--lock', type=Path, default=root/'docs/compatibility-lock.json')
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--lock', type=Path, default=root/'packaging/compatibility-lock.json', help='Файл подтверждённого состава стенда')
args = parser.parse_args()
required = ('os_release', 'os_update', 'kernel', 'architecture', 'compiler', 'cmake',
'qt_packages', 'sqlite_driver', 'transports', 'ald_packages')
@@ -13,11 +13,11 @@ try:
observed = lock.get('validated_target', {})
missing = [key for key in required if not observed.get(key)]
if lock.get('schema_version') != 1 or lock.get('release_validated') is not True or missing:
raise ValueError('supported Astra validation incomplete; missing: ' + ', '.join(missing))
raise ValueError('проверка целевой Astra не завершена; не заполнено: ' + ', '.join(missing))
target = lock.get('target', {})
if target.get('release') != '1.7.7' or target.get('update') != 'UU2' or target.get('ald_version') != '3.1.0':
raise ValueError('target differs from the accepted first laboratory baseline')
raise ValueError('состав стенда отличается от выбранной исходной конфигурации')
except (OSError, ValueError, TypeError, AttributeError) as error:
print('RELEASE BLOCKED: ' + str(error), file=sys.stderr)
print('ВЫПУСК ЗАБЛОКИРОВАН: ' + str(error), file=sys.stderr)
sys.exit(1)
print('Required lock fields present. Authenticity and laboratory approval still require review; this is not migration authorization.')
print('Обязательные поля заполнены. Достоверность данных и результаты испытаний проверяются отдельно; разрешения на миграцию нет.')