Skip to content

Harden input validation, fix sysctl persist, deduplicate helpers - #31

Merged
TsekNet merged 3 commits into
mainfrom
holistic-review-fixes
Apr 13, 2026
Merged

TsekNet merged 3 commits into
mainfrom
holistic-review-fixes

Conversation

@TsekNet

@TsekNet TsekNet commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Summary

Address all 23 findings from holistic correctness + quality review.

Test plan

  • go build ./... passes (Linux, macOS, Windows)
  • go test -race ./... passes (all 25 packages)
  • go vet ./... clean

Closes #30

Security: remove DirectCommand injection risk, sysctl key validation,
HTTP scheme downgrade check, kernelmodule error propagation, repository
input validation, cron path traversal rejection.

Correctness: sysctl read-modify-write persist, file absolute path in
Apply, kernelmodule hyphen normalization, FileOpts State field for
block absent, condition.Shell error propagation.

Quality: deduplicate truncate to shell.Truncate, fix stale Meta docs,
kernelmodule test coverage, snap test coverage, dnf repo test, MapFS
IsDir fix, remove redundant hostname alreadySet.

Closes #30
@TsekNet TsekNet changed the title Fix all holistic review findings Harden input validation, fix sysctl persist, deduplicate helpers Apr 13, 2026
TsekNet added 2 commits April 13, 2026 13:01
Replace taskExists with getTaskInfo that reads the existing task's
action Path via Definition.Actions.Item(1).Path. Check now reports
drift when the configured command differs from the blueprint.
…eduler

Switch cron_windows.go from manual oleutil.CallMethod/GetProperty calls
to capnspacehook/taskmaster, matching the pattern used by
google/glazier. Cleaner typed API, proper handle lifecycle, and
readable task property access via t.Definition.Actions.

Check now reads the existing task's action Path and compares against
the desired command. checkState extracted for cross-platform testing.
@TsekNet
TsekNet merged commit ab6d1ea into main Apr 13, 2026
1 check passed
@TsekNet
TsekNet deleted the holistic-review-fixes branch April 13, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden input validation, fix sysctl persist, deduplicate helpers

1 participant