feat: contracts for the Windows depth programme, 4.56.0 (NetOrk/netork#2888–#2899) #145

Merged
christianmanivong merged 20 commits from chore/merge-train-windows-depth into main 2026-12-02 21:25:09 +00:00
20 Commits
Author SHA1 Message Date
christianmanivong fda74048f3 chore(release): 4.56.0
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 19s
driver / types (pull_request) Successful in 1m1s
driver / lowest (pull_request) Successful in 44s
driver / test (3.12) (pull_request) Successful in 1m20s
driver / test (3.13) (pull_request) Successful in 1m17s
driver / build (pull_request) Successful in 35s
driver / security (pull_request) Successful in 1m22s
CI / driver (pull_request) Successful in 2m25s
driver / publish (pull_request) Skipped
2026-12-02 22:21:30 +01:00
christianmanivong a3d957500f chore(quality): lower the models.py line baseline after the merged moves
driver / lint (pull_request) Successful in 24s
driver / standard (pull_request) Successful in 27s
driver / lowest (pull_request) Successful in 54s
driver / types (pull_request) Successful in 1m30s
driver / test (3.12) (pull_request) Successful in 1m50s
driver / test (3.13) (pull_request) Successful in 1m39s
driver / build (pull_request) Successful in 33s
driver / security (pull_request) Successful in 1m26s
CI / driver (pull_request) Successful in 2m47s
driver / publish (pull_request) Skipped
2026-12-01 23:20:15 +01:00
christianmanivong 47ad8c55bf Merge remote-tracking branch 'origin/feature/windows-posture-2893' into chore/merge-train-windows-depth
driver / lint (pull_request) Successful in 17s
driver / standard (pull_request) Failing after 19s
driver / lowest (pull_request) Successful in 48s
driver / types (pull_request) Successful in 1m14s
driver / test (3.12) (pull_request) Successful in 1m33s
driver / build (pull_request) Successful in 28s
driver / test (3.13) (pull_request) Successful in 1m26s
driver / security (pull_request) Successful in 56s
CI / driver (pull_request) Failing after 2m3s
driver / publish (pull_request) Skipped
# Conflicts:
#	CHANGELOG.md
2026-12-01 13:22:56 +01:00
christianmanivong d18b3b58c1 Merge remote-tracking branch 'origin/feature/windows-update-2892' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
2026-12-01 13:18:29 +01:00
christianmanivong 31c6b5699d Merge remote-tracking branch 'origin/feature/windows-repairs-2899' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
#	napalm_device_types/__init__.py
2026-12-01 13:17:26 +01:00
christianmanivong 51b45b7ab8 Merge remote-tracking branch 'origin/feature/windows-events-2897' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
2026-12-01 13:16:59 +01:00
christianmanivong 110a85dd08 Merge remote-tracking branch 'origin/feature/windows-exposure' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
#	napalm_device_types/models.py
2026-12-01 13:16:54 +01:00
christianmanivong 0a81b7ee99 Merge remote-tracking branch 'origin/feature/windows-logins-2895' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
2026-12-01 13:16:42 +01:00
christianmanivong 41e027f176 Merge remote-tracking branch 'origin/feature/windows-basics' into chore/merge-train-windows-depth
# Conflicts:
#	CHANGELOG.md
2026-12-01 13:16:42 +01:00
christianmanivong df8816647f Merge remote-tracking branch 'origin/feature/windows-storage-2896' into chore/merge-train-windows-depth 2026-12-01 13:16:31 +01:00
christianmanivong 0f33653ca8 refactor(models): UserDict and ProcessDict in os_models.py, re-exported from models
models.py stays within its line baseline; the baseline drops to what is left.
2026-12-01 12:54:55 +01:00
christianmanivong 6d1408e661 feat(host-repairs): a caller's limit, tighter than the driver's own bound (NetOrk/netork#2899)
An application whose worker gives a run less time than the driver's bound
passes limit (seconds), so the run fails with what it printed instead of
being cut off by the worker.
2026-12-01 12:52:41 +01:00
christianmanivong 5e8b840748 Windows host firewall and Windows features contracts (NetOrk/netork#2894, #2898)
get_host_firewall gains an optional windows key: a Windows host's
profiles, enabled rules with their filters, and the profile of each
connected interface, beside the netfilter chains rather than in them.
WindowsFeaturesMixin declares get_windows_features: every optional
feature of the host's image and its state.

The netfilter shapes move to host_firewall_models; models re-exports
them.
2026-12-01 12:51:46 +01:00
christianmanivong 6c273ea346 feat(host-events): host events, event channels as log sources, how a service's run ended (NetOrk/netork#2897)
- HostEventsMixin.get_host_events(since=None), declared: the events of a fixed
  set of kinds a host's own log recorded (unexpected shutdowns, system crashes,
  hardware errors, disk errors, programs and services that crashed), with
  HostEventDict, HostEventsDict and host_event().
- LogSourceDict: kind "eventlog" for a Windows event channel, named by the new
  optional channel field (eventlog_source, LOG_SOURCE_KINDS).
- ServiceDict: optional result, exit_code, trigger_start and account; exported.
2026-12-01 12:48:09 +01:00
christianmanivong a124993c1c feat(hardening): a host's security posture as optional HardeningDict keys (NetOrk/netork#2893)
Secure Boot, the TPM, disk encryption per volume, the antimalware product,
the firewall's profiles and virtualization-based security, in terms no OS
owns, so a Windows host's protection fits the reading Linux fills. The new
keys are NotRequired; every key Linux fills stays required and unchanged.
2026-12-01 12:47:31 +01:00
christianmanivong 395177b1b1 feat(host-storage): a host's disks, volumes and drive health without the storage role (NetOrk/netork#2896)
HostStorageMixin declares get_disks, get_disk_pools and get_volumes in
StorageDriver's shapes, and get_disk_smart, drive health per disk, with
no role: a Windows or Linux host reports its storage and stays a host.

DiskSmartDict names the keys Proxmox's get_disk_smart already fills and
adds the highest temperature and the uncorrected read and write errors.
HostVolumeDict adds a volume's file system and health to
LogicalVolumeDict. A disk that does not say reads temperature -1 and
health "unknown", never a zero or a "healthy" nobody measured.

Additive: nothing changes for StorageDriver or its drivers.
2026-12-01 12:47:08 +01:00
christianmanivong 216d60d464 feat(updates): an update can name its title, advisories, CVEs and vendor rating (NetOrk/netork#2892)
UpdateDict takes optional title, advisories, cves and vendor_severity, for a
source that says more of an update than a package name: Windows Update's
title, KBArticleIDs, CveIDs and MsrcSeverity. UpdateHistoryPackageDict takes
an optional title. Additive: every reader that leaves them out conforms.
2026-12-01 12:47:06 +01:00
christianmanivong a825d48c19 feat(logins): optional keys for another platform's login accounts and sessions (NetOrk/netork#2895)
LoginAccountDict may carry sid, administrator and remote_desktop; uid
stays an int and is the RID where a SID is given. LoginAccountsDict may
carry groups (LoginGroupDict, LoginGroupMemberDict, LOGIN_GRANTS): the
groups that grant administering the host or a remote desktop login,
with every member. LoginSessionsDict may carry records_since, the oldest
entry the record still holds. All optional: the Linux reading and every
driver that builds one are unchanged.
2026-12-01 12:45:27 +01:00
christianmanivong 5c2bfb7dfa feat(windows): clean_system_identity for values read without the DMI files, UserDict.sid
clean_system_identity applies parse_system_identity's placeholder rules to values a
host reads through an interface of its own (Windows' CIM classes,
NetOrk/netork#2888); parse_system_identity now uses it. UserDict gains an optional
sid beside the int uid (NetOrk/netork#2889).
2026-12-01 12:45:05 +01:00
christianmanivong 54bda2cb79 feat(host-repairs): a host's checks and repairs as a fixed catalog of runs (NetOrk/netork#2899)
HostRepairMixin declares one method per run -- verify_system_files,
repair_system_files, check_component_store, repair_component_store,
update_antimalware_signatures and scan_antimalware -- so the method list is the
guard, and a repair is never offered with its check. Each streams the tool's
lines to log and returns a HostRepairResultDict; tool_outcome builds it from the
lines and the exit code, failing a non-zero code with the tool's last lines.
offered_host_repairs lists the runs a driver defines.
2026-12-01 12:44:45 +01:00