Repository navigation
Ui Refinement Ux13
Published documentation mirror. Edit the source through a repository PR. See Project status.
Historical accepted increment. The ordinary desktop approval workflow is superseded by UX14; explicit service CLI approval remains separate.
UX12 accepted within implemented scope: 255 local PASS, zero failures, skips
or blocks, nine hosted checks on f24cfcb, merge reported. This candidate closes
part of the operational storage integration gap, not the entire UX13 objective.
The ordinary unprivileged graphical desktop reads its UX9 saved path pair. An
administrator-published /etc/knetsentry/storage-UID.approval opts that UID into
approved storage; the native manager must independently load a trusted KSA2
record and match both saved paths exactly. A missing approval on an ordinary
first start preserves the old lifecycle-only mode (no evidence storage). If an
approval has been observed in this desktop session, startup refusal or removal
never falls back to a different evidence store or the lifecycle-only child.
Saving preferences does not alter a running store. Stop and Play, or close and
reopen, apply the current saved pair. An externally selected manager remains
read-only to desktop lifecycle controls. No new root process or shell is invoked
by the GUI; actual administrator publication remains a separate explicit step.
The approved child opens existing evidence, processes pending projections using its existing bounded scheduling, and exposes normalized event queries. It does not automatically enable network ingress, packet capture, device intake or alerts. Only after verified manager health does the desktop connect its Events, Dashboard and Investigations clients to that child's private IPC directory. Stop, failed health, failed startup or changed IPC clears their snapshots and cancels outstanding queries. No direct desktop SQLite access is introduced. The existing heartbeat indicates health, not coverage; coverage warnings remain.
A dedicated audit parent /var/lib/knetsentry-desktop-UID must exist, be owned
by the desktop UID and mode 0700; provision its ancestry under administrator
control. Each startup creates a unique mode-0700 audit session directory and
syncs the parent. Sessions are never automatically deleted or overwritten.
This is not yet a unified audit continuity or audit retention policy.
Use the reviewed native executable as the intended non-root identity. Select and save two distinct, non-nested paths in Settings. Production directories must be on supported local filesystems (ext4, XFS, Btrfs, F2FS), owned by the intended UID, mode 0700, and free of symlinks. For a new empty pair, follow the UX10 initialization procedure once with a temporary trusted KSA1 approval. Never initialize over existing evidence. Stop every manager using the pair before describing or publishing a replacement approval.
Use knetsentryd --describe-existing-storage-pair RAW INDEX under that same
non-root identity. The command verifies the existing pair through the native
store contract (which may complete the inherited interrupted-head recovery)
and emits private KSA2 approval material. Independently review both paths,
identities and pair ID; the administrator publishes the exact reviewed record
as /etc/knetsentry/storage-UID.approval, root-owned regular single-link file,
0640 or 0440, readable by the desktop group, with trusted root-owned non-writable
ancestors. Use atomic replacement and directory synchronization. The desktop
must not publish or modify the record. Keep private paths and approval files
out of public commits and artifacts. Provision the dedicated audit parent
before starting the desktop. Do not publish root authority from an unreviewed
or mutable user-provided file. Never use a repository build as root.
KSA1 retains the exact original boot/mount identity behavior. KSA2 adds the existing random pair ID, checked before raw head recovery or query. It cannot initialize a store. If approval boot and current boot match, the entire recorded location identity must match. In a later boot, fresh inspection must match both approved absolute paths, filesystem types, nonzero filesystem IDs and directory inodes; fresh boot, mount and device values are used for the existing per-operation identity checks. Both stores must match the pinned pair and existing integrity checks. Runtime remount/replacement of a pinned live location is still refused. The root approval is not rewritten automatically: in later boots every fresh manager opening revalidates stable identity and pair, not the previous process's transient mount ID. Filesystems that do not retain the approved identifiers must be explicitly reapproved. This is not a cryptographic anti-cloning mechanism; an attacker able to clone filesystem identity and all private evidence is outside this identity check's assurance. A real reboot, mount replacement refusal, and administrator review remain required. No continuous approval-file revocation monitoring is claimed.
Raw files are still needed to verify exact retries, the raw head and normalized projections. The current format must not be subjected to age-based file deletion. The next implementation must introduce a versioned, bounded retained commitment and receipt identity scheme; verify independent normalized projections against that commitment; establish separate raw and index quotas and retention policies; protect pending, held and uncommitted records; durably record expiration intent before removing only eligible raw bytes; reconcile all interrupted cross-store publication and expiration states; preserve exact retry versus conflict across reopen; and keep deleted raw evidence distinguishable from unavailable or corrupt evidence. Require positive query-after-expiration, hold, quota, retry, crash-window, rollback/tamper, mount outage and restart tests. No automatic raw deletion, index migration, expanded packet capture, installed-systemd service activation or split-store detection/alert composition is delivered here. Do not mark operational storage complete or begin M10 on these tests alone.
Retain 682 configured CTests and 115 structural verifiers, five maximum cumulative executions per named CTest/preset. Extend the M6.10 native test with KSA2 canonical round-trip, wrong pair refusal, synthetic prior-boot rebind and identity change refusal. The existing isolated authenticated split fixture publishes an existing KSA2 pair, simulates an earlier boot, restores disposable saved Settings paths, starts the actual desktop-owned manager offscreen, queries the real indexed records, stops and verifies clearing, refuses a mismatched desired pair, and reopens with matching paths. Verify separate audit files and evidence invariance. The simulated old boot is not a physical reboot; perform actual representative reboot and mount checks manually before acceptance of cross-boot deployment.
The first target acceptance run (2026-12-01 UTC, applied tree based on
f24cfcb) completed with 242 PASS, 1 FAIL, 4 SKIPPED and 0 BLOCKED in
25m38s. All seven configured CTest suites passed. The inherited M8.10 source
verifier still required the literal manager access, whereas UX13's updated
StoragePanel warning explicitly states that service-level access, evidence
integrity and operational storage health are not established by the preview.
The corrective patch verifies the current full warning and separate
administrator approval and non-activation wording. All original native
preview, writer-policy, privacy and registration assertions are retained.
No application code or authorization behavior changes in this correction.
The private runner now checks the M8.10 source contract before compilation or administrator authentication, without increasing the successful gate count; the original complete structural sweep remains mandatory. The first run's privileged firewall, network, mount and installed-service qualification was skipped after the failure, including the composed UX13 scenario. Repeat the full acceptance workflow; 256 PASS, zero failures, skips or blocks remain required (257 with optional GUI review). The five-execution cap is unchanged. Actual approved desktop activation and physical reboot remain unqualified.
Source repository · Documentation index · License policy
Documentation mirror — CC-BY-SA-4.0. KnetSentry is not an official KDE project.