5.7 KiB
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.