1fd37a2843
Phase 23 (v1.7) — tagging standards and security adapters.
* schemas/tagging-standard.json (D-054): canonical required-tags schema
(acdl:owner, acdl:contract, acdl:environment, acdl:cost-center).
* adapters/terraform/policy/custom_rules/acdl_tagging.py: Checkov custom
rule (ACDL_TAG_NAMING) loaded via --external-checks-dir; closes D-043
(synthetic SKIPPED record replaced by real PASS/FAIL records).
* checkov_adapter.py: removed _emit_tag_naming_skipped(), added
ACDL_TAG_NAMING to RULE_MAP, updated docstring.
* scripts/run_platform.sh: both Checkov invocations pass
--external-checks-dir adapters/terraform/policy/custom_rules/.
* adapters/wiz/ (D-052): Wiz adapter translating issue records to
PolicyCheckResult (engine: "wiz"); graceful degradation emits
WIZ_NOT_CONFIGURED SKIPPED when unconfigured; is_configured() gate.
* adapters/kyverno/ (D-053): Kyverno adapter translating PolicyReport
results to PolicyCheckResult (engine: "kyverno"); ready but inactive
for Terraform-only stacks; 3 sample ClusterPolicies in policies/.
* schemas/policy_check_result.schema.json: engine enum += "wiz".
* tests: fixtures + test_wiz_adapter.py (8 tests) + test_kyverno_adapter.py
(13 tests); updated test_checkov_adapter.py to not expect the removed
synthetic ACDL_TAG_NAMING SKIPPED record.
* scripts/run_ci.sh: lint stage compiles the new adapter modules.
202 tests pass; CI pipeline OK (lint + test + check-only).
Deviations:
- Wiz adapt() had an AttributeError on bare-list top-level input
(data.get() on a list); fixed to dispatch on isinstance(data, list)
before calling .get(). No spec change — bare-list handling is implied
by the original docstring's "data if isinstance(data, list)" branch.
- Kyverno _to_pcr({}) defaults result to "skipped" (entry.get("result",
"skip") -> "skip"), not "error"; test expectation corrected. Added an
explicit unknown-result-string test to cover the "error" fallback.
---ci---
project: acdl
phase: 23
milestone: v1.7
status: execute
---/ci---
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"issues": [
|
|
{
|
|
"id": "wiz-issue-001",
|
|
"title": "Publicly exposed S3 bucket with sensitive data",
|
|
"severity": "CRITICAL",
|
|
"status": "OPEN",
|
|
"control": {
|
|
"id": "wiz-control-public-s3",
|
|
"name": "Public S3 bucket exposure"
|
|
},
|
|
"entity": {
|
|
"id": "arn:aws:s3:::acdl-leaked-bucket",
|
|
"name": "acdl-leaked-bucket",
|
|
"cloudPlatform": "AWS",
|
|
"subscriptionId": "111111111111"
|
|
}
|
|
},
|
|
{
|
|
"id": "wiz-issue-002",
|
|
"title": "IAM role with overly broad permissions",
|
|
"severity": "HIGH",
|
|
"status": "RESOLVED",
|
|
"control": {
|
|
"id": "wiz-control-iam-broad",
|
|
"name": "Overly broad IAM role"
|
|
},
|
|
"entity": {
|
|
"id": "arn:aws:iam::111111111111:role/acdl-broad-role",
|
|
"name": "acdl-broad-role",
|
|
"cloudPlatform": "AWS",
|
|
"subscriptionId": "111111111111"
|
|
}
|
|
},
|
|
{
|
|
"id": "wiz-issue-003",
|
|
"title": "Security group allows 0.0.0.0/0 on port 22",
|
|
"severity": "MEDIUM",
|
|
"status": "IN_PROGRESS",
|
|
"control": {
|
|
"id": "wiz-control-ssh-open",
|
|
"name": "SSH open to the world"
|
|
},
|
|
"entity": {
|
|
"id": "arn:aws:ec2:us-east-1:111111111111:security-group/sg-abcdef",
|
|
"name": "acdl-ssh-sg",
|
|
"cloudPlatform": "AWS",
|
|
"subscriptionId": "111111111111"
|
|
}
|
|
}
|
|
]
|
|
} |