Repository navigation
Add validated SSH daemon option remediation - #225
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Critical issues remain: daemon argument checks can validate the wrong configuration, and file replacement races can overwrite concurrent administrator edits during remediation or rollback.
2 open issues
What changed in this PR
Adds explicit SSH daemon option remediation to the kompli engine, extending SshdOption with validated configuration changes, service reload, and rollback handling.
Changes:
- Adds literal remediation targets for eight supported SSH options while preserving audit-only behavior when no target is supplied.
- Adds configuration traversal, startup checks, validation before reload, and rollback on failure.
- Updates generated interfaces, schemas, documentation, and remediation tests.
| File | Description |
|---|---|
| src/engine/tests/procedures/SshdOptionRemediationTest.cpp | Tests remediation, refusal conditions, rollback, and concurrent edits. |
| src/engine/tests/CMakeLists.txt | Registers the remediation tests. |
| src/engine/procedures/SshdOption.schema.json | Adds the target parameter and remediation schema. |
| src/engine/procedures/SshdOption.h | Declares the target parameter and remediation handler. |
| src/engine/procedures/SshdOption.cpp | Implements validation, configuration updates, reload, and rollback. |
| src/engine/ProcedureMap.h | Adds the generated target parameter binding. |
| src/engine/ProcedureMap.cpp | Registers the remediation handler and parameter name. |
| docs/architecture.md | Documents supported targets and remediation safeguards. |
Review effort: Balanced
ef4cb46 to
cef0f0d
Compare
|
Copilot resolve the merge conflicts in this pull request |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Resolved the conflict in |
|
Witold Krecicki (@wupeka) - are we planning to add KexAlgorithmsremediation to this as well? |
|
Copilot resolve the merge conflicts in this pull request |
# Conflicts: # docs/architecture.md Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Resolved the latest conflict with |

Validate explicit SSH option changes before reload and roll back failed changes. Refuse service startup arguments whose effective values cannot be verified. Includes remediation tests.
Split from #207. This branch targets
maindirectly.Validation:
git diff --checkpassed. Regenerated the engine interface with no unstaged changes. Unit tests were not rerun on this standalone branch.