Repository navigation
Add explicit PAM password-policy remediation - #223
Open
Witold Krecicki (wupeka) wants to merge 7 commits into
Open
Witold Krecicki (wupeka) wants to merge 7 commits into
Witold Krecicki (wupeka) wants to merge 7 commits into
Conversation
Witold Krecicki (wupeka)
marked this pull request as ready for review
December 1, 2026 09:28
Witold Krecicki (wupeka)
requested review from
a team
and
a balanced review from Copilot
December 1, 2026 09:28
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved flaws allow PAM policy bypass and incorrect lockout enforcement, risk dconf database corruption during rollback, and can crash evaluation on malformed options.
4 open issues
What changed in this PR
Adds explicit PAM password-policy auditing and remediation to the kompli engine, with optional vendor-managed integration. This isolates the password-policy work from the broader remediation changes in #207.
Changes:
- Adds allowlisted password-quality, lockout, and password-history settings.
- Introduces opt-in PAM integration with provider-preservation checks, rollback, and policy database/runtime lifecycle handling.
- Registers the procedure and schemas, adds unit and isolated PAM integration tests, and documents prerequisites and limitations.
| File | Description |
|---|---|
src/engine/tests/procedures/PasswordPolicyOptionTest.cpp |
Tests configuration updates, vendor integration, lifecycle handling, and rollback. |
src/engine/tests/PamIntegrationTest.cpp |
Adds isolated native PAM dispatch and policy tests. |
src/engine/tests/CMakeLists.txt |
Registers procedure tests and the native PAM test executable. |
src/engine/procedures/PasswordPolicyOption.schema.json |
Defines audit and remediation input schemas. |
src/engine/procedures/PasswordPolicyOption.h |
Declares parameters and procedure entry points. |
src/engine/procedures/PasswordPolicyOption.cpp |
Implements policy validation, remediation, vendor integration, and rollback. |
src/engine/ProcedureMap.h |
Adds generated parameter bindings. |
src/engine/ProcedureMap.cpp |
Registers audit and remediation handlers. |
src/engine/payload.schema.json |
Exposes the procedure in payload schemas. |
src/engine/CMakeLists.txt |
Includes the implementation and schema in the build. |
docs/architecture.md |
Documents behavior, opt-in integration, and operational prerequisites. |
Review effort: Balanced
Krzysztof Kanas (kkanas)
approved these changes
Dec 2, 2026
Keep the distribution PAM and chrooted crypt scenarios in CTest with UBSan, independently of the fully instrumented remediation engine tests.
Witold Krecicki (wupeka)
force-pushed
the
wupeka/pr207-pam
branch
from
December 2, 2026 14:50
3775708 to
99731a4
Compare
Contributor
Author
|
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>
Krzysztof Kanas (kkanas)
approved these changes
Dec 3, 2026
Contributor
Witold Krecicki (wupeka)
enabled auto-merge
December 3, 2026 11:19
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Dec 3, 2026
Witold Krecicki (wupeka)
enabled auto-merge
December 3, 2026 13:43
Contributor
Author
|
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>
Contributor
Daniel Szot (danielszot)
approved these changes
Dec 3, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add explicit password-policy remediation with opt-in vendor-managed PAM integration. Includes configuration, privilege-sensitive lifecycle, and isolated PAM 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.