@marinjursic/prc-linux-arm64 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +335 -0
- package/bin/THIRD_PARTY_NOTICES.md +74 -0
- package/bin/adapters/checkov-v3.3.8.yaml +50 -0
- package/bin/adapters/gitleaks-v8.30.0.yaml +63 -0
- package/bin/adapters/grype-v0.116.1.yaml +58 -0
- package/bin/adapters/syft-v1.51.0.yaml +54 -0
- package/bin/catalog/assertions/core-repository.yaml +625 -0
- package/bin/catalog/assertions/iac.yaml +24 -0
- package/bin/catalog/assertions/supply-chain.yaml +45 -0
- package/bin/catalog/control-contracts.json +1 -0
- package/bin/catalog/control-id-registry.json +110470 -0
- package/bin/catalog/objectives/core-repository.yaml +243 -0
- package/bin/catalog/objectives/iac.yaml +13 -0
- package/bin/catalog/objectives/supply-chain.yaml +13 -0
- package/bin/catalog/profiles/api.yaml +12 -0
- package/bin/catalog/profiles/core-repository.yaml +49 -0
- package/bin/catalog/profiles/iac.yaml +18 -0
- package/bin/catalog/profiles/kubernetes.yaml +15 -0
- package/bin/catalog/profiles/quick.yaml +27 -0
- package/bin/catalog/profiles/supply-chain.yaml +20 -0
- package/bin/docs/architecture/adapters.md +380 -0
- package/bin/docs/architecture/agent-providers.md +188 -0
- package/bin/docs/architecture/applicability.md +80 -0
- package/bin/docs/architecture/catalog-integrity.md +85 -0
- package/bin/docs/architecture/evidence-and-results.md +154 -0
- package/bin/docs/architecture/execution-plans.md +61 -0
- package/bin/docs/architecture/product-contract.md +76 -0
- package/bin/docs/architecture/publisher-trust.md +68 -0
- package/bin/docs/architecture/remediation-contract.md +113 -0
- package/bin/docs/architecture/trust-model.md +95 -0
- package/bin/docs/assets/hero.svg +37 -0
- package/bin/docs/assets/logo.svg +13 -0
- package/bin/docs/assets/production-readiness-scan-demo-poster.png +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.gif +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.mp4 +0 -0
- package/bin/docs/assets/social-card.png +0 -0
- package/bin/docs/assets/social-card.svg +40 -0
- package/bin/docs/checklists/00-readiness-principle.md +17 -0
- package/bin/docs/checklists/01-release-foundations.md +91 -0
- package/bin/docs/checklists/02-product-risk-architecture.md +136 -0
- package/bin/docs/checklists/03-source-build-supply-chain.md +97 -0
- package/bin/docs/checklists/04-environments-quality-experience.md +226 -0
- package/bin/docs/checklists/05-application-security.md +320 -0
- package/bin/docs/checklists/06-data-privacy-performance.md +166 -0
- package/bin/docs/checklists/07-reliability-operations.md +355 -0
- package/bin/docs/checklists/08-maintenance-vendors-compliance.md +112 -0
- package/bin/docs/checklists/09-conditional-modules.md +229 -0
- package/bin/docs/checklists/10-evidence-and-decision.md +111 -0
- package/bin/docs/engineering/00-overview.md +51 -0
- package/bin/docs/engineering/01-governance-and-foundations.md +919 -0
- package/bin/docs/engineering/02-product-and-requirements.md +186 -0
- package/bin/docs/engineering/03-user-experience-web-and-content.md +1352 -0
- package/bin/docs/engineering/04-architecture-and-design.md +387 -0
- package/bin/docs/engineering/05-code-quality-and-implementation.md +1103 -0
- package/bin/docs/engineering/06-application-services-and-apis.md +476 -0
- package/bin/docs/engineering/07-data-and-information-lifecycle.md +1009 -0
- package/bin/docs/engineering/08-security-and-cryptography.md +1215 -0
- package/bin/docs/engineering/09-privacy-and-data-protection.md +205 -0
- package/bin/docs/engineering/10-verification-and-testing.md +841 -0
- package/bin/docs/engineering/11-developer-experience-platform-and-delivery.md +1013 -0
- package/bin/docs/engineering/12-operations-sre-and-support.md +795 -0
- package/bin/docs/engineering/13-documentation-and-knowledge.md +349 -0
- package/bin/docs/engineering/14-trust-safety-and-ecosystems.md +330 -0
- package/bin/docs/engineering/15-ai-ml-and-ai-assisted-development.md +785 -0
- package/bin/docs/engineering/16-specialized-domains-and-release-assurance.md +775 -0
- package/bin/docs/engineering/source-manifest.md +479 -0
- package/bin/docs/guides/ai-assisted-review.md +61 -0
- package/bin/docs/guides/getting-started.md +78 -0
- package/bin/docs/index.md +66 -0
- package/bin/docs/prompts/evidence-challenge.md +26 -0
- package/bin/docs/prompts/full-readiness-review.md +34 -0
- package/bin/docs/prompts/release-diff-review.md +31 -0
- package/bin/docs/records/evidence-record.md +42 -0
- package/bin/docs/records/go-no-go-decision.md +63 -0
- package/bin/docs/records/release-assessment.md +124 -0
- package/bin/docs/records/risk-exception.md +64 -0
- package/bin/docs/references.md +52 -0
- package/bin/docs/scanner/ai-control-review.md +208 -0
- package/bin/docs/scanner/benchmarks.md +122 -0
- package/bin/docs/scanner/cli-contract.md +130 -0
- package/bin/docs/scanner/configuration.md +101 -0
- package/bin/docs/scanner/control-contracts.md +47 -0
- package/bin/docs/scanner/core-repository.md +62 -0
- package/bin/docs/scanner/diff-and-invalidation.md +79 -0
- package/bin/docs/scanner/doctor.md +71 -0
- package/bin/docs/scanner/getting-started.md +355 -0
- package/bin/docs/scanner/go-http-timeouts.md +96 -0
- package/bin/docs/scanner/infrastructure-policy.md +64 -0
- package/bin/docs/scanner/kubernetes-workloads.md +63 -0
- package/bin/docs/scanner/mcp-agent-integration.md +138 -0
- package/bin/docs/scanner/openapi-contracts.md +75 -0
- package/bin/docs/scanner/private-key-armor.md +44 -0
- package/bin/docs/scanner/releases.md +160 -0
- package/bin/docs/scanner/remediation.md +273 -0
- package/bin/docs/scanner/risk-exceptions.md +52 -0
- package/bin/docs/scanner/security-walkthrough.md +236 -0
- package/bin/docs/scanner/state-and-history.md +113 -0
- package/bin/docs/scanner/supply-chain.md +132 -0
- package/bin/docs/scanner/test-discovery.md +60 -0
- package/bin/docs/stylesheets/extra.css +183 -0
- package/bin/fixtures/benchmarks/core-native/suite-comprehensive.yaml +302 -0
- package/bin/fixtures/benchmarks/core-native/suite.yaml +59 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/app.go +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/conflict-template/app.js +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-risky-template/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-valid/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-missing/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/empty-manifest-template/package.json +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/final-newline-template/app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/CODEOWNERS +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/dependabot.yml +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/workflows/validate.yml +15 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CODE_OF_CONDUCT.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CONTRIBUTING.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/LICENSE +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/SECURITY.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/tests/example.test.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/server.go +18 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/client.go +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/client.go +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/client.go +22 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/hazards_test.go +8 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-risky-template/deployment.yaml +27 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-valid/deployment.yaml +26 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-ids-risky-template/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-responses-risky-template/openapi.yaml +11 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-malformed-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-risky-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-valid/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/private-key-template/deploy.pem +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/readme-missing/fixture.txt +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package.json +4 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/tests/test_app.py +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/tests/test_app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-malformed/.github/workflows/validate.yml +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-no-jobs/.github/workflows/empty.yml +9 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-risky/.github/workflows/risky.yml +10 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-valid/.github/workflows/validate.yml +14 -0
- package/bin/packs/core-foundation.yaml +25 -0
- package/bin/packs/core-native.yaml +59 -0
- package/bin/prc +0 -0
- package/bin/schemas/adapter-execution-v0.1.schema.json +101 -0
- package/bin/schemas/adapter-execution-v0.2.schema.json +128 -0
- package/bin/schemas/adapter-execution.schema.json +145 -0
- package/bin/schemas/adapter-fixture-report.schema.json +59 -0
- package/bin/schemas/adapter-fixture-suite.schema.json +104 -0
- package/bin/schemas/adapter-manifest-v0.1.schema.json +55 -0
- package/bin/schemas/adapter-manifest-v0.2.schema.json +122 -0
- package/bin/schemas/adapter-manifest-v0.3.schema.json +172 -0
- package/bin/schemas/adapter-manifest.schema.json +299 -0
- package/bin/schemas/adapter-message.schema.json +136 -0
- package/bin/schemas/adapter-registry-report.schema.json +13 -0
- package/bin/schemas/adapter-registry.schema.json +47 -0
- package/bin/schemas/agent-execution-v0.1.schema.json +26 -0
- package/bin/schemas/agent-execution.schema.json +26 -0
- package/bin/schemas/agent-failure-v0.1.schema.json +102 -0
- package/bin/schemas/agent-failure.schema.json +102 -0
- package/bin/schemas/agent-output-v0.1.schema.json +36 -0
- package/bin/schemas/agent-output.schema.json +36 -0
- package/bin/schemas/agent-task-v0.1.schema.json +44 -0
- package/bin/schemas/agent-task.schema.json +46 -0
- package/bin/schemas/assertion-catalog.schema.json +69 -0
- package/bin/schemas/benchmark-report.schema.json +94 -0
- package/bin/schemas/benchmark-suite.schema.json +116 -0
- package/bin/schemas/catalog-bundle.schema.json +27 -0
- package/bin/schemas/catalog-manifest.schema.json +23 -0
- package/bin/schemas/checkov-iac-policy-report.schema.json +82 -0
- package/bin/schemas/control-contracts.schema.json +44 -0
- package/bin/schemas/control-review-output.schema.json +51 -0
- package/bin/schemas/doctor.schema.json +53 -0
- package/bin/schemas/evidence-v0.1.schema.json +21 -0
- package/bin/schemas/evidence.schema.json +21 -0
- package/bin/schemas/finding-v0.1.schema.json +70 -0
- package/bin/schemas/finding.schema.json +70 -0
- package/bin/schemas/fix-contract-v0.1.schema.json +35 -0
- package/bin/schemas/fix-contract-v0.2.schema.json +46 -0
- package/bin/schemas/fix-contract-v0.3.schema.json +49 -0
- package/bin/schemas/fix-contract.schema.json +49 -0
- package/bin/schemas/grype-vulnerability-report.schema.json +88 -0
- package/bin/schemas/history.schema.json +37 -0
- package/bin/schemas/invalidation.schema.json +86 -0
- package/bin/schemas/inventory-v0.1.schema.json +42 -0
- package/bin/schemas/inventory-v0.2.schema.json +95 -0
- package/bin/schemas/inventory-v0.3.schema.json +139 -0
- package/bin/schemas/inventory.schema.json +139 -0
- package/bin/schemas/objective-catalog.schema.json +62 -0
- package/bin/schemas/pack-report.schema.json +16 -0
- package/bin/schemas/pack.schema.json +53 -0
- package/bin/schemas/plan-v0.1.schema.json +31 -0
- package/bin/schemas/plan-v0.2.schema.json +32 -0
- package/bin/schemas/plan-v0.3.schema.json +44 -0
- package/bin/schemas/plan-v0.4.schema.json +48 -0
- package/bin/schemas/plan-v0.5.schema.json +49 -0
- package/bin/schemas/plan-v0.6.schema.json +137 -0
- package/bin/schemas/plan.schema.json +137 -0
- package/bin/schemas/profile.schema.json +42 -0
- package/bin/schemas/project-config.schema.json +128 -0
- package/bin/schemas/release-manifest-v0.1.schema.json +86 -0
- package/bin/schemas/release-manifest-v0.2.schema.json +146 -0
- package/bin/schemas/release-manifest-v0.3.schema.json +146 -0
- package/bin/schemas/release-manifest.schema.json +6 -0
- package/bin/schemas/remediation-candidate-v0.1.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.2.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.3.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.4.schema.json +69 -0
- package/bin/schemas/remediation-candidate.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.1.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.2.schema.json +78 -0
- package/bin/schemas/remediation-run-v0.3.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.4.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.5.schema.json +131 -0
- package/bin/schemas/remediation-run-v0.6.schema.json +143 -0
- package/bin/schemas/remediation-run-v0.7.schema.json +160 -0
- package/bin/schemas/remediation-run-v0.8.schema.json +161 -0
- package/bin/schemas/remediation-run.schema.json +161 -0
- package/bin/schemas/risk-exception-verification.schema.json +17 -0
- package/bin/schemas/risk-exception.schema.json +137 -0
- package/bin/schemas/run-result-v0.1.schema.json +54 -0
- package/bin/schemas/run-result-v0.10.schema.json +64 -0
- package/bin/schemas/run-result-v0.11.schema.json +146 -0
- package/bin/schemas/run-result-v0.2.schema.json +60 -0
- package/bin/schemas/run-result-v0.3.schema.json +52 -0
- package/bin/schemas/run-result-v0.4.schema.json +52 -0
- package/bin/schemas/run-result-v0.5.schema.json +60 -0
- package/bin/schemas/run-result-v0.6.schema.json +61 -0
- package/bin/schemas/run-result-v0.7.schema.json +61 -0
- package/bin/schemas/run-result-v0.8.schema.json +61 -0
- package/bin/schemas/run-result-v0.9.schema.json +77 -0
- package/bin/schemas/run-result.schema.json +165 -0
- package/bin/schemas/signature-verification.schema.json +22 -0
- package/bin/schemas/signature.schema.json +18 -0
- package/bin/schemas/state-check-v0.1.schema.json +27 -0
- package/bin/schemas/state-check.schema.json +28 -0
- package/bin/schemas/trust-store.schema.json +50 -0
- package/bin/schemas/verification-execution-v0.1.schema.json +105 -0
- package/bin/schemas/verification-execution.schema.json +105 -0
- package/bin/schemas/version-v0.1.schema.json +27 -0
- package/bin/schemas/version.schema.json +27 -0
- package/manifest.json +9 -0
- package/package.json +28 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/finding-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Finding v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"id",
|
|
10
|
+
"fingerprint",
|
|
11
|
+
"assertion_id",
|
|
12
|
+
"control_ids",
|
|
13
|
+
"title",
|
|
14
|
+
"summary",
|
|
15
|
+
"severity",
|
|
16
|
+
"gate",
|
|
17
|
+
"remediation_class",
|
|
18
|
+
"subject",
|
|
19
|
+
"locations",
|
|
20
|
+
"evidence_ids"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema_version": {"const": "prc.finding/v0.1"},
|
|
24
|
+
"id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
25
|
+
"fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
26
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
27
|
+
"control_ids": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"items": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"}
|
|
32
|
+
},
|
|
33
|
+
"title": {"type": "string", "minLength": 1},
|
|
34
|
+
"summary": {"type": "string", "minLength": 1},
|
|
35
|
+
"severity": {"enum": ["info", "low", "medium", "high", "critical"]},
|
|
36
|
+
"gate": {"enum": ["advisory", "required", "no-go"]},
|
|
37
|
+
"remediation_class": {"enum": ["R0", "R1", "R2", "R3", "R4", "R5", "R6"]},
|
|
38
|
+
"subject": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["kind", "id", "inventory_digest"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"kind": {"enum": ["repository", "project", "component", "artifact", "environment", "endpoint"]},
|
|
44
|
+
"id": {"type": "string", "minLength": 1},
|
|
45
|
+
"inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"locations": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"maxItems": 4096,
|
|
51
|
+
"uniqueItems": true,
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["path"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"path": {"type": "string", "minLength": 1},
|
|
58
|
+
"line": {"type": "integer", "minimum": 0},
|
|
59
|
+
"column": {"type": "integer", "minimum": 0}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"evidence_ids": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"maxItems": 4096,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/finding.schema.json",
|
|
4
|
+
"title": "Production Readiness Finding v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"id",
|
|
10
|
+
"fingerprint",
|
|
11
|
+
"assertion_id",
|
|
12
|
+
"control_ids",
|
|
13
|
+
"title",
|
|
14
|
+
"summary",
|
|
15
|
+
"severity",
|
|
16
|
+
"gate",
|
|
17
|
+
"remediation_class",
|
|
18
|
+
"subject",
|
|
19
|
+
"locations",
|
|
20
|
+
"evidence_ids"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema_version": {"const": "prc.finding/v0.1"},
|
|
24
|
+
"id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
25
|
+
"fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
26
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
27
|
+
"control_ids": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"items": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"}
|
|
32
|
+
},
|
|
33
|
+
"title": {"type": "string", "minLength": 1},
|
|
34
|
+
"summary": {"type": "string", "minLength": 1},
|
|
35
|
+
"severity": {"enum": ["info", "low", "medium", "high", "critical"]},
|
|
36
|
+
"gate": {"enum": ["advisory", "required", "no-go"]},
|
|
37
|
+
"remediation_class": {"enum": ["R0", "R1", "R2", "R3", "R4", "R5", "R6"]},
|
|
38
|
+
"subject": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["kind", "id", "inventory_digest"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"kind": {"enum": ["repository", "project", "component", "artifact", "environment", "endpoint"]},
|
|
44
|
+
"id": {"type": "string", "minLength": 1},
|
|
45
|
+
"inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"locations": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"maxItems": 4096,
|
|
51
|
+
"uniqueItems": true,
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["path"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"path": {"type": "string", "minLength": 1},
|
|
58
|
+
"line": {"type": "integer", "minimum": 0},
|
|
59
|
+
"column": {"type": "integer", "minimum": 0}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"evidence_ids": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"maxItems": 4096,
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/fix-contract-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Fix Contract v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "baseline_run_id", "baseline_inventory_digest", "assertion_id", "control_ids", "goal", "fixer_id", "remediation_class", "allowed_paths", "protected_paths", "network", "max_changed_lines", "max_files", "max_attempts", "acceptance"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.fix-contract/v0.1"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"baseline_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
12
|
+
"baseline_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
14
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
15
|
+
"goal": {"type": "string", "minLength": 1},
|
|
16
|
+
"fixer_id": {"type": "string", "pattern": "^[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
17
|
+
"remediation_class": {"enum": ["R1", "R2"]},
|
|
18
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
19
|
+
"proposal_task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
20
|
+
"proposal_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
21
|
+
"allowed_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
22
|
+
"protected_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
23
|
+
"network": {"const": "deny"},
|
|
24
|
+
"max_changed_lines": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
25
|
+
"max_files": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
26
|
+
"max_attempts": {"const": 1},
|
|
27
|
+
"acceptance": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}}
|
|
28
|
+
},
|
|
29
|
+
"allOf": [
|
|
30
|
+
{
|
|
31
|
+
"if": {"properties": {"remediation_class": {"const": "R2"}}, "required": ["remediation_class"]},
|
|
32
|
+
"then": {"required": ["provider", "proposal_task_id", "proposal_sha256"]}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/fix-contract-v0.2.schema.json",
|
|
4
|
+
"title": "Production Readiness Fix Contract v0.2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "baseline_run_id", "baseline_inventory_digest", "assertion_id", "control_ids", "goal", "fixer_id", "remediation_class", "allowed_paths", "protected_paths", "network", "max_changed_lines", "max_files", "attempt", "max_attempts", "acceptance"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.fix-contract/v0.2"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"baseline_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
12
|
+
"baseline_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"configuration_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"project_id": {"type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62})$"},
|
|
15
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
16
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
17
|
+
"goal": {"type": "string", "minLength": 1},
|
|
18
|
+
"fixer_id": {"type": "string", "pattern": "^[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
19
|
+
"remediation_class": {"enum": ["R1", "R2"]},
|
|
20
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
21
|
+
"proposal_task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
22
|
+
"proposal_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
23
|
+
"allowed_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
24
|
+
"protected_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
25
|
+
"network": {"const": "deny"},
|
|
26
|
+
"max_changed_lines": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
27
|
+
"max_files": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
28
|
+
"attempt": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
29
|
+
"max_attempts": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
30
|
+
"acceptance": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}}
|
|
31
|
+
},
|
|
32
|
+
"allOf": [
|
|
33
|
+
{
|
|
34
|
+
"if": {"properties": {"remediation_class": {"const": "R2"}}, "required": ["remediation_class"]},
|
|
35
|
+
"then": {"required": ["provider", "proposal_task_id", "proposal_sha256"]}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"if": {"required": ["configuration_digest"]},
|
|
39
|
+
"then": {"required": ["project_id"]}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"if": {"required": ["project_id"]},
|
|
43
|
+
"then": {"required": ["configuration_digest"]}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/fix-contract-v0.3.schema.json",
|
|
4
|
+
"title": "Production Readiness Fix Contract v0.3",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "baseline_run_id", "baseline_inventory_digest", "finding_id", "finding_fingerprint", "assertion_id", "control_ids", "goal", "fixer_id", "remediation_class", "allowed_paths", "protected_paths", "network", "max_changed_lines", "max_files", "attempt", "max_attempts", "acceptance"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.fix-contract/v0.3"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"baseline_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
12
|
+
"baseline_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"finding_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"finding_fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"proposal_finding_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
16
|
+
"configuration_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
17
|
+
"project_id": {"type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62})$"},
|
|
18
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
19
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
20
|
+
"goal": {"type": "string", "minLength": 1},
|
|
21
|
+
"fixer_id": {"type": "string", "pattern": "^[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
22
|
+
"remediation_class": {"enum": ["R1", "R2"]},
|
|
23
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
24
|
+
"proposal_task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
25
|
+
"proposal_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
26
|
+
"allowed_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
27
|
+
"protected_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
28
|
+
"network": {"const": "deny"},
|
|
29
|
+
"max_changed_lines": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
30
|
+
"max_files": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
31
|
+
"attempt": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
32
|
+
"max_attempts": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
33
|
+
"acceptance": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}}
|
|
34
|
+
},
|
|
35
|
+
"allOf": [
|
|
36
|
+
{
|
|
37
|
+
"if": {"properties": {"remediation_class": {"const": "R2"}}, "required": ["remediation_class"]},
|
|
38
|
+
"then": {"required": ["provider", "proposal_task_id", "proposal_sha256", "proposal_finding_id"]}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"if": {"required": ["configuration_digest"]},
|
|
42
|
+
"then": {"required": ["project_id"]}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"if": {"required": ["project_id"]},
|
|
46
|
+
"then": {"required": ["configuration_digest"]}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/fix-contract.schema.json",
|
|
4
|
+
"title": "Production Readiness Fix Contract v0.3",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "baseline_run_id", "baseline_inventory_digest", "finding_id", "finding_fingerprint", "assertion_id", "control_ids", "goal", "fixer_id", "remediation_class", "allowed_paths", "protected_paths", "network", "max_changed_lines", "max_files", "attempt", "max_attempts", "acceptance"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.fix-contract/v0.3"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"baseline_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
12
|
+
"baseline_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"finding_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"finding_fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"proposal_finding_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
16
|
+
"configuration_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
17
|
+
"project_id": {"type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62})$"},
|
|
18
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
19
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
20
|
+
"goal": {"type": "string", "minLength": 1},
|
|
21
|
+
"fixer_id": {"type": "string", "pattern": "^[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
22
|
+
"remediation_class": {"enum": ["R1", "R2"]},
|
|
23
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
24
|
+
"proposal_task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
25
|
+
"proposal_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
26
|
+
"allowed_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
27
|
+
"protected_paths": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"}},
|
|
28
|
+
"network": {"const": "deny"},
|
|
29
|
+
"max_changed_lines": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
30
|
+
"max_files": {"type": "integer", "minimum": 1, "maximum": 1000},
|
|
31
|
+
"attempt": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
32
|
+
"max_attempts": {"type": "integer", "minimum": 1, "maximum": 10},
|
|
33
|
+
"acceptance": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}}
|
|
34
|
+
},
|
|
35
|
+
"allOf": [
|
|
36
|
+
{
|
|
37
|
+
"if": {"properties": {"remediation_class": {"const": "R2"}}, "required": ["remediation_class"]},
|
|
38
|
+
"then": {"required": ["provider", "proposal_task_id", "proposal_sha256", "proposal_finding_id"]}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"if": {"required": ["configuration_digest"]},
|
|
42
|
+
"then": {"required": ["project_id"]}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"if": {"required": ["project_id"]},
|
|
46
|
+
"then": {"required": ["configuration_digest"]}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/grype-vulnerability-report.schema.json",
|
|
4
|
+
"title": "PRC normalized Grype vulnerability report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "tool", "database", "findings"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {"const": "prc.grype-vulnerability-report/v1"},
|
|
10
|
+
"tool": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["name", "version"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {"const": "grype"},
|
|
16
|
+
"version": {"const": "0.116.1"}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"database": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["schema_version", "built", "archive_sha256", "epss_captured", "kev_captured", "nvd_captured"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schema_version": {"type": "string", "pattern": "^v6\\.[0-9]+\\.[0-9]+$"},
|
|
25
|
+
"built": {"type": "string", "format": "date-time"},
|
|
26
|
+
"archive_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
27
|
+
"epss_captured": {"type": "string", "format": "date-time"},
|
|
28
|
+
"kev_captured": {"type": "string", "format": "date-time"},
|
|
29
|
+
"nvd_captured": {"type": "string", "format": "date-time"}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"findings": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"maxItems": 10000,
|
|
35
|
+
"items": {"$ref": "#/$defs/finding"}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"boundedText": {"type": "string", "minLength": 1, "maxLength": 16384},
|
|
40
|
+
"finding": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"id", "aliases", "package_name", "package_version", "package_type", "package_url", "locations",
|
|
45
|
+
"severity", "cvss_score", "epss", "epss_percentile", "known_exploited", "known_ransomware_use",
|
|
46
|
+
"risk", "fix_state", "fixed_versions"
|
|
47
|
+
],
|
|
48
|
+
"properties": {
|
|
49
|
+
"id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{1,127}$"},
|
|
50
|
+
"aliases": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"maxItems": 129,
|
|
54
|
+
"uniqueItems": true,
|
|
55
|
+
"items": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{1,127}$"}
|
|
56
|
+
},
|
|
57
|
+
"package_name": {"$ref": "#/$defs/boundedText"},
|
|
58
|
+
"package_version": {"$ref": "#/$defs/boundedText"},
|
|
59
|
+
"package_type": {"type": "string", "pattern": "^[a-z][a-z0-9._-]{0,63}$"},
|
|
60
|
+
"package_url": {"type": "string", "minLength": 5, "maxLength": 16384, "pattern": "^pkg:"},
|
|
61
|
+
"locations": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"minItems": 1,
|
|
64
|
+
"maxItems": 256,
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": {"type": "string", "minLength": 1, "maxLength": 16384, "pattern": "^[^/]"}
|
|
67
|
+
},
|
|
68
|
+
"severity": {"enum": ["Unknown", "Negligible", "Low", "Medium", "High", "Critical"]},
|
|
69
|
+
"cvss_score": {"type": "number", "minimum": 0, "maximum": 10},
|
|
70
|
+
"cvss_vector": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
71
|
+
"epss": {"type": "number", "minimum": 0, "maximum": 1},
|
|
72
|
+
"epss_percentile": {"type": "number", "minimum": 0, "maximum": 1},
|
|
73
|
+
"epss_date": {"type": "string", "format": "date"},
|
|
74
|
+
"known_exploited": {"type": "boolean"},
|
|
75
|
+
"known_ransomware_use": {"type": "boolean"},
|
|
76
|
+
"risk": {"type": "number", "minimum": 0},
|
|
77
|
+
"fix_state": {"enum": ["fixed", "not-fixed", "wont-fix", "unknown"]},
|
|
78
|
+
"fixed_versions": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"maxItems": 256,
|
|
81
|
+
"uniqueItems": true,
|
|
82
|
+
"items": {"type": "string", "minLength": 1, "maxLength": 4096}
|
|
83
|
+
},
|
|
84
|
+
"description": {"type": "string", "minLength": 1, "maxLength": 65536}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/history.schema.json",
|
|
4
|
+
"title": "Production Readiness Checklist Run History v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "generated_at", "state_path", "runs"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.history/v0.1"},
|
|
10
|
+
"generated_at": {"type": "string", "format": "date-time"},
|
|
11
|
+
"state_path": {"type": "string", "minLength": 1},
|
|
12
|
+
"runs": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"maxItems": 1000,
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["run_id", "started_at", "completed_at", "target_name", "profile_id", "profile_version", "inventory_digest", "terminal_state", "pass_count", "fail_count", "blocked_count"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
21
|
+
"started_at": {"type": "string", "format": "date-time"},
|
|
22
|
+
"completed_at": {"type": "string", "format": "date-time"},
|
|
23
|
+
"target_name": {"type": "string", "minLength": 1},
|
|
24
|
+
"profile_id": {"type": "string", "pattern": "^prc/[a-z0-9-]+$"},
|
|
25
|
+
"profile_version": {"type": "string", "minLength": 1},
|
|
26
|
+
"inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
27
|
+
"configuration_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
28
|
+
"project_id": {"type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62})$"},
|
|
29
|
+
"terminal_state": {"enum": ["profile_satisfied", "machine_work_complete_manual_evidence_remaining", "assessment_incomplete", "environment_blocked", "no_go"]},
|
|
30
|
+
"pass_count": {"type": "integer", "minimum": 0},
|
|
31
|
+
"fail_count": {"type": "integer", "minimum": 0},
|
|
32
|
+
"blocked_count": {"type": "integer", "minimum": 0}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/invalidation.schema.json",
|
|
4
|
+
"title": "Production Readiness Evidence Invalidation Analysis v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "rules_version", "generated_at", "target_name", "base_run_id", "base_inventory_digest", "current_inventory_digest", "base_plan_digest", "current_plan_digest", "changed_dimensions", "changed_files", "assertions", "summary"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.invalidation/v0.1"},
|
|
10
|
+
"rules_version": {"const": "prc.invalidation-rules/v0.1"},
|
|
11
|
+
"generated_at": {"type": "string", "format": "date-time"},
|
|
12
|
+
"target_name": {"type": "string", "minLength": 1},
|
|
13
|
+
"base_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"base_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"current_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
16
|
+
"base_plan_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
17
|
+
"current_plan_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
18
|
+
"changed_dimensions": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"uniqueItems": true,
|
|
21
|
+
"items": {"enum": ["inventory_schema", "git_commit", "files", "source_files", "package_ecosystems", "manifests", "lock_files", "container_files", "symlinks", "ci", "infrastructure", "components", "relations", "facts", "declared_scope", "engine", "profile"]}
|
|
22
|
+
},
|
|
23
|
+
"changed_files": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["path", "change", "content_changed", "mode_changed"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"path": {"type": "string", "minLength": 1},
|
|
31
|
+
"change": {"enum": ["added", "modified", "deleted", "mode_changed"]},
|
|
32
|
+
"before_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
33
|
+
"after_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
34
|
+
"before_size": {"type": "integer", "minimum": 0},
|
|
35
|
+
"after_size": {"type": "integer", "minimum": 0},
|
|
36
|
+
"before_mode": {"type": "integer", "minimum": 0},
|
|
37
|
+
"after_mode": {"type": "integer", "minimum": 0},
|
|
38
|
+
"content_changed": {"type": "boolean"},
|
|
39
|
+
"mode_changed": {"type": "boolean"}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"assertions": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["assertion_id", "conclusion", "reuse_allowed", "fresh_evaluation_required", "relevant_changed_paths", "reasons"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"assertion_id": {"type": "string", "minLength": 1},
|
|
51
|
+
"previous_assessment": {"enum": ["pass", "fail", "unknown", "manual_review", "not_applicable", "stale", "conflicting"]},
|
|
52
|
+
"previous_applicability": {"enum": ["applicable", "not_applicable", "undetermined"]},
|
|
53
|
+
"current_applicability": {"enum": ["applicable", "not_applicable", "undetermined"]},
|
|
54
|
+
"conclusion": {"enum": ["invalidated", "unchanged_inputs", "new", "removed"]},
|
|
55
|
+
"reuse_allowed": {"type": "boolean"},
|
|
56
|
+
"fresh_evaluation_required": {"type": "boolean"},
|
|
57
|
+
"relevant_changed_paths": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
|
|
58
|
+
"reasons": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"required": ["code", "detail"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"code": {"type": "string", "pattern": "^[a-z0-9_]+$"},
|
|
66
|
+
"detail": {"type": "string", "minLength": 1}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"summary": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"required": ["invalidated", "unchanged_inputs", "reusable", "new", "removed"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"invalidated": {"type": "integer", "minimum": 0},
|
|
79
|
+
"unchanged_inputs": {"type": "integer", "minimum": 0},
|
|
80
|
+
"reusable": {"type": "integer", "minimum": 0},
|
|
81
|
+
"new": {"type": "integer", "minimum": 0},
|
|
82
|
+
"removed": {"type": "integer", "minimum": 0}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/inventory-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Inventory v0.1 (legacy)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "target_name", "digest", "file_count", "source_files", "package_ecosystems", "manifests", "lock_files", "ci", "files"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.inventory/v0.1"},
|
|
10
|
+
"target_name": {"type": "string", "minLength": 1},
|
|
11
|
+
"git_commit": {"type": "string", "pattern": "^[0-9a-f]{40,64}$"},
|
|
12
|
+
"digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"file_count": {"type": "integer", "minimum": 0},
|
|
14
|
+
"source_files": {"type": "integer", "minimum": 0},
|
|
15
|
+
"package_ecosystems": {"type": "array", "uniqueItems": true, "items": {"type": "string"}},
|
|
16
|
+
"manifests": {"type": "array", "uniqueItems": true, "items": {"type": "string"}},
|
|
17
|
+
"lock_files": {"type": "array", "uniqueItems": true, "items": {"type": "string"}},
|
|
18
|
+
"ci": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["github_actions"],
|
|
22
|
+
"properties": {"github_actions": {"type": "boolean"}}
|
|
23
|
+
},
|
|
24
|
+
"files": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {"$ref": "#/$defs/file"}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"file": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["path", "size", "sha256", "mode"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"path": {"type": "string"},
|
|
36
|
+
"size": {"type": "integer", "minimum": 0},
|
|
37
|
+
"sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
38
|
+
"mode": {"type": "integer", "minimum": 0, "maximum": 511}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|