Skip to content

Add explicit PAM password-policy remediation - #223

Open
Witold Krecicki (wupeka) wants to merge 7 commits into
mainfrom
wupeka/pr207-pam
Open

Witold Krecicki (wupeka) wants to merge 7 commits into
mainfrom
wupeka/pr207-pam

Conversation

@wupeka

Copy link
Copy Markdown
Contributor

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 main directly.

Validation: git diff --check passed. Regenerated the engine interface with no unstaged changes. Unit tests were not rerun on this standalone branch.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Test Results

    1 files   -     10     98 suites   - 947   37s ⏱️ - 1m 51s
1 853 tests +    84  1 851 ✅ +    83  2 💤 +1  0 ❌ ±0 
1 853 runs   - 17 606  1 851 ✅  - 17 597  2 💤  - 9  0 ❌ ±0 

Results for commit 380b718. ± Comparison against base commit 1e19b2a.

♻️ This comment has been updated with latest results.

@wupeka
Witold Krecicki (wupeka) marked this pull request as ready for review December 1, 2026 09:28
@wupeka
Witold Krecicki (wupeka) requested review from a team and a balanced review from Copilot December 1, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@wupeka

Copy link
Copy Markdown
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>

Copilot AI commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Copilot resolve the merge conflicts in this pull request

Merged main and resolved the conflict in 8b40753. Diff checks passed; tests could not run because vcpkg is uninitialized. CodeQL timed out.

@wupeka
Witold Krecicki (wupeka) added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 3, 2026
@wupeka

Copy link
Copy Markdown
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>

Copilot AI commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Copilot resolve the merge conflicts in this pull request

Merged main and resolved the conflict in 380b718. Diff and schema checks passed; local tests require vcpkg, and CodeQL timed out.

@wupeka
Witold Krecicki (wupeka) added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 3, 2026
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.

5 participants