Skip to content

Require pinned signer fingerprints for plugin verification - #8512

Merged
makr-code merged 3 commits into
developfrom
copilot/sec-02-pin-trusted-plugin-signers
Dec 1, 2026
Merged

makr-code merged 3 commits into
developfrom
copilot/sec-02-pin-trusted-plugin-signers

Conversation

@makr-code

@makr-code makr-code commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Author: "ThemisDB Team"
Created: "2026-10-09"
Last Updated: "2026-11-19"
Status: "active"
AI_Used: true
AI_Models: "unknown"
AI_Contributor: "GitHub Copilot"
Human_Review: false
Human_Author: "ThemisDB Team"

Exact model backend not verifiable from final document text alone.

Pull Request

Target Version (Required)

Target Version: [Unreleased]

Security hardening; no stable patch target is established for this change.


Description

SEC-02’s signer-pin enforcement already exists; this change adds regression coverage for empty pins and disabled verification, and aligns operator guidance and audit status with the implementation.

  • Coverage: The test suite now checks that empty pins reject a signed plugin and that a valid signed artifact is still rejected when verification is disabled. Existing cases cover pinned acceptance and unknown-signer denial.
  • Operations and traceability: Corrected the distinction between binary signer pins and manifest hash checks. Documented that pathname replacement is outside the pin guarantee if an untrusted principal can write plugin directories. Audit status remains in progress.
THEMIS_PLUGIN_TRUSTED_SIGNER_FINGERPRINTS=<64-character-sha256-certificate-fingerprint>

Linked Issues

Issue linking is handled separately.

Type of Change

Security regression tests and documentation; no production runtime behavior change.

Breaking Change Checklist

Not applicable; this change is non-breaking.

  • Plan the MAJOR version bump in VERSION and CMakeLists.txt.
  • Add a migration guide in docs/migration/.
  • Prepare the GitHub Discussions announcement (≥ 2 weeks before release).
  • Update the CHANGELOG ### Removed / ### Changed section.

Testing

  • Unit tests added/updated

  • Integration tests added/updated

  • Manual testing performed

  • Benchmarks run (if performance-sensitive change)

  • python3 /home/runner/work/ThemisDB/ThemisDB/tests/test_doc_metadata_gate.py — passed, 13 tests.

  • Focused C++ test was not run. CMake configuration stopped because fmt is unavailable; no test target was generated. Linux only; no platform pass is claimed.

Security Tiering Impact (for Runtime Changes)

  • Impacted tier(s): T5 Plugin Boundary

This PR does not change runtime behavior. The pathname verify-then-load limitation is documented; protecting plugin and cache directories from untrusted writes remains an operational requirement.

📚 Research & Knowledge (wenn applicable)

Based on scientific papers or best practices? No; this aligns documentation and tests with the existing plugin trust contract.

Relevante Quellen:

  • Paper: N/A
  • Best Practice: N/A
  • Architecture Decision: N/A

AI-Generated Code (KI-generierter Code)

  • Symbol-Referenzen mit GetSymbolReferences_CppTools geprüft (siehe .github/instructions/cpp-language-service-tools.instructions.md)
  • Keine rohen Pointer und kein new/delete ohne explizites Review eingeführt
  • RAII und Exception-Safety für neue/angepasste Pfade geprüft
  • Keine unnötig komplexen KI-Abstraktionen eingeführt
  • Performance-Metriken geprüft, falls Hotpath betroffen — kein Hotpath geändert

AI Review Workflow (Required for AI-assisted PRs)

  • Findings-first review performed with .github/prompts/pr-diff-findings-review.prompt.md
  • Security review performed for the security-sensitive plugin boundary
  • API impact review: N/A; no API or contract change
  • No Critical/High findings reported; the documented pathname replacement risk is Medium
  • Residual risks and follow-up actions documented
  • Severity policy applied according to .github/copilot/REVIEW_SEVERITY_POLICY.md

High-Finding Exception Record (only if High is accepted)

  • High-finding exception claimed in this PR

No High finding is being accepted.

Release Readiness Gate (Required for release-scoped changes)

Not release-scoped.

  • Review release readiness with .github/prompts/release-readiness-check.prompt.md for branch transition scope.
  • Validate branch governance against BRANCHING_STRATEGY.md and RELEASE_STRATEGY.md.
  • Validate versioning/changelog impact against VERSIONING.md and CHANGELOG.md.

Checklist

  • Code follows project style guidelines (clang-format / clang-tidy)
  • Self-review completed
  • Documentation updated
  • Update CHANGELOG.md under [Unreleased] — no runtime behavior change
  • No new warnings introduced — C++ target not built
  • Security-sensitive paths reviewed by security maintainer

Scanner and IntelliSense Gates

  • IntelliSense/Compiler: no new errors in changed files
  • clang-tidy/cppcheck: no new high-risk findings in changed files
  • Gap Scanner: no new critical findings in categories security, input_validation, query_correctness, distributed_consistency, concurrency, memory
  • Gap Scanner: no new high findings in the same categories (or explicitly approved)
  • Gap Scanner delta report attached (baseline vs current), not only absolute totals
  • New unknown scanner findings triaged (fixed, re-categorized, or justified)

Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:25

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.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot AI linked an issue Dec 1, 2026 that may be closed by this pull request
8 tasks
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@makr-code makr-code changed the title [WIP] Pin trusted plugin signers for security compliance Require pinned signer fingerprints for plugin verification Dec 1, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@makr-code
makr-code marked this pull request as ready for review December 1, 2026 17:37
@makr-code
makr-code merged commit 8425a9f into develop Dec 1, 2026
5 of 39 checks passed
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.

[SEC-02] Pin trusted plugin signers

3 participants