@radicaltools/mcp 0.2.0 → 0.3.1
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/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10321 -3964
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -0,0 +1,1386 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-supply-chain",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Software supply chain",
|
|
6
|
+
"description": "What goes into what we build and ship: vulnerable dependencies and their deadlines, what is pinned beyond the lockfile and where packages come from, build provenance (SLSA), SBOMs and base images.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"security",
|
|
9
|
+
"supply-chain",
|
|
10
|
+
"dependencies",
|
|
11
|
+
"sca",
|
|
12
|
+
"sbom",
|
|
13
|
+
"slsa",
|
|
14
|
+
"provenance",
|
|
15
|
+
"containers"
|
|
16
|
+
],
|
|
17
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
18
|
+
"concern": {
|
|
19
|
+
"id": "supply-chain",
|
|
20
|
+
"trigger": "LIST NODES WHERE external != true AND (type = \"container\" OR type = \"webapp\")",
|
|
21
|
+
"why": "we build and ship these elements from code, dependencies and base images we did not all write, so what may go into them and how their builds are trusted has to be decided.",
|
|
22
|
+
"group": "security"
|
|
23
|
+
},
|
|
24
|
+
"sources": [
|
|
25
|
+
{
|
|
26
|
+
"title": "SLSA v1.0, Security levels",
|
|
27
|
+
"url": "https://slsa.dev/spec/v1.0/levels"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "OpenSSF Scorecard",
|
|
31
|
+
"url": "https://scorecard.dev/"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "NIST SP 800-218, Secure Software Development Framework (SSDF) 1.1",
|
|
35
|
+
"url": "https://csrc.nist.gov/pubs/sp/800/218/final"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "NIST SP 800-190, Application Container Security Guide",
|
|
39
|
+
"url": "https://csrc.nist.gov/pubs/sp/800/190/final"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "OWASP Top 10 2021, A06 Vulnerable and Outdated Components",
|
|
43
|
+
"url": "https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "OWASP Docker Security Cheat Sheet",
|
|
47
|
+
"url": "https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "CIS Docker Benchmark",
|
|
51
|
+
"url": "https://www.cisecurity.org/benchmark/docker"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "CycloneDX specification",
|
|
55
|
+
"url": "https://cyclonedx.org/"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"title": "SPDX specification",
|
|
59
|
+
"url": "https://spdx.dev/"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"title": "OSV-Scanner documentation",
|
|
63
|
+
"url": "https://google.github.io/osv-scanner/"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"title": "Sigstore",
|
|
67
|
+
"url": "https://www.sigstore.dev/"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"title": "zizmor: static analysis for GitHub Actions",
|
|
71
|
+
"url": "https://docs.zizmor.sh/"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"templateParams": [
|
|
75
|
+
{
|
|
76
|
+
"key": "SCA",
|
|
77
|
+
"title": "Vulnerable dependencies",
|
|
78
|
+
"label": "What happens to a change that brings in a known vulnerability?",
|
|
79
|
+
"hint": "Blocking stops new vulnerabilities at the door but can stall work on a finding nobody can fix yet; deadlines alone let the backlog grow. The deadlines for vulnerable dependencies are decided here, for every element.",
|
|
80
|
+
"defaultValue": "gate",
|
|
81
|
+
"options": [
|
|
82
|
+
{
|
|
83
|
+
"value": "gate",
|
|
84
|
+
"label": "a blocked merge on high and critical findings with a fix",
|
|
85
|
+
"description": "A required check refuses a pull request that adds or upgrades to a dependency with a known high or critical vulnerability that has a fixed version; existing findings have deadlines. Pick it for anything internet-facing or holding personal or payment data."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"value": "sla",
|
|
89
|
+
"label": "a report on the pull request and a deadline to fix",
|
|
90
|
+
"description": "Findings are reported on the pull request and tracked as alerts but do not block; each severity has a deadline. Pick it for internal tools, or for a codebase with a large backlog you are working through before switching to blocking."
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "PINNING",
|
|
96
|
+
"title": "Pinning",
|
|
97
|
+
"label": "What is pinned beyond the package manager?",
|
|
98
|
+
"hint": "The lockfile and how it is installed are decided in the Dependency hygiene pack. This is about the rest of the build: CI actions, base images, downloaded tools, and where packages come from.",
|
|
99
|
+
"defaultValue": "hash",
|
|
100
|
+
"options": [
|
|
101
|
+
{
|
|
102
|
+
"value": "hash",
|
|
103
|
+
"label": "actions, images and downloads by digest",
|
|
104
|
+
"description": "CI actions pinned to full commit SHAs, base images to sha256 digests, downloaded tools to a checksum checked in the build; updates come as bot pull requests. Pick it for anything you ship to production; it is what OpenSSF Scorecard's Pinned-Dependencies checks."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"value": "proxy",
|
|
108
|
+
"label": "packages only from our registry proxy, held 7 days",
|
|
109
|
+
"description": "Builds fetch packages only through an internal proxy (Artifactory, Nexus, AWS CodeArtifact, Azure Artifacts) with no other egress, and a newly published release is served only after 7 days in public. Pick it in regulated environments or where malicious package releases are a demonstrated threat."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "none",
|
|
113
|
+
"label": "nothing more than the lockfile",
|
|
114
|
+
"description": "Actions and images are referenced by tag, and packages come from the public registries; only the lockfile pins, as decided in the Dependency hygiene pack. Pick it for prototypes and internal tools that never ship to production, and record it so that the first production deploy supersedes it."
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"key": "SLSA",
|
|
120
|
+
"title": "Build provenance",
|
|
121
|
+
"label": "Which SLSA build level do the builds reach?",
|
|
122
|
+
"hint": "Provenance says which source and which build produced an artifact; the higher the level, the harder it is to forge, and the more the deployment can refuse.",
|
|
123
|
+
"defaultValue": "l2",
|
|
124
|
+
"options": [
|
|
125
|
+
{
|
|
126
|
+
"value": "l1",
|
|
127
|
+
"label": "SLSA Build L1, provenance recorded",
|
|
128
|
+
"description": "The build records how each artifact was made (BuildKit provenance attestations), unsigned. Pick it as the first step for builds that are not yet on a hosted CI."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"value": "l2",
|
|
132
|
+
"label": "SLSA Build L2, signed provenance from a hosted build",
|
|
133
|
+
"description": "Builds run only on hosted CI, which signs the provenance (GitHub artifact attestations, GitLab SLSA provenance, cosign keyless); the deployment verifies it. Pick it for production services; it is a few lines of CI configuration."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"value": "l3",
|
|
137
|
+
"label": "SLSA Build L3, hardened and isolated builds",
|
|
138
|
+
"description": "Provenance is produced by an isolated job the build steps cannot influence (slsa-github-generator reusable workflows), and the cluster admits only images whose provenance verifies. Pick it for software others depend on, or where a tampered build would be catastrophic."
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "SBOM",
|
|
144
|
+
"title": "SBOM",
|
|
145
|
+
"label": "What is the SBOM for?",
|
|
146
|
+
"hint": "A software bill of materials answers \"are we affected?\" in minutes instead of days, but only if someone keeps it and looks.",
|
|
147
|
+
"defaultValue": "internal",
|
|
148
|
+
"options": [
|
|
149
|
+
{
|
|
150
|
+
"value": "internal",
|
|
151
|
+
"label": "answering \"are we affected?\" ourselves",
|
|
152
|
+
"description": "A CycloneDX SBOM of every deployed version is loaded into OWASP Dependency-Track, which matches new advisories against what runs. Pick it when nobody outside asks for the SBOM but you want to know your exposure fast."
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"value": "shipped",
|
|
156
|
+
"label": "shipping with each release",
|
|
157
|
+
"description": "Each release carries a signed SBOM (CycloneDX or SPDX) and VEX statements for known vulnerabilities that do not affect it. Pick it when customers, US federal buyers (EO 14028) or the EU Cyber Resilience Act require it."
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"key": "BASE",
|
|
163
|
+
"title": "Base images",
|
|
164
|
+
"label": "What are the container images built on?",
|
|
165
|
+
"hint": "Every package in a base image is one more to patch and one more for an attacker to use; fewer packages, fewer findings.",
|
|
166
|
+
"defaultValue": "minimal",
|
|
167
|
+
"options": [
|
|
168
|
+
{
|
|
169
|
+
"value": "minimal",
|
|
170
|
+
"label": "minimal images without a shell",
|
|
171
|
+
"description": "Distroless (gcr.io/distroless) or Chainguard/Wolfi images: the runtime and nothing else. Pick it for services in compiled languages or standard runtimes (Java, Node, Python) that need no OS tools."
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"value": "official",
|
|
175
|
+
"label": "official slim images, rebuilt weekly",
|
|
176
|
+
"description": "Docker official slim images (Debian slim, Alpine, UBI minimal), rebuilt on a schedule so OS fixes arrive. Pick it when the element needs OS packages or tools that minimal images lack."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"value": "golden",
|
|
180
|
+
"label": "our platform team's golden images",
|
|
181
|
+
"description": "Hardened images built and patched by a platform team, published to the internal registry; nothing else may be used. Pick it in larger organisations with a platform team and compliance baselines (CIS, STIG)."
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"key": "CRITICAL_DAYS",
|
|
187
|
+
"label": "Days to fix a critical vulnerability in a dependency",
|
|
188
|
+
"defaultValue": "7",
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"key": "HIGH_DAYS",
|
|
193
|
+
"label": "Days to fix a high vulnerability in a dependency",
|
|
194
|
+
"defaultValue": "30",
|
|
195
|
+
"type": "number"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "REBUILD_DAYS",
|
|
199
|
+
"label": "Most days a running image may go without a rebuild. Only with official slim images",
|
|
200
|
+
"defaultValue": "7",
|
|
201
|
+
"type": "number"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"nodes": [
|
|
206
|
+
{
|
|
207
|
+
"id": "need",
|
|
208
|
+
"type": "need",
|
|
209
|
+
"label": "We ship only what we meant to",
|
|
210
|
+
"x": 0,
|
|
211
|
+
"y": 0,
|
|
212
|
+
"kind": "brief",
|
|
213
|
+
"source": "Hub concern pack: Software supply chain",
|
|
214
|
+
"description": "The element is built from our code, open-source dependencies and a base image. Known vulnerabilities in what it contains must be found and fixed before they are exploited; no dependency, build step or image may change what we ship without us knowing; every artifact running in production must be traceable to a reviewed commit and the build that made it; and when a new vulnerability is announced we must know within hours which running versions contain it."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "req-vuln-sla",
|
|
218
|
+
"type": "requirement",
|
|
219
|
+
"label": "Vulnerabilities fixed in time",
|
|
220
|
+
"x": 260,
|
|
221
|
+
"y": 0,
|
|
222
|
+
"ears_type": "state-driven",
|
|
223
|
+
"precondition": "a deployed version contains a dependency with a known critical or high vulnerability",
|
|
224
|
+
"action": "upgrade, replace or patch it within {{CRITICAL_DAYS}} days for critical and {{HIGH_DAYS}} days for high from disclosure, or record a reviewed statement that the element is not affected",
|
|
225
|
+
"rationale": "Known vulnerabilities in components are among the most exploited weaknesses; a deadline per severity turns findings into fixes (OWASP Top 10 A06:2021; NIST SSDF RV.2)."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "req-vuln-gate",
|
|
229
|
+
"type": "requirement",
|
|
230
|
+
"label": "New vulnerabilities blocked",
|
|
231
|
+
"x": 260,
|
|
232
|
+
"y": 130,
|
|
233
|
+
"ears_type": "unwanted-behaviour",
|
|
234
|
+
"unwanted_condition": "a pull request adds a dependency, or changes one to a version, with a known high or critical vulnerability that has a fixed version",
|
|
235
|
+
"action": "fail its required check so that it cannot merge until it uses a fixed version, while findings without a fix or below high only warn",
|
|
236
|
+
"rationale": "The cheapest vulnerability to fix is the one that never merges (NIST SSDF PW.4; OpenSSF Scorecard Vulnerabilities).",
|
|
237
|
+
"hubWhen": {
|
|
238
|
+
"SCA": [
|
|
239
|
+
"gate"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "req-vuln-report",
|
|
245
|
+
"type": "requirement",
|
|
246
|
+
"label": "Findings visible on each change",
|
|
247
|
+
"x": 260,
|
|
248
|
+
"y": 260,
|
|
249
|
+
"ears_type": "event-driven",
|
|
250
|
+
"trigger": "a pull request changes a dependency manifest or lockfile",
|
|
251
|
+
"action": "comment on it with every known vulnerability the change adds or removes, with its severity and fixed version, without blocking, and keep every high or critical one that merges as an open Dependabot alert until it is fixed",
|
|
252
|
+
"rationale": "Without blocking, visibility at the moment of change and a tracked alert are what keep the deadline from being missed (NIST SSDF RV.1).",
|
|
253
|
+
"hubWhen": {
|
|
254
|
+
"SCA": [
|
|
255
|
+
"sla"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "req-review",
|
|
261
|
+
"type": "requirement",
|
|
262
|
+
"label": "Changes reviewed and protected",
|
|
263
|
+
"x": 260,
|
|
264
|
+
"y": 390,
|
|
265
|
+
"ears_type": "ubiquitous",
|
|
266
|
+
"action": "build release artifacts only from the protected default branch or signed release tags, where every change is merged through a pull request approved by someone other than its author with the required checks passed",
|
|
267
|
+
"rationale": "A build is only as trustworthy as the source it starts from; review and branch protection are the source half of the supply chain (OpenSSF Scorecard Branch-Protection, Code-Review; NIST SSDF PS.1)."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": "req-pin-hash",
|
|
271
|
+
"type": "requirement",
|
|
272
|
+
"label": "Actions, images and downloads pinned",
|
|
273
|
+
"x": 260,
|
|
274
|
+
"y": 520,
|
|
275
|
+
"ears_type": "ubiquitous",
|
|
276
|
+
"action": "pin every CI action to a full commit SHA, every base image to a sha256 digest and every file downloaded in a build to a checksum verified in the same step, and take updates to them only through bot pull requests that are reviewed like code",
|
|
277
|
+
"rationale": "A tag or version range can be moved by whoever controls it; a hash cannot (OpenSSF Scorecard Pinned-Dependencies; SLSA v1.0 threats, dependency threats).",
|
|
278
|
+
"hubWhen": {
|
|
279
|
+
"PINNING": [
|
|
280
|
+
"hash"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "req-pin-proxy",
|
|
286
|
+
"type": "requirement",
|
|
287
|
+
"label": "Packages only from our proxy",
|
|
288
|
+
"x": 260,
|
|
289
|
+
"y": 650,
|
|
290
|
+
"ears_type": "ubiquitous",
|
|
291
|
+
"action": "fetch every package and image only through our registry proxy, with no other network access from the build runner, and get a newly published release from the proxy only after it has been public for 7 days",
|
|
292
|
+
"rationale": "One controlled entry point can be audited and blocked; malicious releases are usually found and pulled within days of publication (NIST SSDF PW.4; SLSA v1.0 threats, dependency threats).",
|
|
293
|
+
"hubWhen": {
|
|
294
|
+
"PINNING": [
|
|
295
|
+
"proxy"
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"id": "req-provenance-l1",
|
|
301
|
+
"type": "requirement",
|
|
302
|
+
"label": "Provenance recorded",
|
|
303
|
+
"x": 260,
|
|
304
|
+
"y": 780,
|
|
305
|
+
"ears_type": "event-driven",
|
|
306
|
+
"trigger": "a build produces a release artifact",
|
|
307
|
+
"action": "attach SLSA provenance to it that names the builder and the commit it was built from",
|
|
308
|
+
"rationale": "Provenance is what makes an artifact traceable to the source and build that made it; at Build L1 it exists, which already catches mistakes (SLSA v1.0, Build L1).",
|
|
309
|
+
"hubWhen": {
|
|
310
|
+
"SLSA": [
|
|
311
|
+
"l1"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"id": "req-provenance-l2",
|
|
317
|
+
"type": "requirement",
|
|
318
|
+
"label": "Unverified artifacts not deployed",
|
|
319
|
+
"x": 260,
|
|
320
|
+
"y": 910,
|
|
321
|
+
"ears_type": "unwanted-behaviour",
|
|
322
|
+
"unwanted_condition": "an artifact is about to be deployed without provenance signed by our hosted build platform for this repository and its protected default branch",
|
|
323
|
+
"action": "refuse the deployment",
|
|
324
|
+
"rationale": "Signed provenance from a hosted builder cannot be forged by a developer's machine; verifying it at deployment is what makes it count (SLSA v1.0, Build L2).",
|
|
325
|
+
"hubWhen": {
|
|
326
|
+
"SLSA": [
|
|
327
|
+
"l2"
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"id": "req-provenance-l3",
|
|
333
|
+
"type": "requirement",
|
|
334
|
+
"label": "Only verified images admitted",
|
|
335
|
+
"x": 260,
|
|
336
|
+
"y": 1040,
|
|
337
|
+
"ears_type": "unwanted-behaviour",
|
|
338
|
+
"unwanted_condition": "the cluster is asked to run an image whose provenance was not produced by our isolated build workflow for this repository",
|
|
339
|
+
"action": "refuse to admit it, and keep the provenance signing in a job the build steps cannot reach",
|
|
340
|
+
"rationale": "At Build L3 the provenance cannot be forged even by the build's own steps, and admission control enforces it at the last moment (SLSA v1.0, Build L3).",
|
|
341
|
+
"hubWhen": {
|
|
342
|
+
"SLSA": [
|
|
343
|
+
"l3"
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"id": "req-sbom-internal",
|
|
349
|
+
"type": "requirement",
|
|
350
|
+
"label": "Exposure known within hours",
|
|
351
|
+
"x": 260,
|
|
352
|
+
"y": 1170,
|
|
353
|
+
"ears_type": "event-driven",
|
|
354
|
+
"trigger": "a new vulnerability advisory is published for a component",
|
|
355
|
+
"action": "list every deployed version of the element that contains it within 24 hours, from the CycloneDX SBOMs kept for each deployed version, and fail a daily check while the version in production violates a blocking policy",
|
|
356
|
+
"rationale": "The first question after a widespread vulnerability is where it runs; an SBOM per deployed version answers it without rebuilding anything (NIST SSDF PS.3.2; CycloneDX).",
|
|
357
|
+
"hubWhen": {
|
|
358
|
+
"SBOM": [
|
|
359
|
+
"internal"
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "req-sbom-shipped",
|
|
365
|
+
"type": "requirement",
|
|
366
|
+
"label": "SBOM shipped with releases",
|
|
367
|
+
"x": 260,
|
|
368
|
+
"y": 1300,
|
|
369
|
+
"ears_type": "event-driven",
|
|
370
|
+
"trigger": "a version is released",
|
|
371
|
+
"action": "publish with it a signed SBOM in CycloneDX or SPDX listing every component, transitive ones included, with version, package URL and licence, and VEX statements for known vulnerabilities that do not affect it",
|
|
372
|
+
"rationale": "Customers and regulators (US EO 14028, EU Cyber Resilience Act) expect an SBOM with each release; VEX saves them chasing findings that do not apply (NIST SSDF PS.3.2; CycloneDX; SPDX).",
|
|
373
|
+
"hubWhen": {
|
|
374
|
+
"SBOM": [
|
|
375
|
+
"shipped"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"id": "req-base-minimal",
|
|
381
|
+
"type": "requirement",
|
|
382
|
+
"label": "No shell in images",
|
|
383
|
+
"x": 260,
|
|
384
|
+
"y": 1430,
|
|
385
|
+
"ears_type": "ubiquitous",
|
|
386
|
+
"action": "build the final stage of every image on a distroless or Chainguard base, with no shell or package manager, running as a non-root user",
|
|
387
|
+
"rationale": "Packages that are not there need no patching and cannot be used after a break-in; minimal images cut OS findings by an order of magnitude (NIST SP 800-190, 4.1; OWASP Docker Security Cheat Sheet).",
|
|
388
|
+
"hubWhen": {
|
|
389
|
+
"BASE": [
|
|
390
|
+
"minimal"
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "req-base-official",
|
|
396
|
+
"type": "requirement",
|
|
397
|
+
"label": "Images rebuilt on schedule",
|
|
398
|
+
"x": 260,
|
|
399
|
+
"y": 1560,
|
|
400
|
+
"ears_type": "state-driven",
|
|
401
|
+
"precondition": "an image running in production was built more than {{REBUILD_DAYS}} days ago",
|
|
402
|
+
"action": "rebuild it on the current official slim base and redeploy it, failing the rebuild on fixable high or critical OS vulnerabilities",
|
|
403
|
+
"rationale": "Base images are patched upstream constantly; only a rebuild brings the fixes in (NIST SP 800-190, 4.1.1; OWASP Docker Security Cheat Sheet).",
|
|
404
|
+
"hubWhen": {
|
|
405
|
+
"BASE": [
|
|
406
|
+
"official"
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "req-base-golden",
|
|
412
|
+
"type": "requirement",
|
|
413
|
+
"label": "Only golden base images",
|
|
414
|
+
"x": 260,
|
|
415
|
+
"y": 1690,
|
|
416
|
+
"ears_type": "unwanted-behaviour",
|
|
417
|
+
"unwanted_condition": "an image is built from, or the cluster is asked to run an image from, anything other than the internal registry's golden images",
|
|
418
|
+
"action": "fail the build or refuse the pod",
|
|
419
|
+
"rationale": "A golden image is a promise only if nothing else can be used; enforcement at build and at admission keeps it (CIS Docker Benchmark; NIST SP 800-190, 4.1).",
|
|
420
|
+
"hubWhen": {
|
|
421
|
+
"BASE": [
|
|
422
|
+
"golden"
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"id": "sc-vuln-sla",
|
|
428
|
+
"type": "scenario",
|
|
429
|
+
"label": "Critical fixed in time",
|
|
430
|
+
"x": 520,
|
|
431
|
+
"y": 0,
|
|
432
|
+
"given": "a deployed version with a dependency that gets a critical advisory",
|
|
433
|
+
"when": "{{CRITICAL_DAYS}} days have passed since disclosure",
|
|
434
|
+
"then": "the version running in production no longer contains it, or a reviewed not-affected statement is recorded"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "sc-vuln-gate",
|
|
438
|
+
"type": "scenario",
|
|
439
|
+
"label": "Vulnerable upgrade blocked",
|
|
440
|
+
"x": 520,
|
|
441
|
+
"y": 130,
|
|
442
|
+
"given": "a pull request that pins a library to a version with a critical advisory and a fixed version available, and another with a low advisory",
|
|
443
|
+
"when": "their checks run",
|
|
444
|
+
"then": "the first pull request's dependency check fails and it cannot merge; the second passes with a warning",
|
|
445
|
+
"hubWhen": {
|
|
446
|
+
"SCA": [
|
|
447
|
+
"gate"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"id": "sc-vuln-report",
|
|
453
|
+
"type": "scenario",
|
|
454
|
+
"label": "Finding tracked",
|
|
455
|
+
"x": 520,
|
|
456
|
+
"y": 260,
|
|
457
|
+
"given": "a pull request that adds a dependency with a high advisory",
|
|
458
|
+
"when": "it merges",
|
|
459
|
+
"then": "it carried a comment naming the advisory, and an open alert with the {{HIGH_DAYS}}-day deadline counts from its creation",
|
|
460
|
+
"hubWhen": {
|
|
461
|
+
"SCA": [
|
|
462
|
+
"sla"
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"id": "sc-review",
|
|
468
|
+
"type": "scenario",
|
|
469
|
+
"label": "Direct push refused",
|
|
470
|
+
"x": 520,
|
|
471
|
+
"y": 390,
|
|
472
|
+
"given": "a maintainer with write access",
|
|
473
|
+
"when": "they push a commit directly to the default branch, and open a pull request they approve themselves",
|
|
474
|
+
"then": "the push is refused and the pull request cannot merge without a second person's approval"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"id": "sc-pin-hash",
|
|
478
|
+
"type": "scenario",
|
|
479
|
+
"label": "Unpinned action refused",
|
|
480
|
+
"x": 520,
|
|
481
|
+
"y": 520,
|
|
482
|
+
"given": "a pull request that adds a CI step using an action by its tag, and a Dockerfile FROM by tag",
|
|
483
|
+
"when": "its checks run",
|
|
484
|
+
"then": "the pinning check fails naming both",
|
|
485
|
+
"hubWhen": {
|
|
486
|
+
"PINNING": [
|
|
487
|
+
"hash"
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"id": "sc-pin-proxy",
|
|
493
|
+
"type": "scenario",
|
|
494
|
+
"label": "Fresh release held back",
|
|
495
|
+
"x": 520,
|
|
496
|
+
"y": 650,
|
|
497
|
+
"given": "a package version published 2 days ago",
|
|
498
|
+
"when": "a build asks for it",
|
|
499
|
+
"then": "the proxy does not serve it and the build fails, and the same build with a 10-day-old version succeeds",
|
|
500
|
+
"hubWhen": {
|
|
501
|
+
"PINNING": [
|
|
502
|
+
"proxy"
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"id": "sc-provenance-l1",
|
|
508
|
+
"type": "scenario",
|
|
509
|
+
"label": "Image carries provenance",
|
|
510
|
+
"x": 520,
|
|
511
|
+
"y": 780,
|
|
512
|
+
"given": "an image built by the release pipeline",
|
|
513
|
+
"when": "its attestations are inspected",
|
|
514
|
+
"then": "they hold SLSA provenance naming the builder and the commit",
|
|
515
|
+
"hubWhen": {
|
|
516
|
+
"SLSA": [
|
|
517
|
+
"l1"
|
|
518
|
+
]
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"id": "sc-provenance-l2",
|
|
523
|
+
"type": "scenario",
|
|
524
|
+
"label": "Laptop build refused",
|
|
525
|
+
"x": 520,
|
|
526
|
+
"y": 910,
|
|
527
|
+
"given": "an image built and pushed from a developer's machine with the same tag",
|
|
528
|
+
"when": "the pipeline tries to deploy it",
|
|
529
|
+
"then": "verification fails and the deployment stops",
|
|
530
|
+
"hubWhen": {
|
|
531
|
+
"SLSA": [
|
|
532
|
+
"l2"
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"id": "sc-provenance-l3",
|
|
538
|
+
"type": "scenario",
|
|
539
|
+
"label": "Unverified image refused",
|
|
540
|
+
"x": 520,
|
|
541
|
+
"y": 1040,
|
|
542
|
+
"given": "a cluster with admission control",
|
|
543
|
+
"when": "a pod is created from an image built outside the isolated workflow",
|
|
544
|
+
"then": "the cluster refuses the pod and names the failed verification",
|
|
545
|
+
"hubWhen": {
|
|
546
|
+
"SLSA": [
|
|
547
|
+
"l3"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"id": "sc-sbom-internal",
|
|
553
|
+
"type": "scenario",
|
|
554
|
+
"label": "Affected versions listed",
|
|
555
|
+
"x": 520,
|
|
556
|
+
"y": 1170,
|
|
557
|
+
"given": "SBOMs of the three versions deployed in production and staging",
|
|
558
|
+
"when": "an advisory is published for a component in two of them",
|
|
559
|
+
"then": "within 24 hours the two versions and their environments are listed, and the daily check fails for the one in production",
|
|
560
|
+
"hubWhen": {
|
|
561
|
+
"SBOM": [
|
|
562
|
+
"internal"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"id": "sc-sbom-shipped",
|
|
568
|
+
"type": "scenario",
|
|
569
|
+
"label": "Release carries SBOM",
|
|
570
|
+
"x": 520,
|
|
571
|
+
"y": 1300,
|
|
572
|
+
"given": "a release",
|
|
573
|
+
"when": "its assets are listed and the SBOM is validated against its schema",
|
|
574
|
+
"then": "a signed SBOM, its signature bundle and VEX are attached, valid, and every component has a version and package URL",
|
|
575
|
+
"hubWhen": {
|
|
576
|
+
"SBOM": [
|
|
577
|
+
"shipped"
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"id": "sc-base-minimal",
|
|
583
|
+
"type": "scenario",
|
|
584
|
+
"label": "No shell to run",
|
|
585
|
+
"x": 520,
|
|
586
|
+
"y": 1430,
|
|
587
|
+
"given": "a released image",
|
|
588
|
+
"when": "someone tries to run /bin/sh in a container from it",
|
|
589
|
+
"then": "there is no shell, and the process runs as a non-root user",
|
|
590
|
+
"hubWhen": {
|
|
591
|
+
"BASE": [
|
|
592
|
+
"minimal"
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"id": "sc-base-official",
|
|
598
|
+
"type": "scenario",
|
|
599
|
+
"label": "Stale image rebuilt",
|
|
600
|
+
"x": 520,
|
|
601
|
+
"y": 1560,
|
|
602
|
+
"given": "a production image built {{REBUILD_DAYS}} days ago",
|
|
603
|
+
"when": "the scheduled rebuild runs",
|
|
604
|
+
"then": "a new image on the current base is deployed and the scan shows no fixable high or critical OS finding",
|
|
605
|
+
"hubWhen": {
|
|
606
|
+
"BASE": [
|
|
607
|
+
"official"
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"id": "sc-base-golden",
|
|
613
|
+
"type": "scenario",
|
|
614
|
+
"label": "Public base refused",
|
|
615
|
+
"x": 520,
|
|
616
|
+
"y": 1690,
|
|
617
|
+
"given": "a Dockerfile starting FROM a public Docker Hub image",
|
|
618
|
+
"when": "it is built, and an image from Docker Hub is deployed directly",
|
|
619
|
+
"then": "the build fails and the cluster refuses the pod",
|
|
620
|
+
"hubWhen": {
|
|
621
|
+
"BASE": [
|
|
622
|
+
"golden"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"id": "adr-deps-gate",
|
|
628
|
+
"type": "adr",
|
|
629
|
+
"label": "Vulnerable dependencies blocked",
|
|
630
|
+
"x": 780,
|
|
631
|
+
"y": 0,
|
|
632
|
+
"concern": "supply-chain",
|
|
633
|
+
"status": "accepted",
|
|
634
|
+
"date": "",
|
|
635
|
+
"context": "This element is built by us from source code, open-source dependencies and a base image, and shipped as an artifact. The forces: most of what runs is code we did not write, and known vulnerabilities in it are exploited within days of disclosure; a dependency resolved fresh on every build can change under us, through a compromised maintainer, a typosquatted name or a malicious release; a build that anyone with CI access can alter, or whose output nobody can trace to a commit, ships whatever an attacker puts in it; base images carry hundreds of operating-system packages we never use; and when the next widespread vulnerability is announced, the first question is which of our running versions contain it. The lockfile, how it is installed and how updates arrive are decided in the Dependency hygiene pack. The snippets of this pack assume a GitHub repository our-org/shop building the image ghcr.io/our-org/shop/order-api with a Dockerfile at the root; rename them for yours, and pin the actions they use by commit SHA in your repository.",
|
|
636
|
+
"decision": "Every pull request is checked for known vulnerabilities in the dependencies it adds or changes, and a high or critical one with a fixed version blocks the merge; findings without a fix or below high warn. Existing findings, in every element, are fixed within {{CRITICAL_DAYS}} days (critical) and {{HIGH_DAYS}} days (high) of disclosure, or get a reviewed not-affected statement. Beyond the lockfile decided in the Dependency hygiene pack, what is pinned: {{PINNING}}; update pull requests arrive as decided there. Tools: GitHub dependency review and OSV-Scanner for the gate (free, OSV and GitHub Advisory data), Snyk or Mend when you also need reachability analysis and licence policy; judge by the ecosystems you use, the advisory database, and whether it can tell reachable from unreachable code.",
|
|
637
|
+
"consequences": "• New known vulnerabilities do not reach the main branch.\n• A finding with no fixed version does not block, but gets a deadline and, if unaffected, a reviewed statement.\n• Update pull requests become routine work: merge them weekly, grouped, with tests that make it safe.",
|
|
638
|
+
"alternatives": "1. Report and deadlines only: no blocked work, but the backlog grows.\n2. Scan only before release: findings arrive late, in bulk.\n3. Vendoring all dependencies: full control, all the patching is ours.",
|
|
639
|
+
"hubWhen": {
|
|
640
|
+
"SCA": [
|
|
641
|
+
"gate"
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"id": "adr-deps-sla",
|
|
647
|
+
"type": "adr",
|
|
648
|
+
"label": "Vulnerabilities fixed by deadline",
|
|
649
|
+
"x": 780,
|
|
650
|
+
"y": 130,
|
|
651
|
+
"concern": "supply-chain",
|
|
652
|
+
"status": "accepted",
|
|
653
|
+
"date": "",
|
|
654
|
+
"context": "This element is built by us from source code, open-source dependencies and a base image, and shipped as an artifact. The forces: most of what runs is code we did not write, and known vulnerabilities in it are exploited within days of disclosure; a dependency resolved fresh on every build can change under us, through a compromised maintainer, a typosquatted name or a malicious release; a build that anyone with CI access can alter, or whose output nobody can trace to a commit, ships whatever an attacker puts in it; base images carry hundreds of operating-system packages we never use; and when the next widespread vulnerability is announced, the first question is which of our running versions contain it. The lockfile, how it is installed and how updates arrive are decided in the Dependency hygiene pack. The snippets of this pack assume a GitHub repository our-org/shop building the image ghcr.io/our-org/shop/order-api with a Dockerfile at the root; rename them for yours, and pin the actions they use by commit SHA in your repository.",
|
|
655
|
+
"decision": "Known vulnerabilities in dependencies are reported on every pull request and tracked as Dependabot alerts and do not block merging; each must be fixed, in every element, within {{CRITICAL_DAYS}} days (critical) and {{HIGH_DAYS}} days (high) of disclosure, or get a reviewed not-affected statement. Beyond the lockfile decided in the Dependency hygiene pack, what is pinned: {{PINNING}}; update pull requests arrive as decided there. Tools: GitHub dependency review for the comment, Dependabot alerts for the tracking, OWASP Dependency-Track for the dashboard. Revisit this decision, towards blocking, once no high or critical finding is past its deadline.",
|
|
656
|
+
"consequences": "• No work blocked by findings nobody can fix yet.\n• Vulnerable versions can merge and ship until fixed; the deadlines carry the risk.\n• Needs someone to watch the deadlines, or the dashboard turns into wallpaper.",
|
|
657
|
+
"alternatives": "1. Block the merge on high and critical findings: stops new ones at the door.\n2. Scan only before release: late and in bulk.",
|
|
658
|
+
"hubWhen": {
|
|
659
|
+
"SCA": [
|
|
660
|
+
"sla"
|
|
661
|
+
]
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"id": "adr-slsa-l1",
|
|
666
|
+
"type": "adr",
|
|
667
|
+
"label": "Builds record provenance",
|
|
668
|
+
"x": 780,
|
|
669
|
+
"y": 260,
|
|
670
|
+
"concern": "supply-chain",
|
|
671
|
+
"status": "accepted",
|
|
672
|
+
"date": "",
|
|
673
|
+
"context": "This element is built by us from source code, open-source dependencies and a base image, and shipped as an artifact. The forces: most of what runs is code we did not write, and known vulnerabilities in it are exploited within days of disclosure; a dependency resolved fresh on every build can change under us, through a compromised maintainer, a typosquatted name or a malicious release; a build that anyone with CI access can alter, or whose output nobody can trace to a commit, ships whatever an attacker puts in it; base images carry hundreds of operating-system packages we never use; and when the next widespread vulnerability is announced, the first question is which of our running versions contain it. The lockfile, how it is installed and how updates arrive are decided in the Dependency hygiene pack. The snippets of this pack assume a GitHub repository our-org/shop building the image ghcr.io/our-org/shop/order-api with a Dockerfile at the root; rename them for yours, and pin the actions they use by commit SHA in your repository.",
|
|
674
|
+
"decision": "Release builds run from a scripted pipeline and attach SLSA provenance to each artifact (Docker BuildKit with --provenance=mode=max, or the CI's provenance generator); unsigned for now. Changes reach the default branch only through reviewed pull requests. SBOM: {{SBOM}}. Base images: {{BASE}}. Moving to signed provenance on hosted CI (Build L2) is the next step, and supersedes this decision.",
|
|
675
|
+
"consequences": "• Each artifact says which commit and build made it, which catches mistakes and speeds investigations.\n• Unsigned provenance can be forged by anyone who can push an image: it is not a security control yet.\n• Little cost: a flag on the build.",
|
|
676
|
+
"alternatives": "1. Signed provenance from hosted CI (Build L2): a few lines more, and verifiable.\n2. No provenance: nothing to trace an artifact by.",
|
|
677
|
+
"hubWhen": {
|
|
678
|
+
"SLSA": [
|
|
679
|
+
"l1"
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"id": "adr-slsa-l2",
|
|
685
|
+
"type": "adr",
|
|
686
|
+
"label": "Signed provenance verified on deploy",
|
|
687
|
+
"x": 780,
|
|
688
|
+
"y": 390,
|
|
689
|
+
"concern": "supply-chain",
|
|
690
|
+
"status": "accepted",
|
|
691
|
+
"date": "",
|
|
692
|
+
"context": "This element is built by us from source code, open-source dependencies and a base image, and shipped as an artifact. The forces: most of what runs is code we did not write, and known vulnerabilities in it are exploited within days of disclosure; a dependency resolved fresh on every build can change under us, through a compromised maintainer, a typosquatted name or a malicious release; a build that anyone with CI access can alter, or whose output nobody can trace to a commit, ships whatever an attacker puts in it; base images carry hundreds of operating-system packages we never use; and when the next widespread vulnerability is announced, the first question is which of our running versions contain it. The lockfile, how it is installed and how updates arrive are decided in the Dependency hygiene pack. The snippets of this pack assume a GitHub repository our-org/shop building the image ghcr.io/our-org/shop/order-api with a Dockerfile at the root; rename them for yours, and pin the actions they use by commit SHA in your repository.",
|
|
693
|
+
"decision": "Release artifacts are built only on hosted CI, which signs their SLSA provenance (GitHub artifact attestations with actions/attest-build-provenance, GitLab's SLSA provenance, or cosign keyless signing with Sigstore); the deployment pipeline verifies that the provenance names this repository and its protected default branch, and stops otherwise. Changes reach the default branch only through reviewed pull requests. SBOM: {{SBOM}}. Base images: {{BASE}}. Choose by the CI in use; Sigstore keyless signing works across CIs and needs no keys to keep.",
|
|
694
|
+
"consequences": "• An artifact built on a laptop or a fork cannot be deployed.\n• Depends on the hosted CI's signing and on the transparency log being reachable at verification time.\n• Build steps can still influence their own provenance; that is what Build L3 adds.",
|
|
695
|
+
"alternatives": "1. Build L3 with isolated provenance generation and admission control: stronger, more to set up.\n2. Build L1, unsigned provenance: traceable, not verifiable.\n3. Signing with long-lived keys: works offline, but the key becomes a secret to protect and rotate.",
|
|
696
|
+
"hubWhen": {
|
|
697
|
+
"SLSA": [
|
|
698
|
+
"l2"
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"id": "adr-slsa-l3",
|
|
704
|
+
"type": "adr",
|
|
705
|
+
"label": "Hardened builds, admission verified",
|
|
706
|
+
"x": 780,
|
|
707
|
+
"y": 520,
|
|
708
|
+
"concern": "supply-chain",
|
|
709
|
+
"status": "accepted",
|
|
710
|
+
"date": "",
|
|
711
|
+
"context": "This element is built by us from source code, open-source dependencies and a base image, and shipped as an artifact. The forces: most of what runs is code we did not write, and known vulnerabilities in it are exploited within days of disclosure; a dependency resolved fresh on every build can change under us, through a compromised maintainer, a typosquatted name or a malicious release; a build that anyone with CI access can alter, or whose output nobody can trace to a commit, ships whatever an attacker puts in it; base images carry hundreds of operating-system packages we never use; and when the next widespread vulnerability is announced, the first question is which of our running versions contain it. The lockfile, how it is installed and how updates arrive are decided in the Dependency hygiene pack. The snippets of this pack assume a GitHub repository our-org/shop building the image ghcr.io/our-org/shop/order-api with a Dockerfile at the root; rename them for yours, and pin the actions they use by commit SHA in your repository.",
|
|
712
|
+
"decision": "Release artifacts are built by isolated, ephemeral jobs whose provenance is generated and signed outside the build steps (slsa-framework/slsa-github-generator reusable workflows, or Tekton Chains), and the cluster admits only images whose provenance verifies for this repository (Sigstore policy-controller or Kyverno verifyImages). Changes reach the default branch only through reviewed pull requests. SBOM: {{SBOM}}. Base images: {{BASE}}.",
|
|
713
|
+
"consequences": "• Neither a developer nor a compromised build step can produce an artifact the cluster will run.\n• Admission control is on the path of every deployment: its outage blocks deploys, so it fails closed with a documented break-glass.\n• Builds take longer and must fit the generator's workflow.",
|
|
714
|
+
"alternatives": "1. Build L2 with verification in the pipeline: simpler, but a direct deploy bypasses it.\n2. Reproducible builds checked by a second builder: the strongest, and rarely practical yet.",
|
|
715
|
+
"hubWhen": {
|
|
716
|
+
"SLSA": [
|
|
717
|
+
"l3"
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"id": "ff-scorecard",
|
|
723
|
+
"type": "fitness-fn",
|
|
724
|
+
"label": "OpenSSF Scorecard",
|
|
725
|
+
"x": 1040,
|
|
726
|
+
"y": 0,
|
|
727
|
+
"characteristic": "security",
|
|
728
|
+
"scope": "atomic",
|
|
729
|
+
"cadence": "triggered",
|
|
730
|
+
"trigger": "weekly",
|
|
731
|
+
"invocation": "automated",
|
|
732
|
+
"description": "OpenSSF Scorecard runs weekly and on every push to the default branch; a step fails the job when an enforced check scores below its threshold. Branch-Protection scores 8 with one required approving reviewer, which is what the review requirement asks; 9 and 10 need two reviewers and code-owner review.\n\nThreshold: Code-Review, Dangerous-Workflow and Token-Permissions each score 10 and Branch-Protection at least 8 (one required reviewer, no force pushes, a required status check); overall score at least 7.0\n\nTool: OpenSSF Scorecard (ossf/scorecard-action)\n\n```yaml\n# .github/workflows/scorecard.yml\nname: scorecard\non:\n push: { branches: [main] }\n schedule: [{ cron: '0 6 * * 1' }]\npermissions: read-all\njobs:\n scorecard:\n runs-on: ubuntu-latest\n permissions: { id-token: write, security-events: write }\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n with: { persist-credentials: false }\n - uses: ossf/scorecard-action@v2.4.2 # pin by commit SHA in your repository\n with: { results_file: results.json, results_format: json, publish_results: true }\n - run: |\n jq -e '.score >= 7\n and ([.checks[] | select(.name | IN(\"Code-Review\",\"Dangerous-Workflow\",\"Token-Permissions\")) | select(.score < 10)] | length == 0)\n and ([.checks[] | select(.name == \"Branch-Protection\") | select(.score < 8)] | length == 0)' results.json\n```"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"id": "ff-vuln-gate",
|
|
736
|
+
"type": "fitness-fn",
|
|
737
|
+
"label": "Vulnerable dependency check",
|
|
738
|
+
"x": 1040,
|
|
739
|
+
"y": 130,
|
|
740
|
+
"characteristic": "security",
|
|
741
|
+
"scope": "atomic",
|
|
742
|
+
"cadence": "triggered",
|
|
743
|
+
"trigger": "pull-request",
|
|
744
|
+
"invocation": "automated",
|
|
745
|
+
"description": "GitHub's dependency review action compares the pull request's dependencies with the base branch and fails on a newly added high or critical advisory; OSV-Scanner covers lockfiles the dependency graph does not, and its JSON output is filtered so that only high or critical findings that have a fixed version fail the step (OSV-Scanner itself exits 1 on any finding).\n\nThreshold: 0 high or critical vulnerabilities with a fixed version added by a pull request; the check is required for merging; lower findings and findings without a fix warn\n\nTool: GitHub dependency-review-action and OSV-Scanner with jq\n\n```yaml\n# .github/workflows/dependencies.yml\nname: dependencies\non: [pull_request]\npermissions: { contents: read, pull-requests: write }\njobs:\n review:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - uses: actions/dependency-review-action@v4.7.1 # pin by commit SHA in your repository\n with:\n fail-on-severity: high\n comment-summary-in-pr: on-failure\n - uses: actions/setup-go@v5.5.0 # pin by commit SHA in your repository\n with: { go-version: '1.24' }\n - name: OSV-Scanner over every lockfile, failing only on high or critical findings with a fix\n run: |\n go install github.com/google/osv-scanner/v2/cmd/osv-scanner@v2.0.2\n osv-scanner scan source --recursive --format json . > osv.json || true # exits 1 on any finding; the filter below decides\n jq -e '[.results[]?.packages[]?.vulnerabilities[]?\n | select((.database_specific.severity // \"\" | ascii_upcase) | IN(\"HIGH\", \"CRITICAL\"))\n | select([.affected[]?.ranges[]?.events[]?.fixed // empty] | length > 0)\n | .id] | unique\n | if length > 0 then (\"blocking: \" + join(\", \") | halt_error(1)) else true end' osv.json\n```",
|
|
746
|
+
"hubWhen": {
|
|
747
|
+
"SCA": [
|
|
748
|
+
"gate"
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"id": "ff-vuln-report",
|
|
754
|
+
"type": "fitness-fn",
|
|
755
|
+
"label": "Findings commented, alerts tracked",
|
|
756
|
+
"x": 1040,
|
|
757
|
+
"y": 260,
|
|
758
|
+
"characteristic": "security",
|
|
759
|
+
"scope": "atomic",
|
|
760
|
+
"cadence": "triggered",
|
|
761
|
+
"trigger": "pull-request",
|
|
762
|
+
"invocation": "automated",
|
|
763
|
+
"description": "GitHub's dependency review action runs in warn-only mode and always comments its summary on the pull request, so the finding is visible where the change is made; a step checks that Dependabot alerts are enabled, since they are the tracked record the deadline job reads.\n\nThreshold: Every pull request that changes dependencies gets a dependency review comment and no failed check from it; Dependabot alerts are enabled on the repository\n\nTool: GitHub dependency-review-action (warn-only) and the GitHub CLI\n\n```yaml\n# .github/workflows/dependencies.yml\nname: dependencies\non: [pull_request]\npermissions: { contents: read, pull-requests: write }\njobs:\n review:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - uses: actions/dependency-review-action@v4.7.1 # pin by commit SHA in your repository\n with:\n warn-only: true\n comment-summary-in-pr: always\n - name: Dependabot alerts are on (the tracked record of each finding)\n env:\n GH_TOKEN: ${{ github.token }}\n run: gh api \"repos/${{ github.repository }}/vulnerability-alerts\" --silent # 204 when enabled, 404 otherwise\n```",
|
|
764
|
+
"hubWhen": {
|
|
765
|
+
"SCA": [
|
|
766
|
+
"sla"
|
|
767
|
+
]
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"id": "ff-vuln-age",
|
|
772
|
+
"type": "fitness-fn",
|
|
773
|
+
"label": "No finding past its deadline",
|
|
774
|
+
"x": 1040,
|
|
775
|
+
"y": 390,
|
|
776
|
+
"characteristic": "security",
|
|
777
|
+
"scope": "atomic",
|
|
778
|
+
"cadence": "triggered",
|
|
779
|
+
"trigger": "nightly",
|
|
780
|
+
"invocation": "automated",
|
|
781
|
+
"description": "A daily job reads the repository's open Dependabot alerts and fails on any past its deadline, naming the package and the advisory. A reviewed not-affected statement dismisses the alert with a reason, which takes it out of the open set.\n\nThreshold: 0 open critical alerts older than {{CRITICAL_DAYS}} days and 0 open high alerts older than {{HIGH_DAYS}} days\n\nTool: GitHub Dependabot alerts API through the GitHub CLI\n\n```bash\ngh api --paginate \"/repos/$REPO/dependabot/alerts?state=open&per_page=100\" | jq -e \\\n --argjson crit {{CRITICAL_DAYS}} --argjson high {{HIGH_DAYS}} '\n [.[] | {sev: .security_advisory.severity, age: ((now - (.created_at | fromdateiso8601)) / 86400),\n pkg: .dependency.package.name, ghsa: .security_advisory.ghsa_id}\n | select((.sev == \"critical\" and .age > $crit) or (.sev == \"high\" and .age > $high))]\n | if length > 0 then (map(\"\\(.pkg) \\(.ghsa) \\(.sev)\") | join(\"\\n\") | halt_error(1)) else true end'\n```"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"id": "ff-pin-hash",
|
|
785
|
+
"type": "fitness-fn",
|
|
786
|
+
"label": "Actions, images and downloads pinned",
|
|
787
|
+
"x": 1040,
|
|
788
|
+
"y": 520,
|
|
789
|
+
"characteristic": "security",
|
|
790
|
+
"scope": "atomic",
|
|
791
|
+
"cadence": "triggered",
|
|
792
|
+
"trigger": "pull-request",
|
|
793
|
+
"invocation": "automated",
|
|
794
|
+
"description": "zizmor audits the workflows and fails on an action used by tag or branch; a Conftest policy over the Dockerfiles fails on a FROM without a digest, resolving stage aliases so that FROM build is not flagged, and on a download that is not checked against a checksum in the same step. Both run on every pull request.\n\nThreshold: 0 workflow actions not pinned to a full commit SHA; 0 FROM lines (stage aliases and scratch aside) without a sha256 digest; 0 RUN lines that download with curl or wget without a sha256sum check\n\nTool: zizmor (unpinned-uses, hash-pin policy) and Conftest (Dockerfile parser)\n\n```rego\n# Workflows: zizmor --config zizmor.yml .github/workflows with zizmor.yml:\n# rules: { unpinned-uses: { config: { policies: { \"*\": hash-pin } } } }\n# Dockerfiles: conftest test --parser dockerfile -p policy/pinning.rego Dockerfile*\npackage main\n\nimport rego.v1\n\n# conftest's dockerfile parser gives one array of commands per file; this reads either shape\ncommands contains c if {\n some c in input\n is_object(c)\n}\n\ncommands contains c if {\n some stage in input\n is_array(stage)\n some c in stage\n}\n\nfroms contains f if {\n some f in commands\n f.Cmd == \"from\"\n}\n\naliases contains lower(f.Value[2]) if {\n some f in froms\n count(f.Value) == 3\n lower(f.Value[1]) == \"as\"\n}\n\ndeny contains msg if {\n some f in froms\n image := f.Value[0]\n image != \"scratch\"\n not lower(image) in aliases\n not regex.match(`@sha256:[0-9a-f]{64}$`, image)\n msg := sprintf(\"FROM %s is not pinned by digest\", [image])\n}\n\ndeny contains msg if {\n some c in commands\n c.Cmd == \"run\"\n line := concat(\" \", c.Value)\n regex.match(`\\b(curl|wget)\\b`, line)\n not contains(line, \"sha256sum\")\n msg := sprintf(\"RUN downloads without a sha256sum check: %s\", [line])\n}\n```",
|
|
795
|
+
"hubWhen": {
|
|
796
|
+
"PINNING": [
|
|
797
|
+
"hash"
|
|
798
|
+
]
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"id": "ff-pin-proxy",
|
|
803
|
+
"type": "fitness-fn",
|
|
804
|
+
"label": "Packages only from the proxy",
|
|
805
|
+
"x": 1040,
|
|
806
|
+
"y": 650,
|
|
807
|
+
"characteristic": "security",
|
|
808
|
+
"scope": "atomic",
|
|
809
|
+
"cadence": "triggered",
|
|
810
|
+
"trigger": "pull-request",
|
|
811
|
+
"invocation": "automated",
|
|
812
|
+
"description": "A step in the build job fails when any npm package was resolved from a public registry, when a Python requirements file names a public index, or when the Go proxy is not the internal one, which would mean the proxy was bypassed; a last line fails when the runner can reach the public npm registry at all.\n\nThreshold: 0 lockfile entries resolved from anywhere but the internal registry (npm, pip, Go); the build runner cannot reach a public registry\n\nTool: jq, grep and curl in the build job\n\n```bash\nPROXY=\"https://artifacts.example.internal\"\n# npm: every resolved URL comes from the proxy\njq -r --arg reg \"$PROXY/api/npm/npm-remote/\" '.packages | to_entries[]\n | select(.value.resolved != null and (.value.resolved | startswith($reg) | not))\n | \"\\(.key) from \\(.value.resolved)\"' package-lock.json > outside.txt\ntest ! -s outside.txt || { cat outside.txt; exit 1; }\n# pip: the proxy is the only index\nif ls requirements*.txt >/dev/null 2>&1; then\n grep -q \"^--index-url $PROXY/api/pypi/pypi-remote/simple\" requirements.txt || { echo \"requirements.txt does not name the proxy as its index\"; exit 1; }\n ! grep -lE 'https?://(pypi\\.org|files\\.pythonhosted\\.org)' requirements*.txt || exit 1\nfi\n# Go: the module proxy is ours\n[ -z \"$(ls go.mod 2>/dev/null)\" ] || [ \"$(go env GOPROXY)\" = \"$PROXY/api/go/go-remote\" ] || { echo \"GOPROXY is $(go env GOPROXY)\"; exit 1; }\n# the runner has no other egress\n! curl -sSf --max-time 5 https://registry.npmjs.org/ -o /dev/null || { echo \"the build runner can reach registry.npmjs.org\"; exit 1; }\n```",
|
|
813
|
+
"hubWhen": {
|
|
814
|
+
"PINNING": [
|
|
815
|
+
"proxy"
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"id": "ff-proxy-quarantine",
|
|
821
|
+
"type": "fitness-fn",
|
|
822
|
+
"label": "Fresh releases held back",
|
|
823
|
+
"x": 1040,
|
|
824
|
+
"y": 780,
|
|
825
|
+
"characteristic": "security",
|
|
826
|
+
"scope": "atomic",
|
|
827
|
+
"cadence": "triggered",
|
|
828
|
+
"trigger": "nightly",
|
|
829
|
+
"invocation": "automated",
|
|
830
|
+
"description": "A daily job on a runner with internet access (not a build runner) takes the newest version of a frequently released package from the public registry, computes its age from the registry's publish time, and asks the proxy for it: a version younger than 7 days must be refused, an older one served. It fails when the proxy serves a fresh one.\n\nThreshold: A package version younger than 7 days is refused by the proxy; one older than 7 days is served\n\nTool: npm view and jq in a scheduled job (the same with pip index versions for PyPI)\n\n```bash\nPROXY=\"https://artifacts.example.internal/api/npm/npm-remote/\"\nPUBLIC=\"https://registry.npmjs.org/\"\npkg=express\nlatest=$(npm view \"$pkg\" version --registry \"$PUBLIC\")\npublished=$(npm view \"$pkg@$latest\" time --json --registry \"$PUBLIC\" | jq -r --arg v \"$latest\" '.[$v]')\nage_days=$(( ( $(date +%s) - $(date -d \"$published\" +%s) ) / 86400 ))\nif [ \"$age_days\" -lt 7 ]; then\n if npm view \"$pkg@$latest\" version --registry \"$PROXY\" >/dev/null 2>&1; then\n echo \"the proxy served $pkg@$latest at $age_days days old\"; exit 1\n fi\n echo \"the proxy held back $pkg@$latest ($age_days days old)\"\nelse\n npm view \"$pkg@$latest\" version --registry \"$PROXY\" >/dev/null || { echo \"the proxy refused $pkg@$latest at $age_days days old\"; exit 1; }\n echo \"no version younger than 7 days to test with $pkg today; the $age_days-day-old one was served\"\nfi\n```",
|
|
831
|
+
"hubWhen": {
|
|
832
|
+
"PINNING": [
|
|
833
|
+
"proxy"
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"id": "ff-provenance-l1",
|
|
839
|
+
"type": "fitness-fn",
|
|
840
|
+
"label": "Images carry provenance",
|
|
841
|
+
"x": 1040,
|
|
842
|
+
"y": 910,
|
|
843
|
+
"characteristic": "security",
|
|
844
|
+
"scope": "atomic",
|
|
845
|
+
"cadence": "triggered",
|
|
846
|
+
"trigger": "release",
|
|
847
|
+
"invocation": "automated",
|
|
848
|
+
"description": "After each release build, the pipeline inspects the pushed image and fails when it carries no SLSA provenance, or one without a builder id or the source commit. BuildKit keys the provenance by platform for multi-platform images and records the commit under its own metadata key when the build context is a git checkout, which the filter reads.\n\nThreshold: 100 % of released images carry a SLSA provenance statement per platform, each naming the builder and the commit it was built from\n\nTool: Docker Buildx (BuildKit provenance attestations) and jq\n\n```bash\ndocker buildx build --provenance=mode=max --sbom=true -t \"$IMAGE\" --push .\ndocker buildx imagetools inspect \"$IMAGE\" --format '{{ json .Provenance }}' > provenance.json\njq -e '[.. | objects | select(has(\"SLSA\")) | .SLSA]\n | length > 0\n and all(.builder.id != null\n and .metadata[\"https://mobyproject.org/buildkit@v1#metadata\"].vcs.revision != null)' provenance.json \\\n || { echo \"no SLSA provenance naming the builder and the commit\"; exit 1; }\n```",
|
|
849
|
+
"hubWhen": {
|
|
850
|
+
"SLSA": [
|
|
851
|
+
"l1"
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"id": "ff-provenance-l2",
|
|
857
|
+
"type": "fitness-fn",
|
|
858
|
+
"label": "Provenance verified on deploy",
|
|
859
|
+
"x": 1040,
|
|
860
|
+
"y": 1040,
|
|
861
|
+
"characteristic": "security",
|
|
862
|
+
"scope": "atomic",
|
|
863
|
+
"cadence": "triggered",
|
|
864
|
+
"trigger": "deploy",
|
|
865
|
+
"invocation": "automated",
|
|
866
|
+
"description": "The build attests provenance with GitHub artifact attestations under the image's lower-case name; the deploy job verifies, before anything is rolled out, that the attestation was made for this repository from refs/heads/main.\n\nThreshold: 0 deployments of an artifact whose signed provenance does not verify for this repository and its main branch\n\nTool: GitHub artifact attestations (actions/attest-build-provenance, gh attestation verify)\n\n```yaml\n# build job (permissions: id-token: write, attestations: write, packages: write)\n- run: echo \"IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}/order-api\" >> \"$GITHUB_ENV\" # the registry wants a lower-case name\n- uses: actions/attest-build-provenance@v2.4.0 # pin by commit SHA in your repository\n with:\n subject-name: ${{ env.IMAGE }}\n subject-digest: ${{ steps.push.outputs.digest }}\n push-to-registry: true\n# deploy job, before rolling out\n- run: gh attestation verify \"oci://$IMAGE@$DIGEST\" --repo \"${{ github.repository }}\" --source-ref refs/heads/main\n env: { GH_TOKEN: \"${{ github.token }}\" }\n```",
|
|
867
|
+
"hubWhen": {
|
|
868
|
+
"SLSA": [
|
|
869
|
+
"l2"
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"id": "ff-provenance-l3",
|
|
875
|
+
"type": "fitness-fn",
|
|
876
|
+
"label": "Admission verifies provenance",
|
|
877
|
+
"x": 1040,
|
|
878
|
+
"y": 1170,
|
|
879
|
+
"characteristic": "security",
|
|
880
|
+
"scope": "atomic",
|
|
881
|
+
"cadence": "triggered",
|
|
882
|
+
"trigger": "deploy",
|
|
883
|
+
"invocation": "automated",
|
|
884
|
+
"description": "A Kyverno policy in enforce mode verifies, for every pod from our registry, that the image has an SLSA provenance attestation signed keylessly by the slsa-github-generator workflow and that the provenance names our repository's main branch as its source.\n\nThreshold: 0 pods admitted from our registry without SLSA provenance signed by the isolated generator workflow for this repository\n\nTool: Kyverno (verifyImages)\n\n```yaml\napiVersion: kyverno.io/v1\nkind: ClusterPolicy\nmetadata: { name: require-slsa-provenance }\nspec:\n validationFailureAction: Enforce\n webhookTimeoutSeconds: 30\n rules:\n - name: slsa-provenance\n match: { any: [{ resources: { kinds: [Pod] } }] }\n verifyImages:\n - imageReferences: [\"ghcr.io/our-org/*\"]\n attestations:\n - type: https://slsa.dev/provenance/v0.2\n attestors:\n - entries:\n - keyless:\n issuer: https://token.actions.githubusercontent.com\n subjectRegExp: '^https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v.*'\n rekor: { url: https://rekor.sigstore.dev }\n conditions:\n - all:\n - key: \"{{ invocation.configSource.uri }}\"\n operator: Equals\n value: \"git+https://github.com/our-org/shop@refs/heads/main\"\n```",
|
|
885
|
+
"hubWhen": {
|
|
886
|
+
"SLSA": [
|
|
887
|
+
"l3"
|
|
888
|
+
]
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"id": "ff-sbom-track",
|
|
893
|
+
"type": "fitness-fn",
|
|
894
|
+
"label": "SBOM of every deployed version",
|
|
895
|
+
"x": 1040,
|
|
896
|
+
"y": 1300,
|
|
897
|
+
"characteristic": "security",
|
|
898
|
+
"scope": "atomic",
|
|
899
|
+
"cadence": "triggered",
|
|
900
|
+
"trigger": "release",
|
|
901
|
+
"invocation": "automated",
|
|
902
|
+
"description": "The release pipeline generates a CycloneDX SBOM of the image with Syft and uploads it to OWASP Dependency-Track under the element and version, where new advisories are matched against it continuously. A daily job looks the production version up and fails on any violation of a policy whose state is FAIL (the blocking policies, such as a critical vulnerability past its deadline).\n\nThreshold: Every release uploads its CycloneDX SBOM to Dependency-Track under the element and version; 0 violations of a FAIL-state policy for the version in production, checked daily\n\nTool: Syft and OWASP Dependency-Track (REST API)\n\n```bash\n# release pipeline\nsyft \"$IMAGE\" -o cyclonedx-json > sbom.cdx.json\ncurl -sf -X POST \"$DTRACK_URL/api/v1/bom\" \\\n -H \"X-Api-Key: $DTRACK_API_KEY\" \\\n -F \"autoCreate=true\" -F \"projectName=$ELEMENT\" -F \"projectVersion=$VERSION\" \\\n -F \"bom=@sbom.cdx.json\"\n# daily, for the version running in production\nuuid=$(curl -sf \"$DTRACK_URL/api/v1/project/lookup?name=$ELEMENT&version=$PROD_VERSION\" -H \"X-Api-Key: $DTRACK_API_KEY\" | jq -r .uuid)\ncurl -sf \"$DTRACK_URL/api/v1/violation/project/$uuid\" -H \"X-Api-Key: $DTRACK_API_KEY\" \\\n | jq -e '[.[] | select(.policyCondition.policy.violationState == \"FAIL\")]\n | if length > 0 then (map(.policyCondition.policy.name + \": \" + .component.name) | join(\"\\n\") | halt_error(1)) else true end'\n```",
|
|
903
|
+
"hubWhen": {
|
|
904
|
+
"SBOM": [
|
|
905
|
+
"internal"
|
|
906
|
+
]
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"id": "ff-sbom-release",
|
|
911
|
+
"type": "fitness-fn",
|
|
912
|
+
"label": "Releases carry a signed SBOM and VEX",
|
|
913
|
+
"x": 1040,
|
|
914
|
+
"y": 1430,
|
|
915
|
+
"characteristic": "security",
|
|
916
|
+
"scope": "atomic",
|
|
917
|
+
"cadence": "triggered",
|
|
918
|
+
"trigger": "release",
|
|
919
|
+
"invocation": "automated",
|
|
920
|
+
"description": "The release job generates the SBOM, validates it against the CycloneDX schema, checks that every component has a version and purl, attests it to the image with cosign, signs the SBOM file keylessly (the bundle is the signature customers verify with cosign verify-blob), writes the VEX statements from the reviewed list of not-affected vulnerabilities, and attaches all three to the release.\n\nThreshold: 100 % of releases carry an SBOM that validates against its schema with a version and package URL on 100 % of components, its Sigstore signature bundle, and an OpenVEX document\n\nTool: Syft, CycloneDX CLI, cosign and vexctl\n\n```bash\nsyft \"$IMAGE\" -o cyclonedx-json > sbom.cdx.json\ncyclonedx validate --input-file sbom.cdx.json --fail-on-errors\njq -e '[.components[] | select(.version == null or .purl == null)] | length == 0' sbom.cdx.json\ncosign attest --yes --type cyclonedx --predicate sbom.cdx.json \"$IMAGE@$DIGEST\"\ncosign sign-blob --yes --bundle sbom.cdx.json.sigstore.json sbom.cdx.json\n# VEX: one statement per reviewed not-affected vulnerability (security/vex.yaml: id and justification), merged into one document\nfor cve in $(yq -r '.not_affected[].id' security/vex.yaml); do\n just=$(yq -r \".not_affected[] | select(.id == \\\"$cve\\\") | .justification\" security/vex.yaml)\n vexctl create --product \"pkg:oci/order-api@$DIGEST\" --vuln \"$cve\" --status not_affected --justification \"$just\" > \"vex-$cve.json\"\ndone\nvexctl merge vex-*.json > vex.openvex.json\ngh release upload \"$TAG\" sbom.cdx.json sbom.cdx.json.sigstore.json vex.openvex.json\n```",
|
|
921
|
+
"hubWhen": {
|
|
922
|
+
"SBOM": [
|
|
923
|
+
"shipped"
|
|
924
|
+
]
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"id": "ff-base-minimal",
|
|
929
|
+
"type": "fitness-fn",
|
|
930
|
+
"label": "Final stage on a minimal base",
|
|
931
|
+
"x": 1040,
|
|
932
|
+
"y": 1560,
|
|
933
|
+
"characteristic": "security",
|
|
934
|
+
"scope": "atomic",
|
|
935
|
+
"cadence": "triggered",
|
|
936
|
+
"trigger": "pull-request",
|
|
937
|
+
"invocation": "automated",
|
|
938
|
+
"description": "A Conftest policy over each Dockerfile resolves the final stage's base through stage aliases and fails when it is not a minimal image, or when the final stage runs as root: no USER and a base whose tag is not a nonroot one (distroless :nonroot, Chainguard images default to a non-root user).\n\nThreshold: 0 Dockerfiles whose final stage is not on gcr.io/distroless or cgr.dev/chainguard, or runs as root\n\nTool: Conftest (Open Policy Agent) Dockerfile parser\n\n```rego\n# conftest test --parser dockerfile -p policy/minimal-base.rego Dockerfile*\npackage main\n\nimport rego.v1\n\n# conftest's dockerfile parser gives one array of commands per file; this reads either shape\ncommands contains c if {\n some c in input\n is_object(c)\n}\n\ncommands contains c if {\n some stage in input\n is_array(stage)\n some c in stage\n}\n\nfroms contains f if {\n some f in commands\n f.Cmd == \"from\"\n}\n\nlast_stage := max({f.Stage | some f in froms})\n\nfinal := [f | some f in froms; f.Stage == last_stage][0]\n\naliases := {lower(f.Value[2]): f.Value[0] | some f in froms; count(f.Value) == 3; lower(f.Value[1]) == \"as\"}\n\nbase := object.get(aliases, lower(final.Value[0]), final.Value[0])\n\ndeny contains msg if {\n not startswith(base, \"gcr.io/distroless/\")\n not startswith(base, \"cgr.dev/chainguard/\")\n msg := sprintf(\"final stage is on %s, not a minimal base\", [base])\n}\n\ndeny contains msg if {\n users := [c | some c in commands; c.Cmd == \"user\"; c.Stage == last_stage]\n count(users) == 0\n not contains(base, \"nonroot\")\n not startswith(base, \"cgr.dev/chainguard/\")\n msg := sprintf(\"final stage on %s sets no USER and the base does not run as non-root\", [base])\n}\n```",
|
|
939
|
+
"hubWhen": {
|
|
940
|
+
"BASE": [
|
|
941
|
+
"minimal"
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"id": "ff-base-official",
|
|
947
|
+
"type": "fitness-fn",
|
|
948
|
+
"label": "Fresh, patched images",
|
|
949
|
+
"x": 1040,
|
|
950
|
+
"y": 1690,
|
|
951
|
+
"characteristic": "security",
|
|
952
|
+
"scope": "atomic",
|
|
953
|
+
"cadence": "triggered",
|
|
954
|
+
"trigger": "nightly",
|
|
955
|
+
"invocation": "automated",
|
|
956
|
+
"description": "A scheduled pipeline rebuilds each image on its current base, scans it with Trivy and fails on fixable high or critical findings; a check fails when a running image was built more than {{REBUILD_DAYS}} days ago.\n\nThreshold: 0 fixable high or critical OS vulnerabilities in released images; 0 production images older than {{REBUILD_DAYS}} days\n\nTool: Trivy\n\n```bash\ndocker build --pull --no-cache -t \"$IMAGE\" .\ntrivy image --scanners vuln --pkg-types os --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 \"$IMAGE\"\ncreated=$(docker image inspect \"$RUNNING_IMAGE\" --format '{{ .Created }}')\nage_days=$(( ( $(date +%s) - $(date -d \"$created\" +%s) ) / 86400 ))\n[ \"$age_days\" -le {{REBUILD_DAYS}} ] || { echo \"running image is $age_days days old\"; exit 1; }\n```",
|
|
957
|
+
"hubWhen": {
|
|
958
|
+
"BASE": [
|
|
959
|
+
"official"
|
|
960
|
+
]
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"id": "ff-base-golden-build",
|
|
965
|
+
"type": "fitness-fn",
|
|
966
|
+
"label": "Builds start from golden images",
|
|
967
|
+
"x": 1040,
|
|
968
|
+
"y": 1820,
|
|
969
|
+
"characteristic": "security",
|
|
970
|
+
"scope": "atomic",
|
|
971
|
+
"cadence": "triggered",
|
|
972
|
+
"trigger": "pull-request",
|
|
973
|
+
"invocation": "automated",
|
|
974
|
+
"description": "A Conftest policy over each Dockerfile fails the build when any stage starts from an image outside the internal registry, where only golden-image-based images are published; stage aliases are resolved so that FROM build passes.\n\nThreshold: 0 FROM lines (stage aliases aside) whose image is outside the internal registry\n\nTool: Conftest (Open Policy Agent) Dockerfile parser\n\n```rego\n# conftest test --parser dockerfile -p policy/golden-base.rego Dockerfile*\npackage main\n\nimport rego.v1\n\ncommands contains c if {\n some c in input\n is_object(c)\n}\n\ncommands contains c if {\n some stage in input\n is_array(stage)\n some c in stage\n}\n\nfroms contains f if {\n some f in commands\n f.Cmd == \"from\"\n}\n\naliases contains lower(f.Value[2]) if {\n some f in froms\n count(f.Value) == 3\n lower(f.Value[1]) == \"as\"\n}\n\ndeny contains msg if {\n some f in froms\n image := f.Value[0]\n not lower(image) in aliases\n not startswith(image, \"registry.example.internal/golden/\")\n msg := sprintf(\"FROM %s is not a golden image from registry.example.internal/golden/\", [image])\n}\n```",
|
|
975
|
+
"hubWhen": {
|
|
976
|
+
"BASE": [
|
|
977
|
+
"golden"
|
|
978
|
+
]
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"id": "ff-base-golden",
|
|
983
|
+
"type": "fitness-fn",
|
|
984
|
+
"label": "Only golden images run",
|
|
985
|
+
"x": 1040,
|
|
986
|
+
"y": 1950,
|
|
987
|
+
"characteristic": "security",
|
|
988
|
+
"scope": "atomic",
|
|
989
|
+
"cadence": "triggered",
|
|
990
|
+
"trigger": "deploy",
|
|
991
|
+
"invocation": "automated",
|
|
992
|
+
"description": "A Kyverno policy in enforce mode refuses pods whose containers, init containers or ephemeral containers come from anywhere but the internal registry, where only golden-image-based builds are published.\n\nThreshold: 0 pods admitted with an image outside the internal registry, init and ephemeral containers included\n\nTool: Kyverno\n\n```yaml\napiVersion: kyverno.io/v1\nkind: ClusterPolicy\nmetadata: { name: restrict-image-registries }\nspec:\n validationFailureAction: Enforce\n rules:\n - name: internal-registry-only\n match: { any: [{ resources: { kinds: [Pod] } }] }\n validate:\n message: \"Images must come from registry.example.internal, built on a golden image.\"\n pattern:\n spec:\n =(initContainers): [{ image: \"registry.example.internal/*\" }]\n =(ephemeralContainers): [{ image: \"registry.example.internal/*\" }]\n containers: [{ image: \"registry.example.internal/*\" }]\n```",
|
|
993
|
+
"hubWhen": {
|
|
994
|
+
"BASE": [
|
|
995
|
+
"golden"
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
"relations": [
|
|
1001
|
+
{
|
|
1002
|
+
"id": "req-vuln-sla--derives--need",
|
|
1003
|
+
"sourceId": "req-vuln-sla",
|
|
1004
|
+
"targetId": "need",
|
|
1005
|
+
"relationType": "derives"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"id": "req-vuln-gate--derives--need",
|
|
1009
|
+
"sourceId": "req-vuln-gate",
|
|
1010
|
+
"targetId": "need",
|
|
1011
|
+
"relationType": "derives"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"id": "req-vuln-report--derives--need",
|
|
1015
|
+
"sourceId": "req-vuln-report",
|
|
1016
|
+
"targetId": "need",
|
|
1017
|
+
"relationType": "derives"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"id": "req-review--derives--need",
|
|
1021
|
+
"sourceId": "req-review",
|
|
1022
|
+
"targetId": "need",
|
|
1023
|
+
"relationType": "derives"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"id": "req-pin-hash--derives--need",
|
|
1027
|
+
"sourceId": "req-pin-hash",
|
|
1028
|
+
"targetId": "need",
|
|
1029
|
+
"relationType": "derives"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"id": "req-pin-proxy--derives--need",
|
|
1033
|
+
"sourceId": "req-pin-proxy",
|
|
1034
|
+
"targetId": "need",
|
|
1035
|
+
"relationType": "derives"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"id": "req-provenance-l1--derives--need",
|
|
1039
|
+
"sourceId": "req-provenance-l1",
|
|
1040
|
+
"targetId": "need",
|
|
1041
|
+
"relationType": "derives"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"id": "req-provenance-l2--derives--need",
|
|
1045
|
+
"sourceId": "req-provenance-l2",
|
|
1046
|
+
"targetId": "need",
|
|
1047
|
+
"relationType": "derives"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"id": "req-provenance-l3--derives--need",
|
|
1051
|
+
"sourceId": "req-provenance-l3",
|
|
1052
|
+
"targetId": "need",
|
|
1053
|
+
"relationType": "derives"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"id": "req-sbom-internal--derives--need",
|
|
1057
|
+
"sourceId": "req-sbom-internal",
|
|
1058
|
+
"targetId": "need",
|
|
1059
|
+
"relationType": "derives"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"id": "req-sbom-shipped--derives--need",
|
|
1063
|
+
"sourceId": "req-sbom-shipped",
|
|
1064
|
+
"targetId": "need",
|
|
1065
|
+
"relationType": "derives"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"id": "req-base-minimal--derives--need",
|
|
1069
|
+
"sourceId": "req-base-minimal",
|
|
1070
|
+
"targetId": "need",
|
|
1071
|
+
"relationType": "derives"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"id": "req-base-official--derives--need",
|
|
1075
|
+
"sourceId": "req-base-official",
|
|
1076
|
+
"targetId": "need",
|
|
1077
|
+
"relationType": "derives"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"id": "req-base-golden--derives--need",
|
|
1081
|
+
"sourceId": "req-base-golden",
|
|
1082
|
+
"targetId": "need",
|
|
1083
|
+
"relationType": "derives"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"id": "sc-vuln-sla--verifies--req-vuln-sla",
|
|
1087
|
+
"sourceId": "sc-vuln-sla",
|
|
1088
|
+
"targetId": "req-vuln-sla",
|
|
1089
|
+
"relationType": "verifies"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"id": "sc-vuln-gate--verifies--req-vuln-gate",
|
|
1093
|
+
"sourceId": "sc-vuln-gate",
|
|
1094
|
+
"targetId": "req-vuln-gate",
|
|
1095
|
+
"relationType": "verifies"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"id": "sc-vuln-report--verifies--req-vuln-report",
|
|
1099
|
+
"sourceId": "sc-vuln-report",
|
|
1100
|
+
"targetId": "req-vuln-report",
|
|
1101
|
+
"relationType": "verifies"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"id": "sc-review--verifies--req-review",
|
|
1105
|
+
"sourceId": "sc-review",
|
|
1106
|
+
"targetId": "req-review",
|
|
1107
|
+
"relationType": "verifies"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"id": "sc-pin-hash--verifies--req-pin-hash",
|
|
1111
|
+
"sourceId": "sc-pin-hash",
|
|
1112
|
+
"targetId": "req-pin-hash",
|
|
1113
|
+
"relationType": "verifies"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"id": "sc-pin-proxy--verifies--req-pin-proxy",
|
|
1117
|
+
"sourceId": "sc-pin-proxy",
|
|
1118
|
+
"targetId": "req-pin-proxy",
|
|
1119
|
+
"relationType": "verifies"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"id": "sc-provenance-l1--verifies--req-provenance-l1",
|
|
1123
|
+
"sourceId": "sc-provenance-l1",
|
|
1124
|
+
"targetId": "req-provenance-l1",
|
|
1125
|
+
"relationType": "verifies"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"id": "sc-provenance-l2--verifies--req-provenance-l2",
|
|
1129
|
+
"sourceId": "sc-provenance-l2",
|
|
1130
|
+
"targetId": "req-provenance-l2",
|
|
1131
|
+
"relationType": "verifies"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"id": "sc-provenance-l3--verifies--req-provenance-l3",
|
|
1135
|
+
"sourceId": "sc-provenance-l3",
|
|
1136
|
+
"targetId": "req-provenance-l3",
|
|
1137
|
+
"relationType": "verifies"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"id": "sc-sbom-internal--verifies--req-sbom-internal",
|
|
1141
|
+
"sourceId": "sc-sbom-internal",
|
|
1142
|
+
"targetId": "req-sbom-internal",
|
|
1143
|
+
"relationType": "verifies"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"id": "sc-sbom-shipped--verifies--req-sbom-shipped",
|
|
1147
|
+
"sourceId": "sc-sbom-shipped",
|
|
1148
|
+
"targetId": "req-sbom-shipped",
|
|
1149
|
+
"relationType": "verifies"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"id": "sc-base-minimal--verifies--req-base-minimal",
|
|
1153
|
+
"sourceId": "sc-base-minimal",
|
|
1154
|
+
"targetId": "req-base-minimal",
|
|
1155
|
+
"relationType": "verifies"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"id": "sc-base-official--verifies--req-base-official",
|
|
1159
|
+
"sourceId": "sc-base-official",
|
|
1160
|
+
"targetId": "req-base-official",
|
|
1161
|
+
"relationType": "verifies"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"id": "sc-base-golden--verifies--req-base-golden",
|
|
1165
|
+
"sourceId": "sc-base-golden",
|
|
1166
|
+
"targetId": "req-base-golden",
|
|
1167
|
+
"relationType": "verifies"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"id": "ff-scorecard--implements--adr-slsa-l1",
|
|
1171
|
+
"sourceId": "ff-scorecard",
|
|
1172
|
+
"targetId": "adr-slsa-l1",
|
|
1173
|
+
"relationType": "implements"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"id": "ff-scorecard--implements--adr-slsa-l2",
|
|
1177
|
+
"sourceId": "ff-scorecard",
|
|
1178
|
+
"targetId": "adr-slsa-l2",
|
|
1179
|
+
"relationType": "implements"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"id": "ff-scorecard--implements--adr-slsa-l3",
|
|
1183
|
+
"sourceId": "ff-scorecard",
|
|
1184
|
+
"targetId": "adr-slsa-l3",
|
|
1185
|
+
"relationType": "implements"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"id": "ff-scorecard--implements--adr-deps-gate",
|
|
1189
|
+
"sourceId": "ff-scorecard",
|
|
1190
|
+
"targetId": "adr-deps-gate",
|
|
1191
|
+
"relationType": "implements"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"id": "ff-scorecard--implements--adr-deps-sla",
|
|
1195
|
+
"sourceId": "ff-scorecard",
|
|
1196
|
+
"targetId": "adr-deps-sla",
|
|
1197
|
+
"relationType": "implements"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"id": "ff-vuln-gate--implements--adr-deps-gate",
|
|
1201
|
+
"sourceId": "ff-vuln-gate",
|
|
1202
|
+
"targetId": "adr-deps-gate",
|
|
1203
|
+
"relationType": "implements"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"id": "ff-vuln-report--implements--adr-deps-sla",
|
|
1207
|
+
"sourceId": "ff-vuln-report",
|
|
1208
|
+
"targetId": "adr-deps-sla",
|
|
1209
|
+
"relationType": "implements"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"id": "ff-vuln-age--implements--adr-deps-gate",
|
|
1213
|
+
"sourceId": "ff-vuln-age",
|
|
1214
|
+
"targetId": "adr-deps-gate",
|
|
1215
|
+
"relationType": "implements"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"id": "ff-vuln-age--implements--adr-deps-sla",
|
|
1219
|
+
"sourceId": "ff-vuln-age",
|
|
1220
|
+
"targetId": "adr-deps-sla",
|
|
1221
|
+
"relationType": "implements"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"id": "ff-pin-hash--implements--adr-deps-gate",
|
|
1225
|
+
"sourceId": "ff-pin-hash",
|
|
1226
|
+
"targetId": "adr-deps-gate",
|
|
1227
|
+
"relationType": "implements"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"id": "ff-pin-hash--implements--adr-deps-sla",
|
|
1231
|
+
"sourceId": "ff-pin-hash",
|
|
1232
|
+
"targetId": "adr-deps-sla",
|
|
1233
|
+
"relationType": "implements"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"id": "ff-pin-proxy--implements--adr-deps-gate",
|
|
1237
|
+
"sourceId": "ff-pin-proxy",
|
|
1238
|
+
"targetId": "adr-deps-gate",
|
|
1239
|
+
"relationType": "implements"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"id": "ff-pin-proxy--implements--adr-deps-sla",
|
|
1243
|
+
"sourceId": "ff-pin-proxy",
|
|
1244
|
+
"targetId": "adr-deps-sla",
|
|
1245
|
+
"relationType": "implements"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"id": "ff-proxy-quarantine--implements--adr-deps-gate",
|
|
1249
|
+
"sourceId": "ff-proxy-quarantine",
|
|
1250
|
+
"targetId": "adr-deps-gate",
|
|
1251
|
+
"relationType": "implements"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"id": "ff-proxy-quarantine--implements--adr-deps-sla",
|
|
1255
|
+
"sourceId": "ff-proxy-quarantine",
|
|
1256
|
+
"targetId": "adr-deps-sla",
|
|
1257
|
+
"relationType": "implements"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"id": "ff-provenance-l1--implements--adr-slsa-l1",
|
|
1261
|
+
"sourceId": "ff-provenance-l1",
|
|
1262
|
+
"targetId": "adr-slsa-l1",
|
|
1263
|
+
"relationType": "implements"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"id": "ff-provenance-l2--implements--adr-slsa-l2",
|
|
1267
|
+
"sourceId": "ff-provenance-l2",
|
|
1268
|
+
"targetId": "adr-slsa-l2",
|
|
1269
|
+
"relationType": "implements"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"id": "ff-provenance-l3--implements--adr-slsa-l3",
|
|
1273
|
+
"sourceId": "ff-provenance-l3",
|
|
1274
|
+
"targetId": "adr-slsa-l3",
|
|
1275
|
+
"relationType": "implements"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"id": "ff-sbom-track--implements--adr-slsa-l1",
|
|
1279
|
+
"sourceId": "ff-sbom-track",
|
|
1280
|
+
"targetId": "adr-slsa-l1",
|
|
1281
|
+
"relationType": "implements"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"id": "ff-sbom-track--implements--adr-slsa-l2",
|
|
1285
|
+
"sourceId": "ff-sbom-track",
|
|
1286
|
+
"targetId": "adr-slsa-l2",
|
|
1287
|
+
"relationType": "implements"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"id": "ff-sbom-track--implements--adr-slsa-l3",
|
|
1291
|
+
"sourceId": "ff-sbom-track",
|
|
1292
|
+
"targetId": "adr-slsa-l3",
|
|
1293
|
+
"relationType": "implements"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"id": "ff-sbom-release--implements--adr-slsa-l1",
|
|
1297
|
+
"sourceId": "ff-sbom-release",
|
|
1298
|
+
"targetId": "adr-slsa-l1",
|
|
1299
|
+
"relationType": "implements"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"id": "ff-sbom-release--implements--adr-slsa-l2",
|
|
1303
|
+
"sourceId": "ff-sbom-release",
|
|
1304
|
+
"targetId": "adr-slsa-l2",
|
|
1305
|
+
"relationType": "implements"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"id": "ff-sbom-release--implements--adr-slsa-l3",
|
|
1309
|
+
"sourceId": "ff-sbom-release",
|
|
1310
|
+
"targetId": "adr-slsa-l3",
|
|
1311
|
+
"relationType": "implements"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"id": "ff-base-minimal--implements--adr-slsa-l1",
|
|
1315
|
+
"sourceId": "ff-base-minimal",
|
|
1316
|
+
"targetId": "adr-slsa-l1",
|
|
1317
|
+
"relationType": "implements"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"id": "ff-base-minimal--implements--adr-slsa-l2",
|
|
1321
|
+
"sourceId": "ff-base-minimal",
|
|
1322
|
+
"targetId": "adr-slsa-l2",
|
|
1323
|
+
"relationType": "implements"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"id": "ff-base-minimal--implements--adr-slsa-l3",
|
|
1327
|
+
"sourceId": "ff-base-minimal",
|
|
1328
|
+
"targetId": "adr-slsa-l3",
|
|
1329
|
+
"relationType": "implements"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"id": "ff-base-official--implements--adr-slsa-l1",
|
|
1333
|
+
"sourceId": "ff-base-official",
|
|
1334
|
+
"targetId": "adr-slsa-l1",
|
|
1335
|
+
"relationType": "implements"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"id": "ff-base-official--implements--adr-slsa-l2",
|
|
1339
|
+
"sourceId": "ff-base-official",
|
|
1340
|
+
"targetId": "adr-slsa-l2",
|
|
1341
|
+
"relationType": "implements"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"id": "ff-base-official--implements--adr-slsa-l3",
|
|
1345
|
+
"sourceId": "ff-base-official",
|
|
1346
|
+
"targetId": "adr-slsa-l3",
|
|
1347
|
+
"relationType": "implements"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"id": "ff-base-golden-build--implements--adr-slsa-l1",
|
|
1351
|
+
"sourceId": "ff-base-golden-build",
|
|
1352
|
+
"targetId": "adr-slsa-l1",
|
|
1353
|
+
"relationType": "implements"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"id": "ff-base-golden-build--implements--adr-slsa-l2",
|
|
1357
|
+
"sourceId": "ff-base-golden-build",
|
|
1358
|
+
"targetId": "adr-slsa-l2",
|
|
1359
|
+
"relationType": "implements"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"id": "ff-base-golden-build--implements--adr-slsa-l3",
|
|
1363
|
+
"sourceId": "ff-base-golden-build",
|
|
1364
|
+
"targetId": "adr-slsa-l3",
|
|
1365
|
+
"relationType": "implements"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"id": "ff-base-golden--implements--adr-slsa-l1",
|
|
1369
|
+
"sourceId": "ff-base-golden",
|
|
1370
|
+
"targetId": "adr-slsa-l1",
|
|
1371
|
+
"relationType": "implements"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"id": "ff-base-golden--implements--adr-slsa-l2",
|
|
1375
|
+
"sourceId": "ff-base-golden",
|
|
1376
|
+
"targetId": "adr-slsa-l2",
|
|
1377
|
+
"relationType": "implements"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"id": "ff-base-golden--implements--adr-slsa-l3",
|
|
1381
|
+
"sourceId": "ff-base-golden",
|
|
1382
|
+
"targetId": "adr-slsa-l3",
|
|
1383
|
+
"relationType": "implements"
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
1386
|
+
}
|