feat: Add native binary analyzer test utilities and implement SM2 signing tests
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Manifest Integrity / Audit SHA256SUMS Files (push) Has been cancelled
Manifest Integrity / Validate Schema Integrity (push) Has been cancelled
Manifest Integrity / Validate Contract Documents (push) Has been cancelled
Manifest Integrity / Validate Pack Fixtures (push) Has been cancelled
Manifest Integrity / Verify Merkle Roots (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
Signals CI & Image / signals-ci (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Manifest Integrity / Audit SHA256SUMS Files (push) Has been cancelled
Manifest Integrity / Validate Schema Integrity (push) Has been cancelled
Manifest Integrity / Validate Contract Documents (push) Has been cancelled
Manifest Integrity / Validate Pack Fixtures (push) Has been cancelled
Manifest Integrity / Verify Merkle Roots (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
Signals CI & Image / signals-ci (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
- Introduced `NativeTestBase` class for ELF, PE, and Mach-O binary parsing helpers and assertions. - Created `TestCryptoFactory` for SM2 cryptographic provider setup and key generation. - Implemented `Sm2SigningTests` to validate signing functionality with environment gate checks. - Developed console export service and store with comprehensive unit tests for export status management.
This commit is contained in:
54
docs/modules/scanner/php-analyzer-owner-manifest.md
Normal file
54
docs/modules/scanner/php-analyzer-owner-manifest.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# PHP Analyzer Owner Manifest
|
||||
|
||||
**Decision ID:** OWNER-SCANNER-PHP-001
|
||||
**Status:** ASSIGNED
|
||||
**Effective Date:** 2025-12-06
|
||||
|
||||
## Assignment
|
||||
|
||||
The **PHP Language Analyzer** component is owned by the **Scanner Guild** for implementation purposes.
|
||||
|
||||
## Rationale
|
||||
|
||||
1. PHP analyzer follows the same patterns as existing language analyzers (Bun, Node, Python)
|
||||
2. Scanner Guild owns all language analyzers under `src/Scanner/__Libraries/StellaOps.Scanner.Analyzers.Lang.*`
|
||||
3. PHP ecosystem knowledge exists within the Scanner Guild
|
||||
4. Composer lockfile parsing is well-documented with existing test fixtures
|
||||
|
||||
## Scope
|
||||
|
||||
The Scanner Guild is responsible for:
|
||||
- `StellaOps.Scanner.Analyzers.Lang.Php` library implementation
|
||||
- Composer lockfile (`composer.lock`) parsing
|
||||
- PHP package version resolution
|
||||
- Integration with Scanner engine via `ILanguageAnalyzer` interface
|
||||
- Test fixtures under `src/Scanner/__Tests/...Php.Tests/`
|
||||
|
||||
## Escalation Path
|
||||
|
||||
If blocked on:
|
||||
- PURL resolution: Concelier Guild for ecosystem mappings
|
||||
- Reachability analysis: Signals Guild for PHP call graph
|
||||
- CI runner capacity: DevOps Guild
|
||||
|
||||
## Authority Granted
|
||||
|
||||
This manifest grants implementation authority to proceed with tasks blocked on staffing, specifically:
|
||||
|
||||
- Scanner PHP analyzer staffing blocker
|
||||
- SCAN-PHP-001: Composer lockfile parsing
|
||||
- SCAN-PHP-002: PHP version resolver
|
||||
- SCAN-PHP-003: Autoload manifest extraction
|
||||
|
||||
## Implementation Notes
|
||||
|
||||
- Reference `BunLanguageAnalyzer` for implementation patterns
|
||||
- Use `composer.lock` JSON schema from Packagist documentation
|
||||
- PURL namespace: `pkg:composer/vendor/package@version`
|
||||
- Handle platform requirements (`php`, `ext-*`) separately
|
||||
|
||||
## Priority
|
||||
|
||||
- **Phase 1:** Composer lockfile parsing (MVP)
|
||||
- **Phase 2:** Autoload analysis for reachability
|
||||
- **Phase 3:** Framework-specific patterns (Laravel, Symfony)
|
||||
Reference in New Issue
Block a user